Package nl.b3p.csw.util
Class MarshallUtil
- java.lang.Object
-
- nl.b3p.csw.util.MarshallUtil
-
public class MarshallUtil extends Object
- Author:
- Erik van de Pol
-
-
Field Summary
Fields Modifier and Type Field Description protected static StringCSW_PACKAGEprotected static StringELEMENTS_PACKAGEprotected static StringFILTER_PACKAGEprotected static StringGML_PACKAGEprotected static StringJAXB_PACKAGESprotected static org.apache.commons.logging.Loglogprotected static StringOWS_PACKAGEprotected static StringSEPARATORprotected static StringTERMS_PACKAGE
-
Constructor Summary
Constructors Constructor Description MarshallUtil()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static voidaddPackage(String packageName)static Stringmarshall(javax.xml.bind.JAXBElement input, Schema schema)static javax.xml.bind.JAXBElementunMarshall(org.jdom2.Document xmlDocument, Schema schema, Class clazz)static javax.xml.bind.JAXBElementunMarshall(Document xmlDocument, Schema schema, Class clazz)
-
-
-
Field Detail
-
log
protected static org.apache.commons.logging.Log log
-
CSW_PACKAGE
protected static final String CSW_PACKAGE
- See Also:
- Constant Field Values
-
ELEMENTS_PACKAGE
protected static final String ELEMENTS_PACKAGE
- See Also:
- Constant Field Values
-
FILTER_PACKAGE
protected static final String FILTER_PACKAGE
- See Also:
- Constant Field Values
-
GML_PACKAGE
protected static final String GML_PACKAGE
- See Also:
- Constant Field Values
-
OWS_PACKAGE
protected static final String OWS_PACKAGE
- See Also:
- Constant Field Values
-
TERMS_PACKAGE
protected static final String TERMS_PACKAGE
- See Also:
- Constant Field Values
-
SEPARATOR
protected static final String SEPARATOR
- See Also:
- Constant Field Values
-
JAXB_PACKAGES
protected static String JAXB_PACKAGES
-
-
Method Detail
-
addPackage
public static void addPackage(String packageName)
-
marshall
public static String marshall(javax.xml.bind.JAXBElement input, Schema schema) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
unMarshall
public static javax.xml.bind.JAXBElement unMarshall(Document xmlDocument, Schema schema, Class clazz) throws javax.xml.bind.JAXBException
- Throws:
javax.xml.bind.JAXBException
-
-