net.sf.jsefa.xml.mapping
Class XmlMapTypeMapping

java.lang.Object
  extended by net.sf.jsefa.common.mapping.TypeMapping<N>
      extended by net.sf.jsefa.common.mapping.MapTypeMapping<QName,AttributeMapping,ElementDescriptor,ElementMapping>
          extended by 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

Constructor Summary
XmlMapTypeMapping(QName dataTypeName, boolean implicit, AttributeMapping keyMapping, Collection<ElementMapping> valueMappings, ObjectAccessor objectAccessor)
          Constructs a new XmlMapTypeMapping.
 
Method Summary
protected  Map<ElementDescriptor,ElementMapping> createValueNodeMappingsByNodeDescriptorMap(Collection<ElementMapping> nodeMappings)
          Creates a map of value node mappings by node descriptors.
 boolean isImplicit()
           
 
Methods inherited from class net.sf.jsefa.common.mapping.MapTypeMapping
getKeyNodeMapping, getObjectAccessor, getValueNodeMapping, getValueNodeMapping, getValueNodeMappings
 
Methods inherited from class net.sf.jsefa.common.mapping.TypeMapping
getDataTypeName, getObjectType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlMapTypeMapping

public XmlMapTypeMapping(QName dataTypeName,
                         boolean implicit,
                         AttributeMapping keyMapping,
                         Collection<ElementMapping> valueMappings,
                         ObjectAccessor objectAccessor)
Constructs a new XmlMapTypeMapping.

Parameters:
dataTypeName - the data type name
implicit - true, if there is no embracing element around the map entries; false otherwise
keyMapping - the mapping for the keys of the map
valueMappings - the mappings for the values of the map
objectAccessor - the object accessor
Method Detail

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.