net.sf.jsefa.xml.mapping
Class XmlNodeMapping<T extends XmlNodeDescriptor>

java.lang.Object
  extended by net.sf.jsefa.common.mapping.NodeMapping<QName,T>
      extended by net.sf.jsefa.xml.mapping.XmlNodeMapping<T>
Type Parameters:
T - the type of the node descriptor
Direct Known Subclasses:
AttributeMapping, ElementMapping, TextContentMapping

public abstract class XmlNodeMapping<T extends XmlNodeDescriptor>
extends NodeMapping<QName,T>

A mapping between an XML node and a java object. This mapping is used for serialization and deserialization.

The data type name may be:
a) the name of the implicit parent node of the node this mapping is for - if this node is an element of an implicit list
b) the name of the node this mapping is for - in all other cases

Author:
Norman Lahme-Huetig

Constructor Summary
protected XmlNodeMapping(QName dataTypeName, T nodeDescriptor, Class<?> objectType, FieldDescriptor fieldDescriptor, Validator validator)
          Constructs a new NodeMapping.
 
Method Summary
 
Methods inherited from class net.sf.jsefa.common.mapping.NodeMapping
getDataTypeName, getFieldDescriptor, getNodeDescriptor, getObjectType, getValidator, isIndirectMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlNodeMapping

protected XmlNodeMapping(QName dataTypeName,
                         T nodeDescriptor,
                         Class<?> objectType,
                         FieldDescriptor fieldDescriptor,
                         Validator validator)
Constructs a new NodeMapping.

Parameters:
dataTypeName - the data type name
nodeDescriptor - the node descriptor
objectType - the object type
fieldDescriptor - the field descriptor
validator - the validator; may be null


Copyright © 2014. All rights reserved.