net.sf.jsefa.rbf.mapping
Class RecordMapping
java.lang.Object
net.sf.jsefa.common.mapping.NodeMapping<String,T>
net.sf.jsefa.rbf.mapping.RbfNodeMapping<RecordDescriptor>
net.sf.jsefa.rbf.mapping.RecordMapping
public final class RecordMapping
- extends RbfNodeMapping<RecordDescriptor>
A mapping between an rbf record node and a java object. This mapping is used for serialization and
deserialization.
Instances of this class are immutable and thread-safe.
- Author:
- Norman Lahme-Huetig
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RecordMapping
public RecordMapping(String dataTypeName,
RecordDescriptor nodeDescriptor,
Class<?> objectType,
FieldDescriptor fieldDescriptor,
boolean indirectMapping,
Validator validator)
- Constructs a new
RecordMapping.
- Parameters:
dataTypeName - the data type namenodeDescriptor - the node descriptorobjectType - the object typefieldDescriptor - the field descriptorindirectMapping - true, if this is an indirect mapping; false otherwisevalidator - the validator; may be null
isIndirectMapping
public boolean isIndirectMapping()
- Signals if this is an indirect mapping. This is the case if the data type name is not the one of this node
but of its virtual parent node instead.
- Overrides:
isIndirectMapping in class NodeMapping<String,RecordDescriptor>
- Returns:
- true, if this is an indirect mapping; false otherwise.
Copyright © 2014. All rights reserved.