|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JAXBWrapperTool
The JAXBWrapper tool is used to create a JAXB Object from a series of child objects (wrap) or get the child objects from a JAXB Object (unwrap)
| Method Summary | |
|---|---|
Object[] |
unWrap(Object jaxbObject,
List<String> childNames)
unwrap Returns the list of child objects of the jaxb object |
Object[] |
unWrap(Object jaxbObject,
List<String> childNames,
Map<String,PropertyDescriptorPlus> pdMap)
unwrap Returns the list of child objects of the jaxb object |
Object |
unWrap(Object jaxbObject,
String childName,
PropertyDescriptorPlus pd)
Short cut if there is only one Object in the JAXB Object |
Object |
wrap(Class jaxbClass,
List<String> childNames,
Map<String,Object> childObjects)
wrap Creates a jaxb object that is initialized with the child objects. |
Object |
wrap(Class jaxbClass,
List<String> childNames,
Map<String,Object> childObjects,
Map<String,Class> declaredClassMap,
Map<String,PropertyDescriptorPlus> pdMap)
wrap Creates a jaxb object that is initialized with the child objects. |
Object |
wrap(Class jaxbClass,
String childName,
Object childObject,
Class declaredClass,
PropertyDescriptorPlus pd)
Short Cut for JAXB objects with one child wrap Creates a jaxb object that is initialized with one child object. |
| Method Detail |
|---|
Object[] unWrap(Object jaxbObject,
List<String> childNames,
Map<String,PropertyDescriptorPlus> pdMap)
throws JAXBWrapperException
jaxbObject - that represents the typechildNames - list of xml child names as StringpdMap - PropertyDescriptorMap describing the jaxbObject
JAXBWrapperException
Object[] unWrap(Object jaxbObject,
List<String> childNames)
throws JAXBWrapperException
jaxbObject - that represents the typechildNames - list of xml child names as String
JAXBWrapperException
Object unWrap(Object jaxbObject,
String childName,
PropertyDescriptorPlus pd)
throws JAXBWrapperException
jaxbObject - that represents the typechildName - xml child names as Stringpd - PropertyDescriptor
JAXBWrapperException
Object wrap(Class jaxbClass,
List<String> childNames,
Map<String,Object> childObjects,
Map<String,Class> declaredClassMap,
Map<String,PropertyDescriptorPlus> pdMap)
throws JAXBWrapperException
jaxbClass - childNames - list of xml child names as StringchildObjects, - component type objectspdMap - PropertyDescriptorMap describing the jaxbObject
JAXBWrapperException
Object wrap(Class jaxbClass,
List<String> childNames,
Map<String,Object> childObjects)
throws JAXBWrapperException
jaxbClass - childNames - list of xml child names as StringchildObjects, - component type objectspdMap - PropertyDescriptorMap describing the jaxbObject Note: This method
creates a PropertyDescriptor map; thus it is less performant than the
other unWrap method
JAXBWrapperException
Object wrap(Class jaxbClass,
String childName,
Object childObject,
Class declaredClass,
PropertyDescriptorPlus pd)
throws JAXBWrapperException
jaxbClass - childName - xml child name as String or null if no childchildObject - component type objectdeclaredClass - declared classpd - PropertyDescriptor for this jaxbObject
JAXBWrapperException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||