public class JAXBDSContext extends Object
| Modifier and Type | Field and Description |
|---|---|
static boolean |
DEBUG_ENABLED |
| Constructor and Description |
|---|
JAXBDSContext(javax.xml.bind.JAXBContext jaxbContext)
"Dispatch" Constructor
Use this full constructor when the JAXBContent is provided by the
customer.
|
JAXBDSContext(String contextPackage)
Deprecated.
|
JAXBDSContext(TreeSet<String> packages)
Slightly slower constructor
|
JAXBDSContext(TreeSet<String> packages,
String packagesKey)
Full Constructor JAXBDSContext (most performant)
|
public JAXBDSContext(TreeSet<String> packages, String packagesKey)
packages - Set of packages needed by the JAXBContext.public JAXBDSContext(TreeSet<String> packages)
packages - public JAXBDSContext(String contextPackage)
contextPackage - public JAXBDSContext(javax.xml.bind.JAXBContext jaxbContext)
jaxbContext - public TreeSet<String> getContextPackages()
public javax.xml.bind.JAXBContext getJAXBContext() throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic javax.xml.bind.JAXBContext getJAXBContext(ClassLoader cl) throws javax.xml.bind.JAXBException
javax.xml.bind.JAXBExceptionpublic javax.xml.bind.JAXBContext getJAXBContext(ClassLoader cl, boolean forceArrays) throws javax.xml.bind.JAXBException
ClassLoader - forceArrays - boolean (if true, then JAXBContext will automatically contain arrays)javax.xml.bind.JAXBExceptionpublic void setWebServiceNamespace(String namespace)
public Class<?> getProcessType()
public void setProcessType(Class<?> type)
type - public JAXBUtils.CONSTRUCTION_TYPE getConstructionType()
public boolean isxmlList()
public void setIsxmlList(boolean isxmlList)
public org.apache.axis2.context.MessageContext getMessageContext()
public void setMessageContext(org.apache.axis2.context.MessageContext messageContext)
public ClassLoader getClassLoader()
protected AttachmentContext createAttachmentContext()
public Object unmarshal(javax.xml.stream.XMLStreamReader inputReader) throws javax.xml.bind.JAXBException
inputReader - javax.xml.bind.JAXBExceptionpublic void marshal(Object obj, javax.xml.stream.XMLStreamWriter writer) throws javax.xml.bind.JAXBException
obj - writer - am - AttachmentMarshaller, optional Attachmentjavax.xml.bind.JAXBExceptionpublic static Object unmarshalByType(javax.xml.bind.Unmarshaller u, javax.xml.stream.XMLStreamReader reader, Class<?> type, boolean isList, JAXBUtils.CONSTRUCTION_TYPE ctype) throws javax.xml.ws.WebServiceException
u - Unmarshallerreader - XMLStreamReadertype - Classjavax.xml.ws.WebServiceExceptionpublic static Object unmarshalAsListOrArray(javax.xml.stream.XMLStreamReader reader, javax.xml.bind.Unmarshaller u, Class<?> type) throws IllegalAccessException, ParseException, NoSuchMethodException, InstantiationException, DatatypeConfigurationException, InvocationTargetException, javax.xml.bind.JAXBException
T - jaxb - type - IllegalAccessExceptionParseExceptionNoSuchMethodExceptionInstantiationExceptionDatatypeConfigurationExceptionInvocationTargetExceptionjavax.xml.bind.JAXBExceptionpublic static Object unmarshalByElement(javax.xml.bind.Unmarshaller u, javax.xml.stream.XMLStreamReader reader) throws javax.xml.ws.WebServiceException
u - Unmarshallerreader - XMLStreamReaderjavax.xml.ws.WebServiceExceptionCopyright © 2004–2017 The Apache Software Foundation. All rights reserved.