public class JettisonMappedContext extends JAXBContext
JAXB_CONTEXT_FACTORY
Constructor and Description |
---|
JettisonMappedContext(Class... classes) |
JettisonMappedContext(Map<String,String> xmlnsToJson,
List<QName> attributesAsElements,
List<QName> ignoredElements,
Class... classes) |
JettisonMappedContext(Mapped mapped,
Class... classes) |
JettisonMappedContext(org.codehaus.jettison.mapped.MappedNamespaceConvention convention,
Class... classes) |
JettisonMappedContext(Mapped mapped,
String contextPath) |
Modifier and Type | Method and Description |
---|---|
protected void |
createConvention(Mapped mapped) |
Marshaller |
createMarshaller()
Create a
Marshaller object that can be used to convert a
java content tree into XML data. |
Unmarshaller |
createUnmarshaller()
Create an
Unmarshaller object that can be used to convert XML
data into a java content tree. |
Validator |
createValidator()
Validator has been made optional and deprecated in JAXB 2.0. |
createBinder, createBinder, createJAXBIntrospector, generateSchema, newInstance, newInstance, newInstance, newInstance, newInstance
public JettisonMappedContext(Class... classes)
public JettisonMappedContext(Map<String,String> xmlnsToJson, List<QName> attributesAsElements, List<QName> ignoredElements, Class... classes)
public JettisonMappedContext(org.codehaus.jettison.mapped.MappedNamespaceConvention convention, Class... classes)
protected void createConvention(Mapped mapped)
public Unmarshaller createUnmarshaller() throws JAXBException
JAXBContext
Unmarshaller
object that can be used to convert XML
data into a java content tree.createUnmarshaller
in class JAXBContext
Unmarshaller
objectJAXBException
- if an error was encountered while creating the
Unmarshaller
objectpublic Marshaller createMarshaller() throws JAXBException
JAXBContext
Marshaller
object that can be used to convert a
java content tree into XML data.createMarshaller
in class JAXBContext
Marshaller
objectJAXBException
- if an error was encountered while creating the
Marshaller
objectpublic Validator createValidator() throws JAXBException
JAXBContext
Validator
has been made optional and deprecated in JAXB 2.0. Please
refer to the javadoc for Validator
for more detail.
Create a Validator
object that can be used to validate a
java content tree against its source schema.
createValidator
in class JAXBContext
Validator
objectJAXBException
- if an error was encountered while creating the
Validator
objectCopyright © 2021 JBoss by Red Hat. All rights reserved.