|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.mapping.TypeMappingRegistry<T>
net.sf.jsefa.common.mapping.HierarchicalTypeMappingRegistry<T>
T
- the type of the data type namepublic abstract class HierarchicalTypeMappingRegistry<T>
A registry for TypeMapping
s with support for hierarchical relations between the data types.
Instances of this class are thread-safe. This must be true for all subclasses, too.
Constructor Summary | |
---|---|
|
HierarchicalTypeMappingRegistry()
Constructs a new HierarchicalTypeMappingRegistry . |
protected |
HierarchicalTypeMappingRegistry(HierarchicalTypeMappingRegistry<T> other)
Constructs a new HierarchicalTypeMappingRegistry as a copy of the given one. |
Method Summary | |
---|---|
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. |
Methods inherited from class net.sf.jsefa.common.mapping.TypeMappingRegistry |
---|
createCopy, get, register |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public 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 oneMethod Detail |
---|
public 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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |