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 javax.xml.bind.JAXBContext
private javax.xml.bind.Marshaller
private javax.xml.bind.Unmarshaller
-
Constructor Summary
ConstructorsConstructorDescriptionJAXBSupport
(String contextPath) JAXBSupport
(String contextPath, ClassLoader classloader) -
Method Summary
Modifier and TypeMethodDescriptionprivate javax.xml.bind.JAXBContext
private javax.xml.bind.Marshaller
private javax.xml.bind.Unmarshaller
protected Element
marshal
(javax.xml.bind.Element element) Marshals the givenElement
in to its DOM4J counterpart.protected javax.xml.bind.Element
Unmarshalls the specified DOM4JElement
into aElement
-
Field Details
-
contextPath
-
classloader
-
jaxbContext
private javax.xml.bind.JAXBContext jaxbContext -
marshaller
private javax.xml.bind.Marshaller marshaller -
unmarshaller
private javax.xml.bind.Unmarshaller 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:
javax.xml.bind.JAXBException
- when an error occurs
-
unmarshal
Unmarshalls the specified DOM4JElement
into aElement
- Parameters:
element
- the DOM4J element to unmarshall- Returns:
- the unmarshalled JAXB object
- Throws:
javax.xml.bind.JAXBException
- when an error occurs
-
getMarshaller
private javax.xml.bind.Marshaller getMarshaller() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
getUnmarshaller
private javax.xml.bind.Unmarshaller getUnmarshaller() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-
getContext
private javax.xml.bind.JAXBContext getContext() throws javax.xml.bind.JAXBException- Throws:
javax.xml.bind.JAXBException
-