public abstract class GOElement extends Object implements ModelInstanceAware, ModelIdentifiable, ElementInProcess
Modifier | Constructor and Description |
---|---|
protected |
GOElement(ProcessInstance processInstance,
Goal parentGoal,
String name)
Creates new instance of
GOElement . |
protected |
GOElement(SGOElement s,
Goal parent,
ProcessInstance processInstance,
ModelInstance modelInstance) |
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.
|
void |
rebind(ModelInstance modelInstance)
Re-bind to the provided model instance.
|
abstract SGOElement |
toSerializable(SModelInstance smi,
MarshallerConfig config)
Creates a serializable object.
|
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getElement, getElementId
protected GOElement(ProcessInstance processInstance, Goal parentGoal, String name)
GOElement
.processInstance
- parentGoal
- name
- NullPointerException
- if processInstance
or moduleInstance
or
name
is nullprotected GOElement(SGOElement s, Goal parent, ProcessInstance processInstance, ModelInstance modelInstance)
public abstract SGOElement toSerializable(SModelInstance smi, MarshallerConfig config)
smi
- config
- public 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()
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.