Class XMLBindingUtil

java.lang.Object
org.emau.icmvc.ttp.epix.common.utils.XMLBindingUtil

public class XMLBindingUtil extends Object
  • Constructor Details

    • XMLBindingUtil

      public XMLBindingUtil()
  • Method Details

    • load

      public <T> T load(Class<T> docClass, String fileName) throws Exception
      Throws:
      Exception
    • unmarshal

      public <T> T unmarshal(Class<T> docClass, InputStream inputStream) throws javax.xml.bind.JAXBException
      Throws:
      javax.xml.bind.JAXBException
    • parse

      public <T> T parse(Class<T> docClass, String xml) throws javax.xml.bind.JAXBException
      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