Package 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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
CIMElementToXml(CIMElement obj)
Returns a string representing the CIM-XML of a CIMElement.CIMElement
getCIMElement(java.lang.String str)
Construct a Java object representing the CIMElement from the XML representation.
-
-
-
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 occursjava.io.IOException
- if any IO error occursorg.xml.sax.SAXException
- if any parse error occurs
-
-