com.gomjabbar.graph
Class DefaultHierarchyRelation
java.lang.Object
|
+--com.gomjabbar.graph.DefaultHierarchyRelation
- All Implemented Interfaces:
- GraphRelation
- public class DefaultHierarchyRelation
- extends java.lang.Object
- implements GraphRelation
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
PARENT_IS_SOURCE
public static final boolean PARENT_IS_SOURCE
PARENT_IS_DESTINATION
public static final boolean PARENT_IS_DESTINATION
DefaultHierarchyRelation
public DefaultHierarchyRelation(java.lang.String label,
java.lang.String type,
GraphElement parent,
GraphElement[] children,
boolean parentIsSource)
getType
public java.lang.String getType()
- Specified by:
getType
in interface GraphRelation
getLabel
public java.lang.String getLabel()
- Specified by:
getLabel
in interface GraphRelation
addChild
public void addChild(GraphElement e)
getElements
public GraphElement[] getElements()
- Specified by:
getElements
in interface GraphRelation
getRole
public GraphRelationRole getRole(GraphElement e)
- Specified by:
getRole
in interface GraphRelation