com.virtuosotechnologies.lib.base
Interface HierarchicalType

All Known Implementing Classes:
UniqueHierarchicalType

public interface HierarchicalType

An interface for objects that implement a hierarchical type system.

A hierarchical type system is a class of objects with the following properties:


Method Summary
 boolean equalsOrExtends(HierarchicalType type)
          Returns true if and only if this HierarchicalType the same as or an extension of the given parameter.
 Iterator getParents()
          Get an interator over the immediate parents
 

Method Detail

equalsOrExtends

public boolean equalsOrExtends(HierarchicalType type)
Returns true if and only if this HierarchicalType the same as or an extension of the given parameter.

Parameters:
type - a type to test
Returns:
true if this type equals or extends the given type

getParents

public Iterator getParents()
Get an interator over the immediate parents

Returns:
an Iterator over the immediate parents. The remove() method of the iterator is not implemented.