|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.xml.bind.JAXBContext
public abstract class JAXBContext
The JAXBContext class provides the client's entry point to the JAXB API. It provides an abstraction for managing the XML/Java binding information necessary to implement the JAXB binding framework operations: unmarshal, marshal and validate. A client application obtains new instances of this class via the newInstance(contextPath) method.
Field Summary | |
---|---|
static String |
JAXB_CONTEXT_FACTORY
The name of the property that contains the name of the class capable of creating new JAXBContext objects. |
Constructor Summary | |
---|---|
JAXBContext()
|
Method Summary | |
---|---|
abstract Marshaller |
createMarshaller()
Create a Marshaller object that can be used to convert a java content tree into XML data. |
abstract Unmarshaller |
createUnmarshaller()
Create an Unmarshaller object that can be used to convert XML data into a java content tree. |
abstract Validator |
createValidator()
Create a Validator object that can be used to validate a java content tree against its source schema. |
static JAXBContext |
newInstance(String contextPath)
Obtain a new instance of a JAXBContext class. |
static JAXBContext |
newInstance(String contextPath,
ClassLoader classLoader)
Obtain a new instance of a JAXBContext class. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String JAXB_CONTEXT_FACTORY
Constructor Detail |
---|
public JAXBContext()
Method Detail |
---|
public abstract Marshaller createMarshaller() throws JAXBException
JAXBException
public abstract Unmarshaller createUnmarshaller() throws JAXBException
JAXBException
public abstract Validator createValidator() throws JAXBException
JAXBException
public static JAXBContext newInstance(String contextPath) throws JAXBException
JAXBException
public static JAXBContext newInstance(String contextPath, ClassLoader classLoader) throws JAXBException
JAXBException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |