com.supermap.services.rest.util

Class XmlConverter

  • java.lang.Object
    • com.supermap.services.rest.util.XmlConverter


  • public class XmlConverter
    extends java.lang.Object
    

    XML converter

    • Constructor Summary

      Constructors 
      Constructor and Description
      XmlConverter(XStream xstream) 
    • Method Summary

      Methods 
      Modifier and Type Method and Description
      org.w3c.dom.Document toFormatedObject(java.lang.Object resourceObj)
      Used to convert an object into an xml document object Document.
      • Methods inherited from class java.lang.Object

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

      • XmlConverter

        public XmlConverter(XStream xstream)
        
    • Method Detail

      • toFormatedObject

        public org.w3c.dom.Document toFormatedObject(java.lang.Object resourceObj)
        

        Used to convert an object into an xml document object Document. If the incoming parameter is of the base type, it is not converted and returns null.

        Parameters:
        resourceObj - The object to be converted.
        Returns:
        Returns the converted xml document object Document.