net.sf.jsefa.xml.mapping
Class XmlTypeMappingUtil
java.lang.Object
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
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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 descriptorM
- 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.