public class JAXBWrapperToolImpl extends Object implements JAXBWrapperTool
| Constructor and Description |
|---|
JAXBWrapperToolImpl() |
| Modifier and Type | Method and Description |
|---|---|
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 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)
wrap Creates a jaxb object that is initialized with one child object.
|
public Object[] unWrap(Object jaxbObject, List<String> childNames, Map<String,PropertyDescriptorPlus> pdMap) throws JAXBWrapperException
unWrap in interface JAXBWrapperTooljaxbObject - that represents the typechildNames - list of xml child names as StringpdMap - PropertyDescriptor map for this jaxbObjectJAXBWrapperExceptionpublic Object unWrap(Object jaxbObject, String childName, PropertyDescriptorPlus pd) throws JAXBWrapperException
unWrap in interface JAXBWrapperTooljaxbObject - that represents the typechildName - xml child names as Stringpd - PropertyDescriptorJAXBWrapperExceptionpublic Object wrap(Class jaxbClass, String childName, Object childObject, Class declaredClass, PropertyDescriptorPlus pd) throws JAXBWrapperException
wrap in interface JAXBWrapperTooljaxbClass - childName - xml child name as String or null if no childchildObject - component type objectdeclaredClass - declared classpd - PropertyDescriptor for this jaxbObjectJAXBWrapperExceptionpublic Object wrap(Class jaxbClass, List<String> childNames, Map<String,Object> childObjects, Map<String,Class> declaredClassMap, Map<String,PropertyDescriptorPlus> pdMap) throws JAXBWrapperException
wrap in interface JAXBWrapperTooljaxbClass - childNames - list of xml child names as StringchildObjects, - component type objectspdMap - PropertyDescriptor map for this jaxbObjectJAXBWrapperExceptionpublic Object[] unWrap(Object jaxbObject, List<String> childNames) throws JAXBWrapperException
JAXBWrapperToolunWrap in interface JAXBWrapperTooljaxbObject - that represents the typechildNames - list of xml child names as StringJAXBWrapperExceptionpublic Object wrap(Class jaxbClass, List<String> childNames, Map<String,Object> childObjects) throws JAXBWrapperException
JAXBWrapperToolwrap in interface JAXBWrapperToolchildNames - list of xml child names as StringJAXBWrapperExceptionCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.