Package io.minio

Class Xml

java.lang.Object
io.minio.Xml

public class Xml extends Object
XML marshaller and unmarshaller.
  • Constructor Summary

    Constructors
    Constructor
    Description
    Xml()
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static String
    marshal(Object source)
    This marshal method will traverse the provided object checking for field annotations in order to compose the XML data.
    static <T> T
    unmarshal(Class<? extends T> type, Reader source)
    This unmarshal method will read the contents of the XML document from the provided source and populate the object with the values deserialized.
    static <T> T
    unmarshal(Class<? extends T> type, String source)
    This unmarshal method will read the contents of the XML document from the provided source and populate the object with the values deserialized.
    static boolean
    validate(Class type, String source)
    This validate method will validate the contents of the XML document against the specified XML class schema.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Xml

      public Xml()
  • Method Details

    • marshal

      public static String marshal(Object source) throws XmlParserException
      This marshal method will traverse the provided object checking for field annotations in order to compose the XML data.
      Throws:
      XmlParserException
    • unmarshal

      public static <T> T unmarshal(Class<? extends T> type, Reader source) throws XmlParserException
      This unmarshal method will read the contents of the XML document from the provided source and populate the object with the values deserialized.
      Throws:
      XmlParserException
    • unmarshal

      public static <T> T unmarshal(Class<? extends T> type, String source) throws XmlParserException
      This unmarshal method will read the contents of the XML document from the provided source and populate the object with the values deserialized.
      Throws:
      XmlParserException
    • validate

      public static boolean validate(Class type, String source) throws XmlParserException
      This validate method will validate the contents of the XML document against the specified XML class schema.
      Throws:
      XmlParserException