net.sf.jsefa.xml.mapping
Class XmlMapTypeMapping
java.lang.Object
net.sf.jsefa.common.mapping.TypeMapping<N>
net.sf.jsefa.common.mapping.MapTypeMapping<QName,AttributeMapping,ElementDescriptor,ElementMapping>
net.sf.jsefa.xml.mapping.XmlMapTypeMapping
public final class XmlMapTypeMapping
- extends MapTypeMapping<QName,AttributeMapping,ElementDescriptor,ElementMapping>
A mapping between a java map type and a XML map 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 |
XmlMapTypeMapping
public XmlMapTypeMapping(QName dataTypeName,
boolean implicit,
AttributeMapping keyMapping,
Collection<ElementMapping> valueMappings,
ObjectAccessor objectAccessor)
- Constructs a new
XmlMapTypeMapping
.
- Parameters:
dataTypeName
- the data type nameimplicit
- true, if there is no embracing element around the map entries; false otherwisekeyMapping
- the mapping for the keys of the mapvalueMappings
- the mappings for the values of the mapobjectAccessor
- the object accessor
isImplicit
public boolean isImplicit()
- Returns:
- true, if there is no embracing element around the map entries; false otherwise
createValueNodeMappingsByNodeDescriptorMap
protected Map<ElementDescriptor,ElementMapping> createValueNodeMappingsByNodeDescriptorMap(Collection<ElementMapping> nodeMappings)
- Creates a map of value node mappings by node descriptors.
- Overrides:
createValueNodeMappingsByNodeDescriptorMap
in class MapTypeMapping<QName,AttributeMapping,ElementDescriptor,ElementMapping>
- Parameters:
nodeMappings
- the value node mappings for the map values
- Returns:
- a map of value node mappings by node descriptors
Copyright © 2014. All rights reserved.