|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.jsefa.common.mapping.TypeMapping<N>
net.sf.jsefa.common.mapping.MapTypeMapping<N,K,D,V>
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>>
A mapping between a java map type and a map data type of the exchange format.
TypeMapping
Constructor Summary | |
---|---|
MapTypeMapping(Class<?> objectType,
N dataTypeName,
K keyNodeMapping,
Collection<V> valueNodeMappings,
ObjectAccessor objectAccessor)
Constructs a new MapTypeMapping . |
Method Summary | ||
---|---|---|
protected Map<D,V> |
createValueNodeMappingsByNodeDescriptorMap(Collection<V> nodeMappings)
Creates a map of value node mappings by node descriptors. |
|
K |
getKeyNodeMapping()
|
|
ObjectAccessor |
getObjectAccessor()
|
|
|
getValueNodeMapping(Class<?> objectType)
Returns the value node mapping for a map value object with the given object type. |
|
|
getValueNodeMapping(D nodeDescriptor)
Returns the value node mapping for the given node descriptor. |
|
Collection<V> |
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 |
---|
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 accessorMethod Detail |
---|
public 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 descriptor
public <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 values
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |