T - the type of the data type namepublic abstract class HierarchicalTypeMappingRegistry<T> extends TypeMappingRegistry<T>
TypeMappings with support for hierarchical relations between the data types.
Instances of this class are thread-safe. This must be true for all subclasses, too.
| Modifier | Constructor and Description |
|---|---|
|
HierarchicalTypeMappingRegistry()
Constructs a new
HierarchicalTypeMappingRegistry. |
protected |
HierarchicalTypeMappingRegistry(HierarchicalTypeMappingRegistry<T> other)
Constructs a new
HierarchicalTypeMappingRegistry as a copy of the given one. |
| Modifier and Type | Method and Description |
|---|---|
Collection<T> |
getDataTypeNameTreeElements(T rootDataTypeName)
Returns a collection of all data type names which denote direct or indirect sub data types of the one
denoted by rootDataTypeName.
|
void |
registerSubtypeRelation(T superDataTypeName,
T subDataTypeName)
Registers a subtype relation between the data types denoted by the given names.
|
createCopy, get, registerpublic HierarchicalTypeMappingRegistry()
HierarchicalTypeMappingRegistry.protected HierarchicalTypeMappingRegistry(HierarchicalTypeMappingRegistry<T> other)
HierarchicalTypeMappingRegistry as a copy of the given one.other - the registry that serves as a model for creating a new onepublic final void registerSubtypeRelation(T superDataTypeName, T subDataTypeName)
superDataTypeName - the name of the super data typesubDataTypeName - the name of the sub data typepublic final Collection<T> getDataTypeNameTreeElements(T rootDataTypeName)
rootDataTypeName - the data type name denotig the root of the type hierarchy to retrieve.Copyright © 2014. All rights reserved.