public class TypeHierarchy
extends java.lang.Object
Verwaltung der Super- und Sybtypen eines Datenmodells. Diese Klasse verarbeitet nur aktuell gültige Typen.
Diese Klasse ist threadsicher, da sie unveränderlich ist. Synchronisierung beim Zugriff auf diese Klasse ist nicht erforderlich.
| Modifier and Type | Field and Description |
|---|---|
private HashBagMap<SystemObjectType,SystemObjectType> |
_subTypes |
private HashBagMap<SystemObjectType,SystemObjectType> |
_superTypes |
private java.util.Map<java.lang.Long,SystemObjectType> |
_types |
| Constructor and Description |
|---|
TypeHierarchy(DataModel dataModel) |
| Modifier and Type | Method and Description |
|---|---|
java.util.Collection<SystemObjectType> |
getSubTypes(SystemObjectType type) |
java.util.Collection<SystemObjectType> |
getSuperTypes(SystemObjectType type) |
SystemObjectType |
getType(long id) |
private final java.util.Map<java.lang.Long,SystemObjectType> _types
private final HashBagMap<SystemObjectType,SystemObjectType> _superTypes
private final HashBagMap<SystemObjectType,SystemObjectType> _subTypes
public TypeHierarchy(DataModel dataModel)
public SystemObjectType getType(long id)
public java.util.Collection<SystemObjectType> getSuperTypes(SystemObjectType type)
public java.util.Collection<SystemObjectType> getSubTypes(SystemObjectType type)