Class JAXBSupport
java.lang.Object
org.dom4j.jaxb.JAXBSupport
- Direct Known Subclasses:
JAXBModifier, JAXBReader, JAXBWriter
DOCUMENT ME!
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate ClassLoaderprivate Stringprivate JAXBContextprivate Marshallerprivate Unmarshaller -
Constructor Summary
ConstructorsConstructorDescriptionJAXBSupport(String contextPath) JAXBSupport(String contextPath, ClassLoader classloader) -
Method Summary
Modifier and TypeMethodDescriptionprivate JAXBContextprivate Marshallerprivate Unmarshallerprotected ElementMarshals the givenElementin to its DOM4J counterpart.protected Element
-
Field Details
-
contextPath
-
classloader
-
jaxbContext
-
marshaller
-
unmarshaller
-
-
Constructor Details
-
JAXBSupport
-
JAXBSupport
-
-
Method Details
-
marshal
Marshals the givenElementin 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
-