org.cesta.parsers.dot
Class DotTree.Node

java.lang.Object
  extended by org.cesta.parsers.dot.DotTree.Node
Enclosing class:
DotTree

public class DotTree.Node
extends java.lang.Object

Model simple node with id and attributes.


Field Summary
 java.util.Map<java.lang.String,java.lang.String> attributes
           
 java.lang.String id
           
 
Constructor Summary
DotTree.Node(java.lang.String id)
           
DotTree.Node(java.lang.String id, java.util.Map<java.lang.String,java.lang.String> attributes)
           
 
Method Summary
 boolean equals(java.lang.Object obj)
           
 int hashCode()
           
 void setId(java.lang.String id)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public java.lang.String id

attributes

public java.util.Map<java.lang.String,java.lang.String> attributes
Constructor Detail

DotTree.Node

public DotTree.Node(java.lang.String id)

DotTree.Node

public DotTree.Node(java.lang.String id,
                    java.util.Map<java.lang.String,java.lang.String> attributes)
Method Detail

setId

public void setId(java.lang.String id)

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object