Package org.dom4j.jaxb
Class JAXBSupport
java.lang.Object
org.dom4j.jaxb.JAXBSupport
- Direct Known Subclasses:
JAXBModifier
,JAXBReader
,JAXBWriter
DOCUMENT ME!
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClassLoader
private String
private JAXBContext
private Marshaller
private Unmarshaller
-
Constructor Summary
ConstructorsConstructorDescriptionJAXBSupport
(String contextPath) JAXBSupport
(String contextPath, ClassLoader classloader) -
Method Summary
Modifier and TypeMethodDescriptionprivate JAXBContext
private Marshaller
private Unmarshaller
protected Element
Marshals the givenElement
in to its DOM4J counterpart.protected Element
-
Field Details
-
contextPath
-
classloader
-
jaxbContext
-
marshaller
-
unmarshaller
-
-
Constructor Details
-
JAXBSupport
-
JAXBSupport
-
-
Method Details
-
marshal
Marshals the givenElement
in to its DOM4J counterpart.- Parameters:
element
- JAXB Element to be marshalled- Returns:
- the marshalled DOM4J
Element
- Throws:
JAXBException
- when an error occurs
-
unmarshal
- Parameters:
element
- the DOM4J element to unmarshall- Returns:
- the unmarshalled JAXB object
- Throws:
JAXBException
- when an error occurs
-
getMarshaller
- Throws:
JAXBException
-
getUnmarshaller
- Throws:
JAXBException
-
getContext
- Throws:
JAXBException
-