public class Plan extends GOElement
modelInstance, parentGoal, processInstance
Modifier | Constructor and Description |
---|---|
protected |
Plan()
Creates new empty instance of
Plan . |
|
Plan(ProcessInstance processInstance,
String name,
Goal parentGoal)
Creates new instance of
Plan . |
|
Plan(ProcessInstance processInstance,
String name,
Goal parentGoal,
PlanState state)
Creates new instance of
Plan . |
Modifier and Type | Method and Description |
---|---|
Collection<GOElement> |
getChildren()
Returns unmodifiable collection of children go elements.
|
com.whitestein.lsps.model.Plan |
getElement(ModelProviderClientService modelProviderService)
Returns the model element.
|
String |
getElementId(ModelProviderClientService modelProviderService)
Returns the model element id.
|
ProcessInstance |
getPlanProcessInstance()
Returns the process instance of the plan.
|
PlanState |
getState()
Returns the plan state.
|
Plan |
makeCopy(ModelInstance targetModelInstance,
ProcessInstance targetProcessInstance,
Goal targetParentGoal)
Returns deep copy.
|
void |
postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked after unmarshalling XML data into target.
|
void |
preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller,
Object parent)
Callback method invoked before unmarshalling into target.
|
void |
setPlanProcessInstance(ProcessInstance processInstance)
Sets the plan context.
|
void |
setState(PlanState state)
Sets new plan state
|
fireChange, getModelInstance, getName, getParentGoal, getPath, getPathQID, getProcessInstance, rebind, toString
protected Plan()
Plan
.public Plan(ProcessInstance processInstance, String name, Goal parentGoal)
Plan
.processInstance
- name
- parentGoal
- NullPointerException
- if processInstance
or moduleInstance
or
name
is nullpublic Plan(ProcessInstance processInstance, String name, Goal parentGoal, PlanState state)
Plan
.processInstance
- name
- parentGoal
- state
- NullPointerException
- if processInstance
or moduleInstance
or
name
or state
or parentGoal
is nullpublic PlanState getState()
public void setState(PlanState state)
state
- NullPointerException
- if state
is nullpublic ProcessInstance getPlanProcessInstance()
public void setPlanProcessInstance(ProcessInstance processInstance)
processInstance
- public com.whitestein.lsps.model.Plan getElement(ModelProviderClientService modelProviderService)
ModelIdentifiable
public String getElementId(ModelProviderClientService modelProviderService)
ModelIdentifiable
public Collection<GOElement> getChildren()
GOElement
getChildren
in class GOElement
public void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
parent
- instance of JAXB mapped class that will eventually reference target.
null when target is root element.public void postUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallback
parent
- instance of JAXB mapped class that will reference target.
null when target is root element.public Plan makeCopy(ModelInstance targetModelInstance, ProcessInstance targetProcessInstance, Goal targetParentGoal)
GOElement
Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.