public interface JAXBWrapperTool
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object[] |
unWrap(java.lang.Object jaxbObject,
java.util.List<java.lang.String> childNames)
unwrap Returns the list of child objects of the jaxb object
|
java.lang.Object[] |
unWrap(java.lang.Object jaxbObject,
java.util.List<java.lang.String> childNames,
java.util.Map<java.lang.String,PropertyDescriptorPlus> pdMap)
unwrap Returns the list of child objects of the jaxb object
|
java.lang.Object |
unWrap(java.lang.Object jaxbObject,
java.lang.String childName,
PropertyDescriptorPlus pd)
Short cut if there is only one Object in the JAXB Object
|
java.lang.Object |
wrap(java.lang.Class jaxbClass,
java.util.List<java.lang.String> childNames,
java.util.Map<java.lang.String,java.lang.Object> childObjects)
wrap Creates a jaxb object that is initialized with the child objects.
|
java.lang.Object |
wrap(java.lang.Class jaxbClass,
java.util.List<java.lang.String> childNames,
java.util.Map<java.lang.String,java.lang.Object> childObjects,
java.util.Map<java.lang.String,java.lang.Class> declaredClassMap,
java.util.Map<java.lang.String,PropertyDescriptorPlus> pdMap)
wrap Creates a jaxb object that is initialized with the child objects.
|
java.lang.Object |
wrap(java.lang.Class jaxbClass,
java.lang.String childName,
java.lang.Object childObject,
java.lang.Class declaredClass,
PropertyDescriptorPlus pd)
Short Cut for JAXB objects with one child
wrap Creates a jaxb object that is initialized with one child object.
|
java.lang.Object[] unWrap(java.lang.Object jaxbObject,
java.util.List<java.lang.String> childNames,
java.util.Map<java.lang.String,PropertyDescriptorPlus> pdMap)
throws JAXBWrapperException
jaxbObject - that represents the typechildNames - list of xml child names as StringpdMap - PropertyDescriptorMap describing the jaxbObjectJAXBWrapperExceptionjava.lang.Object[] unWrap(java.lang.Object jaxbObject,
java.util.List<java.lang.String> childNames)
throws JAXBWrapperException
jaxbObject - that represents the typechildNames - list of xml child names as StringJAXBWrapperExceptionjava.lang.Object unWrap(java.lang.Object jaxbObject,
java.lang.String childName,
PropertyDescriptorPlus pd)
throws JAXBWrapperException
jaxbObject - that represents the typechildName - xml child names as Stringpd - PropertyDescriptorJAXBWrapperExceptionjava.lang.Object wrap(java.lang.Class jaxbClass,
java.util.List<java.lang.String> childNames,
java.util.Map<java.lang.String,java.lang.Object> childObjects,
java.util.Map<java.lang.String,java.lang.Class> declaredClassMap,
java.util.Map<java.lang.String,PropertyDescriptorPlus> pdMap)
throws JAXBWrapperException
jaxbClass - childNames - list of xml child names as StringchildObjects, - component type objectspdMap - PropertyDescriptorMap describing the jaxbObjectJAXBWrapperExceptionjava.lang.Object wrap(java.lang.Class jaxbClass,
java.util.List<java.lang.String> childNames,
java.util.Map<java.lang.String,java.lang.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 methodJAXBWrapperExceptionjava.lang.Object wrap(java.lang.Class jaxbClass,
java.lang.String childName,
java.lang.Object childObject,
java.lang.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 jaxbObjectJAXBWrapperExceptionCopyright © 2004-2015 The Apache Software Foundation. All Rights Reserved.