D - the type of the data type nameN - the type of the node descriptorpublic abstract class NodeMapping<D,N extends NodeDescriptor<?>> extends Object
A node mapping consists of
1. a data type name: the name of the data type of this node or - if isIndirectMapping() - of its
virtual parent node
2. an object type: the type of the java object this mapping is for
3. a field descriptor: describes the java object field the node maps to
4. a node descriptor: describes the node the java object maps to
5. a validator: optional
| Constructor and Description |
|---|
NodeMapping(D dataTypeName,
N nodeDescriptor,
Class<?> objectType,
FieldDescriptor fieldDescriptor,
Validator validator)
Constructs a new
NodeMapping. |
| Modifier and Type | Method and Description |
|---|---|
D |
getDataTypeName() |
FieldDescriptor |
getFieldDescriptor() |
N |
getNodeDescriptor() |
Class<?> |
getObjectType() |
Validator |
getValidator() |
boolean |
isIndirectMapping()
Signals if this is an indirect mapping.
|
public NodeMapping(D dataTypeName, N nodeDescriptor, Class<?> objectType, FieldDescriptor fieldDescriptor, Validator validator)
NodeMapping.dataTypeName - the data type namenodeDescriptor - the node descriptorobjectType - the object typefieldDescriptor - the field descriptorvalidator - the validator; may be nullpublic final D getDataTypeName()
public final N getNodeDescriptor()
public final Class<?> getObjectType()
public final FieldDescriptor getFieldDescriptor()
public final Validator getValidator()
public boolean isIndirectMapping()
Copyright © 2014. All rights reserved.