de.saar.chorus.domgraph.graph
Class NodeData

Object
  extended by NodeData

public class NodeData
extends Object

The data associated with a node. At this point, this is simply the node type (labelled or unlabelled).

Author:
Alexander Koller

Constructor Summary
NodeData(NodeType type)
           
 
Method Summary
 boolean equals(Object obj)
           
 NodeType getType()
          Returns the node type.
 int hashCode()
           
 void setType(NodeType type)
          Set the node type.
 String toString()
          Returns a string representation of this node-data object.
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NodeData

public NodeData(NodeType type)
Method Detail

getType

public NodeType getType()
Returns the node type.

Returns:
the type

toString

public String toString()
Returns a string representation of this node-data object.

Overrides:
toString in class Object

setType

public void setType(NodeType type)
Set the node type.

Parameters:
type - the new type of the node

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object