tomp.xml.type
Class TypeImpl

java.lang.Object
  extended bytomp.xml.type.TypeImpl
All Implemented Interfaces:
Type

public class TypeImpl
extends java.lang.Object
implements Type


Field Summary
protected  java.lang.String identification
           
protected  java.util.List parents
           
static boolean SHOW_PARENTS
           
protected  java.lang.String type
           
protected  java.util.Map typesForContext
           
static Type UNKNOWN
           
 
Constructor Summary
TypeImpl(java.lang.String t, java.lang.String i)
           
 
Method Summary
 void addParent(Type p)
           
 void addTypeForContext(TypeContext c, Type t)
           
 java.util.Iterator ancestorIterator()
           
 java.lang.String getIdentification()
           
 Type getTypeForContext(TypeContext c)
           
 java.lang.String getTypeType()
           
 boolean isDescendantOf(Type t)
           
 java.util.Iterator parentIterator()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

SHOW_PARENTS

public static final boolean SHOW_PARENTS
See Also:
Constant Field Values

UNKNOWN

public static final Type UNKNOWN

identification

protected java.lang.String identification

type

protected java.lang.String type

parents

protected java.util.List parents

typesForContext

protected java.util.Map typesForContext
Constructor Detail

TypeImpl

public TypeImpl(java.lang.String t,
                java.lang.String i)
Method Detail

getIdentification

public java.lang.String getIdentification()
Specified by:
getIdentification in interface Type

getTypeType

public java.lang.String getTypeType()
Specified by:
getTypeType in interface Type

addParent

public void addParent(Type p)
Specified by:
addParent in interface Type

parentIterator

public java.util.Iterator parentIterator()
Specified by:
parentIterator in interface Type

ancestorIterator

public java.util.Iterator ancestorIterator()
Specified by:
ancestorIterator in interface Type

addTypeForContext

public void addTypeForContext(TypeContext c,
                              Type t)
Specified by:
addTypeForContext in interface Type

getTypeForContext

public Type getTypeForContext(TypeContext c)
Specified by:
getTypeForContext in interface Type

isDescendantOf

public boolean isDescendantOf(Type t)
Specified by:
isDescendantOf in interface Type

toString

public java.lang.String toString()