net.sf.jsefa.xml.mapping
Class XmlComplexTypeMapping
java.lang.Object
net.sf.jsefa.common.mapping.TypeMapping<N>
net.sf.jsefa.common.mapping.ComplexTypeMapping<QName,XmlNodeDescriptor,XmlNodeMapping<?>>
net.sf.jsefa.xml.mapping.XmlComplexTypeMapping
public final class XmlComplexTypeMapping
- extends ComplexTypeMapping<QName,XmlNodeDescriptor,XmlNodeMapping<?>>
A mapping between a java object type and a XML complex data type.
Instances of this class are immutable and thread safe.
- Author:
- Norman Lahme-Huetig
- See Also:
TypeMapping
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XmlComplexTypeMapping
public XmlComplexTypeMapping(Class<?> objectType,
QName dataTypeName,
ObjectAccessor objectAccessor,
Collection<XmlNodeMapping<?>> nodeMappings,
Validator validator)
- Constructs a new
XmlComplexTypeMapping
.
- Parameters:
objectType
- the object typedataTypeName
- the data type nameobjectAccessor
- the object accessornodeMappings
- the node mappingsvalidator
- the validator; may be null
isTextContentAllowed
public boolean isTextContentAllowed()
- Returns:
- true, if a text content is allowed for this data type; false otherwise.
createNodeMappingsByNodeDescriptorMap
protected Map<XmlNodeDescriptor,XmlNodeMapping<?>> createNodeMappingsByNodeDescriptorMap(Collection<XmlNodeMapping<?>> nodeMappings)
- Creates a map of node mappings by node descriptors.
- Overrides:
createNodeMappingsByNodeDescriptorMap
in class ComplexTypeMapping<QName,XmlNodeDescriptor,XmlNodeMapping<?>>
- Parameters:
nodeMappings
- the node mappings
- Returns:
- a map of node mappings by node descriptors
Copyright © 2014. All rights reserved.