|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.jaxws.wrapper.impl.JAXBWrapperToolImpl
public class JAXBWrapperToolImpl
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)
Constructor Summary | |
---|---|
JAXBWrapperToolImpl()
|
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 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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public JAXBWrapperToolImpl()
Method Detail |
---|
public Object[] unWrap(Object jaxbObject, List<String> childNames, Map<String,PropertyDescriptorPlus> pdMap) throws JAXBWrapperException
unWrap
in interface JAXBWrapperTool
jaxbObject
- that represents the typechildNames
- list of xml child names as StringpdMap
- PropertyDescriptor map for this jaxbObject
JAXBWrapperException
public Object unWrap(Object jaxbObject, String childName, PropertyDescriptorPlus pd) throws JAXBWrapperException
unWrap
in interface JAXBWrapperTool
jaxbObject
- that represents the typechildName
- xml child names as Stringpd
- PropertyDescriptor
JAXBWrapperException
public Object wrap(Class jaxbClass, String childName, Object childObject, Class declaredClass, PropertyDescriptorPlus pd) throws JAXBWrapperException
wrap
in interface JAXBWrapperTool
jaxbClass
- childName
- xml child name as String or null if no childchildObject
- component type objectdeclaredClass
- declared classpd
- PropertyDescriptor for this jaxbObject
JAXBWrapperException
public Object wrap(Class jaxbClass, List<String> childNames, Map<String,Object> childObjects, Map<String,Class> declaredClassMap, Map<String,PropertyDescriptorPlus> pdMap) throws JAXBWrapperException
wrap
in interface JAXBWrapperTool
jaxbClass
- childNames
- list of xml child names as StringchildObjects,
- component type objectspdMap
- PropertyDescriptor map for this jaxbObject
JAXBWrapperException
public Object[] unWrap(Object jaxbObject, List<String> childNames) throws JAXBWrapperException
JAXBWrapperTool
unWrap
in interface JAXBWrapperTool
jaxbObject
- that represents the typechildNames
- list of xml child names as String
JAXBWrapperException
public Object wrap(Class jaxbClass, List<String> childNames, Map<String,Object> childObjects) throws JAXBWrapperException
JAXBWrapperTool
wrap
in interface JAXBWrapperTool
childNames
- list of xml child names as String
JAXBWrapperException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |