|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.axis2.datasource.jaxb.JAXBDSContext
public class JAXBDSContext
Field Summary | |
---|---|
static boolean |
DEBUG_ENABLED
|
Constructor Summary | |
---|---|
JAXBDSContext(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 AttachmentMarshaller |
createAttachmentMarshaller(XMLStreamWriter writer)
Create an AttachmentMarshaller to marshal MTOM/SWA Attachments |
protected AttachmentUnmarshaller |
createAttachmentUnmarshaller(XMLStreamReader reader)
Create an Attachment unmarshaller for unmarshalling MTOM/SWA Attachments |
java.lang.ClassLoader |
getClassLoader()
|
JAXBUtils.CONSTRUCTION_TYPE |
getConstructionType()
|
java.util.TreeSet<java.lang.String> |
getContextPackages()
|
JAXBContext |
getJAXBContext()
|
JAXBContext |
getJAXBContext(java.lang.ClassLoader cl)
|
MessageContext |
getMessageContext()
|
java.lang.Class |
getProcessType()
|
boolean |
isxmlList()
|
void |
marshal(java.lang.Object obj,
XMLStreamWriter writer)
Marshal the jaxb object |
void |
setIsxmlList(boolean isxmlList)
|
void |
setMessageContext(MessageContext messageContext)
|
void |
setProcessType(java.lang.Class type)
Set RPC Declared Type. |
void |
setWebServiceNamespace(java.lang.String namespace)
|
java.lang.Object |
unmarshal(XMLStreamReader reader)
Unmarshal the xml into a JAXB object |
static java.lang.Object |
unmarshalAsListOrArray(XMLStreamReader reader,
Unmarshaller u,
java.lang.Class type)
convert the String into a list or array |
static java.lang.Object |
unmarshalByElement(Unmarshaller u,
XMLStreamReader reader)
Preferred way to unmarshal objects |
static java.lang.Object |
unmarshalByType(Unmarshaller u,
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(JAXBContext jaxbContext)
jaxbContext
- Method Detail |
---|
public java.util.TreeSet<java.lang.String> getContextPackages()
public JAXBContext getJAXBContext() throws JAXBException
JAXBException
public JAXBContext getJAXBContext(java.lang.ClassLoader cl) throws JAXBException
JAXBException
public void setWebServiceNamespace(java.lang.String namespace)
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 AttachmentMarshaller createAttachmentMarshaller(XMLStreamWriter writer)
writer
-
protected AttachmentUnmarshaller createAttachmentUnmarshaller(XMLStreamReader reader)
public java.lang.Object unmarshal(XMLStreamReader reader) throws JAXBException
reader
-
JAXBException
public void marshal(java.lang.Object obj, XMLStreamWriter writer) throws JAXBException
obj
- writer
- am
- AttachmentMarshaller, optional Attachment
JAXBException
public static java.lang.Object unmarshalByType(Unmarshaller u, 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(XMLStreamReader reader, 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, JAXBException
T
- jaxb
- type
-
java.lang.IllegalAccessException
java.text.ParseException
java.lang.NoSuchMethodException
java.lang.InstantiationException
javax.xml.datatype.DatatypeConfigurationException
java.lang.reflect.InvocationTargetException
JAXBException
public static java.lang.Object unmarshalByElement(Unmarshaller u, XMLStreamReader reader) throws WebServiceException
u
- Unmarshallerreader
- XMLStreamReader
WebServiceException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |