Class JAXBUtils

java.lang.Object
ru.bitel.common.xml.JAXBUtils

public class JAXBUtils extends Object
  • Constructor Details

    • JAXBUtils

      public JAXBUtils()
  • Method Details

    • getContext

      public static <T> javax.xml.bind.JAXBContext getContext(Class<?>... type) throws javax.xml.bind.JAXBException
      Throws:
      javax.xml.bind.JAXBException
    • marshal

      public static void marshal(Object jaxbObject, Result result)
    • marshal

      public static void marshal(Object jaxbObject, Node node)
    • marshal

      public static <T> void marshal(Result<T> jaxbObject, Class<T> clazz, Node node)
    • unmarshal

      public static <T> T unmarshal(Node node, String expression, Class<T> clazz)
    • unmarshalResult

      public static <T> Result<T> unmarshalResult(Document doc, Class<T> clazz)