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


Field Summary
static boolean PARENT_IS_DESTINATION
           
static boolean PARENT_IS_SOURCE
           
 
Constructor Summary
DefaultHierarchyRelation(java.lang.String label, java.lang.String type, GraphElement parent, GraphElement[] children, boolean parentIsSource)
           
 
Method Summary
 void addChild(GraphElement e)
           
 GraphElement[] getElements()
           
 java.lang.String getLabel()
           
 GraphRelationRole getRole(GraphElement e)
           
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

PARENT_IS_SOURCE

public static final boolean PARENT_IS_SOURCE

PARENT_IS_DESTINATION

public static final boolean PARENT_IS_DESTINATION
Constructor Detail

DefaultHierarchyRelation

public DefaultHierarchyRelation(java.lang.String label,
                                java.lang.String type,
                                GraphElement parent,
                                GraphElement[] children,
                                boolean parentIsSource)
Method Detail

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