|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.axis2.datasource.jaxb.JAXBDSContext
public class JAXBDSContext
Field Summary | |
---|---|
static boolean |
DEBUG_ENABLED
|
Constructor Summary | |
---|---|
JAXBDSContext(javax.xml.bind.JAXBContext jaxbContext)
"Dispatch" Constructor Use this full constructor when the JAXBContent is provided by the customer. |
|
JAXBDSContext(java.lang.String contextPackage)
Deprecated. |
|
JAXBDSContext(java.util.TreeSet<java.lang.String> packages)
Slightly slower constructor |
|
JAXBDSContext(java.util.TreeSet<java.lang.String> packages,
java.lang.String packagesKey)
Full Constructor JAXBDSContext (most performant) |
Method Summary | |
---|---|
protected javax.xml.bind.attachment.AttachmentMarshaller |
createAttachmentMarshaller(javax.xml.stream.XMLStreamWriter writer)
Create an AttachmentMarshaller to marshal MTOM/SWA Attachments |
protected javax.xml.bind.attachment.AttachmentUnmarshaller |
createAttachmentUnmarshaller()
Create an Attachment unmarshaller for unmarshalling MTOM/SWA Attachments |
java.lang.ClassLoader |
getClassLoader()
|
JAXBUtils.CONSTRUCTION_TYPE |
getConstructionType()
|
java.util.TreeSet<java.lang.String> |
getContextPackages()
|
javax.xml.bind.JAXBContext |
getJAXBContext()
|
javax.xml.bind.JAXBContext |
getJAXBContext(java.lang.ClassLoader cl)
|
MessageContext |
getMessageContext()
|
java.lang.Class |
getProcessType()
|
boolean |
isxmlList()
|
void |
marshal(java.lang.Object obj,
javax.xml.stream.XMLStreamWriter writer)
Marshal the jaxb object |
void |
setIsxmlList(boolean isxmlList)
|
void |
setMessageContext(MessageContext messageContext)
|
void |
setProcessType(java.lang.Class type)
Set RPC Declared Type. |
java.lang.Object |
unmarshal(javax.xml.stream.XMLStreamReader reader)
Unmarshal the xml into a JAXB object |
static java.lang.Object |
unmarshalAsListOrArray(javax.xml.stream.XMLStreamReader reader,
javax.xml.bind.Unmarshaller u,
java.lang.Class type)
convert the String into a list or array |
static java.lang.Object |
unmarshalByElement(javax.xml.bind.Unmarshaller u,
javax.xml.stream.XMLStreamReader reader)
Preferred way to unmarshal objects |
static java.lang.Object |
unmarshalByType(javax.xml.bind.Unmarshaller u,
javax.xml.stream.XMLStreamReader reader,
java.lang.Class type,
boolean isList,
JAXBUtils.CONSTRUCTION_TYPE ctype)
The root element being read is defined by schema/JAXB; however its contents are known by schema/JAXB. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final boolean DEBUG_ENABLED
Constructor Detail |
---|
public JAXBDSContext(java.util.TreeSet<java.lang.String> packages, java.lang.String packagesKey)
packages
- Set of packages needed by the JAXBContext.public JAXBDSContext(java.util.TreeSet<java.lang.String> packages)
packages
- public JAXBDSContext(java.lang.String contextPackage)
contextPackage
- public JAXBDSContext(javax.xml.bind.JAXBContext jaxbContext)
jaxbContext
- Method Detail |
---|
public java.util.TreeSet<java.lang.String> getContextPackages()
public javax.xml.bind.JAXBContext getJAXBContext() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public javax.xml.bind.JAXBContext getJAXBContext(java.lang.ClassLoader cl) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBException
public java.lang.Class getProcessType()
public void setProcessType(java.lang.Class type)
type
- public JAXBUtils.CONSTRUCTION_TYPE getConstructionType()
public boolean isxmlList()
public void setIsxmlList(boolean isxmlList)
public MessageContext getMessageContext()
public void setMessageContext(MessageContext messageContext)
public java.lang.ClassLoader getClassLoader()
protected javax.xml.bind.attachment.AttachmentMarshaller createAttachmentMarshaller(javax.xml.stream.XMLStreamWriter writer)
writer
-
protected javax.xml.bind.attachment.AttachmentUnmarshaller createAttachmentUnmarshaller()
public java.lang.Object unmarshal(javax.xml.stream.XMLStreamReader reader) throws javax.xml.bind.JAXBException
reader
-
javax.xml.bind.JAXBException
public void marshal(java.lang.Object obj, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.bind.JAXBException
obj
- writer
- am
- AttachmentMarshaller, optional Attachment
javax.xml.bind.JAXBException
public static java.lang.Object unmarshalByType(javax.xml.bind.Unmarshaller u, javax.xml.stream.XMLStreamReader reader, java.lang.Class type, boolean isList, JAXBUtils.CONSTRUCTION_TYPE ctype) throws WebServiceException
u
- Unmarshallerreader
- XMLStreamReadertype
- Class
WebServiceException
public static java.lang.Object unmarshalAsListOrArray(javax.xml.stream.XMLStreamReader reader, javax.xml.bind.Unmarshaller u, java.lang.Class type) throws java.lang.IllegalAccessException, java.text.ParseException, java.lang.NoSuchMethodException, java.lang.InstantiationException, javax.xml.datatype.DatatypeConfigurationException, java.lang.reflect.InvocationTargetException, javax.xml.bind.JAXBException
T
- jaxb
- type
-
java.lang.IllegalAccessException
java.text.ParseException
java.lang.NoSuchMethodException
java.lang.InstantiationException
javax.xml.datatype.DatatypeConfigurationException
java.lang.reflect.InvocationTargetException
javax.xml.bind.JAXBException
public static java.lang.Object unmarshalByElement(javax.xml.bind.Unmarshaller u, javax.xml.stream.XMLStreamReader reader) throws WebServiceException
u
- Unmarshallerreader
- XMLStreamReader
WebServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |