public class Goal extends GOElement
modelInstance, parentGoal, processInstance| Modifier | Constructor and Description |
|---|---|
protected |
Goal()
Creates new empty instance of
Goal. |
|
Goal(ProcessInstance processInstance,
String name,
GoalType goalType,
Goal parentGoal)
Creates new instance of
Goal with default state
GoalState.INACTIVE. |
|
Goal(ProcessInstance processInstance,
String name,
GoalType goalType,
Goal parentGoal,
GoalState state)
Creates new instance of
Goal. |
| Modifier and Type | Method and Description |
|---|---|
void |
addChild(GOElement element)
Adds child.
|
List<Goal> |
getAllSubGoals() |
Collection<GOElement> |
getChildren()
Returns unmodifiable collection of children go elements.
|
com.whitestein.lsps.model.Goal |
getElement(ModelProviderClientService modelProviderService)
Returns the model element.
|
String |
getElementId(ModelProviderClientService modelProviderService)
Returns the model element id.
|
GoalType |
getGoalType()
Returns the goal type.
|
GoalState |
getState()
Returns the goal state.
|
List<Goal> |
getSubGoals() |
boolean |
isTop()
Returns if this is top goal.
|
Goal |
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 |
setState(GoalState state)
Sets new goal state.
|
fireChange, getModelInstance, getName, getParentGoal, getPath, getPathQID, getProcessInstance, rebind, toStringprotected Goal()
Goal.public Goal(ProcessInstance processInstance, String name, GoalType goalType, Goal parentGoal)
Goal with default state
GoalState.INACTIVE.processInstance - name - goalType - parentGoal - NullPointerException - if processInstance or moduleInstance or
name or goalType is nullpublic Goal(ProcessInstance processInstance, String name, GoalType goalType, Goal parentGoal, GoalState state)
Goal.processInstance - name - goalType - parentGoal - state - NullPointerException - if processInstance or moduleInstance or
name or goalType or state is nullpublic GoalState getState()
public GoalType getGoalType()
public boolean isTop()
public Collection<GOElement> getChildren()
GOElementgetChildren in class GOElementpublic void addChild(GOElement element)
element - NullPointerException - if element is nullpublic void setState(GoalState state)
state - NullPointerException - if goalState is nullpublic com.whitestein.lsps.model.Goal getElement(ModelProviderClientService modelProviderService)
ModelIdentifiablepublic String getElementId(ModelProviderClientService modelProviderService)
ModelIdentifiablepublic void preUnmarshal(javax.xml.bind.Unmarshaller unmarshaller, Object parent)
UnmarshalCallbackparent - 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)
UnmarshalCallbackparent - instance of JAXB mapped class that will reference target.
null when target is root element.public Goal makeCopy(ModelInstance targetModelInstance, ProcessInstance targetProcessInstance, Goal targetParentGoal)
GOElementCopyright © 2007-2018 Whitestein Technologies. All Rights Reserved.