net.sf.jsefa.rbf.mapping
Class RecordMapping

java.lang.Object
  extended by net.sf.jsefa.common.mapping.NodeMapping<String,T>
      extended by net.sf.jsefa.rbf.mapping.RbfNodeMapping<RecordDescriptor>
          extended by 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

Constructor Summary
RecordMapping(String dataTypeName, RecordDescriptor nodeDescriptor, Class<?> objectType, FieldDescriptor fieldDescriptor, boolean indirectMapping, Validator validator)
          Constructs a new RecordMapping.
 
Method Summary
 boolean isIndirectMapping()
          Signals if this is an indirect mapping.
 
Methods inherited from class net.sf.jsefa.common.mapping.NodeMapping
getDataTypeName, getFieldDescriptor, getNodeDescriptor, getObjectType, getValidator
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RecordMapping

public RecordMapping(String dataTypeName,
                     RecordDescriptor nodeDescriptor,
                     Class<?> objectType,
                     FieldDescriptor fieldDescriptor,
                     boolean indirectMapping,
                     Validator validator)
Constructs a new RecordMapping.

Parameters:
dataTypeName - the data type name
nodeDescriptor - the node descriptor
objectType - the object type
fieldDescriptor - the field descriptor
indirectMapping - true, if this is an indirect mapping; false otherwise
validator - the validator; may be null
Method Detail

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.