org.sblim.wbem.cimxml

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

String
CIMElementToXml(CIMElement obj)
Returns a string representing the CIM-XML of a CIMElement.
CIMElement
getCIMElement(String str)
Construct a Java object representing the CIMElement from the XML representation.

Method Details

CIMElementToXml

public 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

public 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

Copyright © 2005, 2006 IBM Corporation. All Rights Reserved.