org.spicefactory.pimento.metamodel.impl
Class TypeHierarchy
java.lang.Object
org.spicefactory.pimento.metamodel.impl.MetamodelImpl
org.spicefactory.pimento.metamodel.impl.TypeHierarchy
- All Implemented Interfaces:
- Externalizable, Metamodel
public class TypeHierarchy
- extends MetamodelImpl
A type hierarchy represents the metamodel for a polymorphic association.
In contrast to a regular metamodel instance it contains only the entity metamodel
for entities that belong to a single type hierarchy.
- Author:
- Jens Halm
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TypeHierarchy
public TypeHierarchy(Entity rootEntity)
- Creates a new instance.
- Parameters:
rootEntity - the root entity of the type hierarchy
rootEntity
public Entity rootEntity()
- Returns the root entity of the type hierarchy.
- Returns:
- the root entity of the type hierarchy
writeExternal
public void writeExternal(DataOutput out)
- Description copied from interface:
Externalizable
- Saves the content of this object to the DataOutput instance.
- Specified by:
writeExternal in interface Externalizable- Overrides:
writeExternal in class MetamodelImpl
- Parameters:
out - the output to write to