public class ClassFieldMapping extends Object
<outerobject>
<listcontainer>
<listelement>
<objectcontent>
</listelement>
</listcontainer>
...
</outerobject>
or (not currently used in OS)
<person>
<emails>
<email>
<type></type>
<value></value>
</email>
...
</emails>
...
</person>
For a more compact mapping ItemFieldMapping.| Constructor and Description |
|---|
ClassFieldMapping(String elementName,
Class<?> mappedClazz)
Create a simple element class mapping, applicable to all parent elements.
|
ClassFieldMapping(String parentName,
String elementName,
Class<?> mappedClazz)
Create a element class mapping, that only applies to one parent element
name.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getElementName() |
Class<?> |
getMappedClass() |
boolean |
matches(String parent,
Class<?> type)
Does this ClassFieldMapping match the supplied parent and type.
|
public ClassFieldMapping(String elementName, Class<?> mappedClazz)
elementName - the name of the elementmappedClazz - the class to map to the name of the elementpublic ClassFieldMapping(String parentName, String elementName, Class<?> mappedClazz)
parentName - the name of the parent element that this mapping applies toelementName - the name of the elementmappedClazz - the class to map to the name of the elementCopyright © 2007-2012. All Rights Reserved.