Interface XMLService

All Superinterfaces:
Service

public interface XMLService
extends Service
Service for converting between XML and Java Objects.
  • Method Summary

    Modifier and Type Method Description
    java.lang.String marshal​(java.lang.Object o)
    Marshals the given ModelList, Model or JAXB as XML to a String and returns it.
    void marshal​(java.lang.Object o, java.io.OutputStream out)
    Marshals the given ModelList, Model or JAXB as XML to the given output stream.
    java.lang.Object unmarshal​(java.io.InputStream in)
    Unmarhsals the given ModelList, Model or JAXB from XML and returns the resultant object.
    java.lang.Object unmarshal​(java.lang.String xml)
    Unmarhsals the given ModelList, Model or JAXB from XML and returns the resultant object.
  • Method Details

    • marshal

      void marshal​(java.lang.Object o, java.io.OutputStream out)
      Marshals the given ModelList, Model or JAXB as XML to the given output stream.
      Parameters:
      o - object to be marshalled
      out - xml is written to this stream
    • marshal

      java.lang.String marshal​(java.lang.Object o)
      Marshals the given ModelList, Model or JAXB as XML to a String and returns it.
      Parameters:
      o - object to be marshalled
    • unmarshal

      java.lang.Object unmarshal​(java.io.InputStream in)
      Unmarhsals the given ModelList, Model or JAXB from XML and returns the resultant object.
      Parameters:
      in - xml source to be unmarshalled
      Returns:
      object which was produced
    • unmarshal

      java.lang.Object unmarshal​(java.lang.String xml)
      Unmarhsals the given ModelList, Model or JAXB from XML and returns the resultant object.
      Parameters:
      xml - xml source to be unmarshalled
      Returns:
      object which was produced