Interface CIMXmlUtil


  • public interface CIMXmlUtil
    This interface provides the methods used to convert CIMElements to CIM-XML representation, and CIM-XML representation back to CIMElements. The implementation of this instance is not thread safe.
    Author:
    Roberto
    • Method Detail

      • CIMElementToXml

        java.lang.String CIMElementToXml​(CIMElement obj)
                                  throws CIMException
        Returns a string representing the CIM-XML of a CIMElement.
        Parameters:
        obj - the element to be converted into XML
        Returns:
        the XML represented as String
        Throws:
        CIMException - On any unrecoverable error
      • getCIMElement

        CIMElement getCIMElement​(java.lang.String str)
                          throws CIMException,
                                 java.io.IOException,
                                 org.xml.sax.SAXException
        Construct a Java object representing the CIMElement from the XML representation.
        Parameters:
        str - XML representation of the CIMElement
        Returns:
        Java Object
        Throws:
        CIMException - if any CIM error occurs
        java.io.IOException - if any IO error occurs
        org.xml.sax.SAXException - if any parse error occurs