|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnetkit.graph.EdgeType
public final class EdgeType
This class represents an edge type for the Edge class. EdgeTypes specify the acceptable types for the source and destination Nodes of an Edge. This class is immutable.
Graph
,
Node
,
Edge
,
Attributes
,
SchemaReader
Constructor Summary | |
---|---|
EdgeType(java.lang.String name,
java.lang.String sourceType,
java.lang.String destType)
The constructor requires a name, source type and destination type. |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object o)
Indicates whether some other object is "equal to" this one; note this method assumes that each instance has a unique name and uses the name for equality purposes. |
java.lang.String |
getDestType()
Get the destination type of this object. |
java.lang.String |
getName()
Get the name of this object. |
java.lang.String |
getSourceType()
Get the source type of this object. |
int |
hashCode()
Returns a hash code value for this object. |
java.lang.String |
toString()
Returns a String representation for this object. |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EdgeType(java.lang.String name, java.lang.String sourceType, java.lang.String destType)
name
- a string name uniquely identifying this edge type.sourceType
- a string representing the type of the source node.destType
- a string representing the type of the destination node.Method Detail |
---|
public java.lang.String getName()
public java.lang.String getSourceType()
public java.lang.String getDestType()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
o
- the reference object with which to compare.
true
if this object is the same as the
argument; false
otherwise.Graph.addEdgeType(EdgeType)
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |