public abstract class GOElement extends Object implements XmlEntity, ModelInstanceAware, ModelIdentifiable, ElementInProcess
Modifier and Type | Field and Description |
---|---|
protected ModelInstance |
modelInstance
To be set by subclasses when unmarshalling.
|
protected Goal |
parentGoal
To be set by subclasses when unmarshalling.
|
protected ProcessInstance |
processInstance
To be set by subclasses when unmarshalling.
|
Modifier | Constructor and Description |
---|---|
protected |
GOElement()
Creates new empty instance of
GOElement . |
protected |
GOElement(ProcessInstance processInstance,
Goal parentGoal,
String name)
Creates new instance of
GOElement . |
Modifier and Type | Method and Description |
---|---|
protected void |
fireChange(Change change)
Notifies about change.
|
abstract Collection<GOElement> |
getChildren()
Returns unmodifiable collection of children go elements.
|
ModelInstance |
getModelInstance()
Returns the enclosing model instance.
|
String |
getName()
Returns name of this GO element.
|
Goal |
getParentGoal()
Returns the parent goal or null if this is top goal in its module.
|
String |
getPath()
Returns the full path to this element as a string.
|
QID |
getPathQID()
Returns the full path to this element as a QID.
|
ProcessInstance |
getProcessInstance()
Returns the process instance.
|
abstract GOElement |
makeCopy(ModelInstance targetModelInstance,
ProcessInstance targetProcessInstance,
Goal targetParentGoal)
Returns deep copy.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
postUnmarshal, preUnmarshal
getElement, getElementId
protected ProcessInstance processInstance
protected ModelInstance modelInstance
protected Goal parentGoal
protected GOElement()
GOElement
.protected GOElement(ProcessInstance processInstance, Goal parentGoal, String name)
GOElement
.processInstance
- parentGoal
- name
- NullPointerException
- if processInstance
or moduleInstance
or
name
is nullpublic String getName()
public ProcessInstance getProcessInstance()
getProcessInstance
in interface ElementInProcess
public Goal getParentGoal()
public ModelInstance getModelInstance()
getModelInstance
in interface ModelInstanceAware
public void rebind(ModelInstance modelInstance)
ModelInstanceAware
rebind
in interface ModelInstanceAware
public abstract Collection<GOElement> getChildren()
protected void fireChange(Change change)
change
- public QID getPathQID()
public String getPath()
public abstract GOElement makeCopy(ModelInstance targetModelInstance, ProcessInstance targetProcessInstance, Goal targetParentGoal)
targetModelInstance
- targetProcessInstance
- targetParentGoal
- Copyright © 2007-2018 Whitestein Technologies. All Rights Reserved.