net.sf.jsefa.xml.mapping
Class AttributeMapping

java.lang.Object
  extended by net.sf.jsefa.common.mapping.NodeMapping<QName,T>
      extended by net.sf.jsefa.xml.mapping.XmlNodeMapping<AttributeDescriptor>
          extended by net.sf.jsefa.xml.mapping.AttributeMapping

public final class AttributeMapping
extends XmlNodeMapping<AttributeDescriptor>

A mapping between an XML attribute 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
AttributeMapping(QName dataTypeName, AttributeDescriptor attributeDescriptor, Class<?> objectType, FieldDescriptor fieldDescriptor, Validator validator)
          Constructs a new AttributeMapping for the given data type name, attribute descriptor and field descriptor.
 
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

AttributeMapping

public AttributeMapping(QName dataTypeName,
                        AttributeDescriptor attributeDescriptor,
                        Class<?> objectType,
                        FieldDescriptor fieldDescriptor,
                        Validator validator)
Constructs a new AttributeMapping for the given data type name, attribute descriptor and field descriptor.

Parameters:
dataTypeName - the name of the data type.
attributeDescriptor - the descriptor of the attribute node
objectType - the type of the object. May be different from the object type contained in the field descriptor.
fieldDescriptor - the descriptor of the field
validator - the validator; may be null


Copyright © 2014. All rights reserved.