net.sf.jsefa.xml.mapping
Class XmlTypeMappingUtil

java.lang.Object
  extended by net.sf.jsefa.xml.mapping.XmlTypeMappingUtil

public final class XmlTypeMappingUtil
extends Object

Utility class providing methods used in different type mapping contexts.

This class is thread-safe.

Author:
Norman Lahme-Huetig

Method Summary
static
<D extends XmlNodeDescriptor,M extends XmlNodeMapping<?>>
Map<D,M>
createNodeMappingsByNodeDescriptorMap(Collection<M> nodeMappings)
          Creates a map of node mappings with node descriptors as keys.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

createNodeMappingsByNodeDescriptorMap

public static <D extends XmlNodeDescriptor,M extends XmlNodeMapping<?>> Map<D,M> createNodeMappingsByNodeDescriptorMap(Collection<M> nodeMappings)
Creates a map of node mappings with node descriptors as keys. For each element mapping contained in the given collection of node mappings an additional simplified descriptor is created if an element name exists and is not ambiguous so that the element mapping has two keys.

Type Parameters:
D - the expected type of the node descriptor
M - the expected type of the node mappings
Parameters:
nodeMappings - the node mappings
Returns:
a map of node mappings with node descriptors as keys


Copyright © 2014. All rights reserved.