net.innig.util
Class GraphType

java.lang.Object
  extended by net.innig.util.EnumeratedType
      extended by net.innig.util.GraphType
All Implemented Interfaces:
java.io.Serializable

public abstract class GraphType
extends EnumeratedType

An enumerated type with directed edges between its members. Useful for modeling types with a natural "is-a" relationship.

Maturity: Brand spankin' new.
Plans: Perhaps add JDO support.

Version:
[Development version]
Author:
Paul Cantrell
See Also:
Serialized Form

Constructor Summary
GraphType(java.lang.String name)
           
GraphType(java.lang.String name, java.util.Collection parents)
           
GraphType(java.lang.String name, GraphType parent)
           
GraphType(java.lang.String name, GraphType[] parents)
           
 
Method Summary
 java.util.Set getAncestors()
           
 java.util.Set getChildren()
           
 java.util.Set getDescendents()
           
 java.util.Set getParents()
           
 boolean is(GraphType that)
           
 
Methods inherited from class net.innig.util.EnumeratedType
allTypeNames, allTypes, equals, getName, hashCode, resolveFromName, toString
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

GraphType

public GraphType(java.lang.String name)

GraphType

public GraphType(java.lang.String name,
                 GraphType parent)

GraphType

public GraphType(java.lang.String name,
                 GraphType[] parents)

GraphType

public GraphType(java.lang.String name,
                 java.util.Collection parents)
Method Detail

is

public boolean is(GraphType that)

getParents

public java.util.Set getParents()

getAncestors

public java.util.Set getAncestors()

getChildren

public java.util.Set getChildren()

getDescendents

public java.util.Set getDescendents()