wt.tools.metamodel
Class ClassHierarchy
java.lang.Object
wt.tools.metamodel.ClassHierarchy
- public class ClassHierarchy
- extends Object
inherits
protected Hashtable inherits
associations
protected com.objectspace.jgl.Array associations
otherSideRoles
protected com.objectspace.jgl.Array otherSideRoles
attributes
protected com.objectspace.jgl.Array attributes
operations
protected com.objectspace.jgl.Array operations
leafNode
protected ClassClass leafNode
depth
protected int depth
leafInherits
private int leafInherits
leafAssociations
private int leafAssociations
leafAttributes
private int leafAttributes
leafOperations
private int leafOperations
ClassHierarchy
ClassHierarchy(ClassClass theLeafNode)
accumulateAncestors
protected void accumulateAncestors(ClassClass node,
int stackDepth)
- Accumulate all parent classes
- Parameters:
node
- - The ClassClass for which ancestry is being gathered.
accumulateAssociations
protected void accumulateAssociations()
accumulateAttributes
protected void accumulateAttributes()
accumulateOperations
protected void accumulateOperations()
attributeCount
public int attributeCount()
getAssociations
public Enumeration getAssociations()
getAttributes
public Enumeration getAttributes()
getAttributesArray
com.objectspace.jgl.Array getAttributesArray()
getDepth
public int getDepth()
getInherits
public Enumeration getInherits()
getLeafNode
public ClassClass getLeafNode()
getLinkAssociation
public Association getLinkAssociation()
getOperations
public Enumeration getOperations()
getOperationsArray
com.objectspace.jgl.Array getOperationsArray()
getOtherSideRoles
public Enumeration getOtherSideRoles()
getOtherSideRolesArray
com.objectspace.jgl.Array getOtherSideRolesArray()
getPropertiesArray
com.objectspace.jgl.Array getPropertiesArray(Class type)
hasOperation
public boolean hasOperation(Operation member)
isA
public boolean isA(String className)
sortAttributes
public void sortAttributes(com.objectspace.jgl.BinaryPredicate orderPredicate)
superClass
public String superClass()
toString
public String toString()