Class XMLBindingUtil
java.lang.Object
org.emau.icmvc.ttp.epix.common.utils.XMLBindingUtil
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription<T> T
void
void
<T> T
<T> T
<T> T
unmarshal
(Class<T> docClass, InputStream inputStream) <T> T
unmarshal
(String xsdSchema, InputStream xmlInput, Class<T> clss) <T> T
unmarshal
(String xsdSchema, InputStream xmlInput, String clss) <T> T
unmarshal
(javax.xml.bind.JAXBContext jaxbContext, Schema schema, InputStream xmlInput, Class<T> clazz)
-
Constructor Details
-
XMLBindingUtil
public XMLBindingUtil()
-
-
Method Details
-
load
- Throws:
Exception
-
unmarshal
public <T> T unmarshal(Class<T> docClass, InputStream inputStream) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
parse
- Throws:
javax.xml.bind.JAXBException
-
parse
public <T> T parse(Class<T> docClass, String xml, String xsdName) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
public <T> T unmarshal(String xsdSchema, InputStream xmlInput, Class<T> clss) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
public <T> T unmarshal(String xsdSchema, InputStream xmlInput, String clss) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
unmarshal
public <T> T unmarshal(javax.xml.bind.JAXBContext jaxbContext, Schema schema, InputStream xmlInput, Class<T> clazz) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public void marshal(String xsdSchema, String xmlDatei, Object jaxbElement) throws javax.xml.bind.JAXBException, SAXException - Throws:
javax.xml.bind.JAXBException
SAXException
-
marshal
public void marshal(javax.xml.bind.JAXBContext jaxbContext, Schema schema, String xmlDatei, Object jaxbElement) throws javax.xml.bind.JAXBException - Throws:
javax.xml.bind.JAXBException
-
marshal
public String marshal(String xsdName, Object jaxbElement) throws javax.xml.bind.JAXBException, SAXException - Throws:
javax.xml.bind.JAXBException
SAXException
-