Class JAXBUtils

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

public class JAXBUtils extends Object
  • Constructor Details Link icon

    • JAXBUtils Link icon

      public JAXBUtils()
  • Method Details Link icon

    • getContext Link icon

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

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

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

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

      public static <T> T unmarshal(Node node, String expression, Class<T> clazz) throws Exception
      Throws:
      Exception
    • unmarshalResult Link icon

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