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> jakarta.xml.bind.JAXBContext getContext(Class<?>... type) throws jakarta.xml.bind.JAXBException
      Throws:
      jakarta.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) throws Exception
      Throws:
      Exception
    • unmarshalResult

      public static <T> Result<T> unmarshalResult(Document doc, Class<T> clazz) throws Exception
      Throws:
      Exception