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 Summary

    Modifier and Type
    Method
    Description
    Returns a string representing the CIM-XML of a CIMElement.
    Construct a Java object representing the CIMElement from the XML representation.
  • Method Details

    • CIMElementToXml

      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(String str) throws CIMException, IOException, 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
      IOException - if any IO error occurs
      SAXException - if any parse error occurs