public class EMFTreeComposite extends TreeComposite
iComponentVisitor
iComponentListener
Constructor and Description |
---|
EMFTreeComposite()
The nullary-constructor
|
EMFTreeComposite(org.eclipse.emf.ecore.EClass eClass)
The constructor, takes a Ecore model tree EClass metadata object.
|
EMFTreeComposite(org.eclipse.emf.ecore.EObject treeNode)
The constructor, takes a Ecore model tree EObject node instance
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
This operation provides a deep copy of the TreeComposite.
|
void |
copy(EMFTreeComposite otherTreeComposite)
This operation performs a deep copy of the attributes of another
EMFTreeComposite into the current EMFTreeComposite.
|
boolean |
equals(java.lang.Object otherTreeComposite)
This operation is used to check equality between the EMFTreeComposite and
another EMFTreeComposite.
|
java.util.ArrayList<TreeComposite> |
getChildExemplars()
This method overrides TreeComposite.getChildExemplars to dynamically
generate a list of exemplar children based on the EClass metadata's list
of EReferences.
|
org.eclipse.emf.ecore.EClass |
getEcoreMetaData()
Return the EClass metadata object corresponding to this EMFTreeComposite.
|
org.eclipse.emf.ecore.EObject |
getEcoreNode()
Return the EObject tree node corresponding to this EMFTreeComposite.
|
boolean |
hasChildExemplars()
This method overrides TreeComposite.hasChildExemplars to use the
overridden getChildExemplars method to return whether or not this tree
has child exemplars.
|
int |
hashCode()
This operation returns the hashcode value of the EMFTreeComposite.
|
void |
removeChild(TreeComposite cNode)
This method overrides TreeComposite.removeChild to also remove the
corresponding EObject child node.
|
void |
setNextChild(TreeComposite cNode)
This method overrides TreeComposite.setNextChild to allow more than one
of the same child TreeComposite to be added to this EMFTreeComposite and
append a Ecore child Exemplar EObject to the containingNode EObject.
|
void |
updateContainingNode(org.eclipse.emf.ecore.EObject newEcoreChild)
Update the EObject node and the EMFEntries corresponding to that EObjects
contained EAttributes.
|
accept, addChildExemplar, addComponent, allowActiveDataNodes, copy, copy, getActiveDataNode, getChildAtIndex, getComponent, getComponents, getDataNodes, getNextChild, getNextSibling, getNumberOfChildren, getNumberOfComponents, getNumberOfDataNodes, getParent, getPreviousChild, getPreviousSibling, isActive, register, removeComponent, resetChildIterator, setActive, setActiveDataNode, setChildExemplars, setParent, unregister, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
copy, getDescription, getId, getName, setDescription, setId, setName, update
getClass, notify, notifyAll, toString, wait, wait, wait
update
getDescription, getId, getName, setDescription, setId, setName
public EMFTreeComposite()
public EMFTreeComposite(org.eclipse.emf.ecore.EClass eClass)
eClass
- public EMFTreeComposite(org.eclipse.emf.ecore.EObject treeNode)
treeNode
- public java.util.ArrayList<TreeComposite> getChildExemplars()
getChildExemplars
in class TreeComposite
public org.eclipse.emf.ecore.EObject getEcoreNode()
public org.eclipse.emf.ecore.EClass getEcoreMetaData()
public void setNextChild(TreeComposite cNode)
setNextChild
in class TreeComposite
cNode
- public boolean hasChildExemplars()
hasChildExemplars
in class TreeComposite
public void updateContainingNode(org.eclipse.emf.ecore.EObject newEcoreChild)
newEcoreChild
- public void removeChild(TreeComposite cNode)
removeChild
in class TreeComposite
cNode
- public boolean equals(java.lang.Object otherTreeComposite)
equals
in interface Identifiable
equals
in class TreeComposite
otherTreeComposite
- The other TreeComposite to which this component should be compared.
True if the TreeComposites are equal, false otherwise.
Identifiable.equals(Object otherObject)
public int hashCode()
hashCode
in interface Identifiable
hashCode
in class TreeComposite
Identifiable.hashCode()
public void copy(EMFTreeComposite otherTreeComposite)
otherTreeComposite
- public java.lang.Object clone()
clone
in interface Identifiable
clone
in class TreeComposite
The deep-copy clone of this TreeComposite.