net.sf.jsefa.xml.mapping
Class AttributeMapping
java.lang.Object
net.sf.jsefa.common.mapping.NodeMapping<QName,T>
net.sf.jsefa.xml.mapping.XmlNodeMapping<AttributeDescriptor>
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 nodeobjectType
- the type of the object. May be different from the object type contained in the field
descriptor.fieldDescriptor
- the descriptor of the fieldvalidator
- the validator; may be null
Copyright © 2014. All rights reserved.