N
- the type of the data type nameD
- the type of the node descriptorK
- the type of the key node mappingV
- the type of the value node mappingpublic abstract class MapTypeMapping<N,K extends NodeMapping<N,?>,D extends NodeDescriptor<?>,V extends NodeMapping<N,D>> extends TypeMapping<N>
TypeMapping
Constructor and Description |
---|
MapTypeMapping(Class<?> objectType,
N dataTypeName,
K keyNodeMapping,
Collection<V> valueNodeMappings,
ObjectAccessor objectAccessor)
Constructs a new
MapTypeMapping . |
Modifier and Type | Method and Description |
---|---|
protected Map<D,V> |
createValueNodeMappingsByNodeDescriptorMap(Collection<V> nodeMappings)
Creates a map of value node mappings by node descriptors.
|
K |
getKeyNodeMapping() |
ObjectAccessor |
getObjectAccessor() |
<T extends V> |
getValueNodeMapping(Class<?> objectType)
Returns the value node mapping for a map value object with the given object type.
|
<T extends V> |
getValueNodeMapping(D nodeDescriptor)
Returns the value node mapping for the given node descriptor.
|
Collection<V> |
getValueNodeMappings() |
getDataTypeName, getObjectType
public MapTypeMapping(Class<?> objectType, N dataTypeName, K keyNodeMapping, Collection<V> valueNodeMappings, ObjectAccessor objectAccessor)
MapTypeMapping
.objectType
- the object typedataTypeName
- the data type namekeyNodeMapping
- the node mapping for the keys of the mapvalueNodeMappings
- the node mappings for the values of the mapobjectAccessor
- the object accessorpublic final K getKeyNodeMapping()
public final Collection<V> getValueNodeMappings()
public <T extends V> T getValueNodeMapping(D nodeDescriptor)
T
- the expected type of the value node mappingnodeDescriptor
- the node descriptorpublic <T extends V> T getValueNodeMapping(Class<?> objectType)
T
- the expected type of the node mappingobjectType
- the object type.public final ObjectAccessor getObjectAccessor()
protected Map<D,V> createValueNodeMappingsByNodeDescriptorMap(Collection<V> nodeMappings)
nodeMappings
- the value node mappings for the map valuesCopyright © 2014. All rights reserved.