gumbo.util.relation
Class TestTree
java.lang.Object
|
+--gumbo.util.AbstractDisposable
|
+--gumbo.util.relation.Relationship
|
+--gumbo.util.relation.TreeNodes.Tree
|
+--gumbo.util.relation.TestTree
- All Implemented Interfaces:
- Disposable, java.io.Serializable
- public class TestTree
- extends TreeNodes.Tree
- Version:
- $Revision: 1.1 $
- Author:
- Jon Barrilleaux (jonb@jmbaai.com) of JMB and Associates Inc.
- See Also:
- Serialized Form
Constructor Summary |
TestTree(java.lang.String id,
java.lang.Class delegatorType)
|
Method Summary |
protected void |
checkRelation(Relation relation)
Called by the system to check added relations and their delegators
for compatibility with this relationship. |
boolean |
equals(java.lang.Object obj)
|
java.lang.String |
getId()
|
int |
hashCode()
|
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
TestTree
public TestTree(java.lang.String id,
java.lang.Class delegatorType)
getId
public java.lang.String getId()
checkRelation
protected void checkRelation(Relation relation)
- Description copied from class:
Relationship
- Called by the system to check added relations and their delegators
for compatibility with this relationship. Typically, all relations
in a relationship are the same basic type (such as IntersectionTreeNode).
Implementors should throw an exception if the relation or its
delegator is incompatible. Implementors can assume that null relation
or delegator, duplication of relation or delegator, and the relation's
relationship have already been checked.
- Overrides:
checkRelation
in class TreeNodes.Tree
- Parameters:
relation
- The relation. Never null.
toString
public java.lang.String toString()
- Overrides:
toString
in class Relationship
hashCode
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in class java.lang.Object