Class CIMXMLBuilderImpl

java.lang.Object
org.sblim.cimclient.internal.cimxml.CIMXMLBuilderImpl

public class CIMXMLBuilderImpl extends Object
Class CIMXMLBuilderImpl is the core class for building CIM-XML documents.
  • Constructor Details

    • CIMXMLBuilderImpl

      public CIMXMLBuilderImpl()
  • Method Details

    • createCIM

      public static Element createCIM(Document pDoc)
      createCIM
      Parameters:
      pDoc -
      Returns:
      Element
    • createVALUE

      public static Element createVALUE(Document pDoc, Element pParentE)
      createVALUE
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createVALUE

      public static Element createVALUE(Document pDoc, Element pParentE, String pValue)
      createVALUE
      Parameters:
      pDoc -
      pParentE -
      pValue -
      Returns:
      Element
    • createVALUE

      public static Element createVALUE(Document pDoc, Element pParentE, boolean pValue)
      createVALUE
      Parameters:
      pDoc -
      pParentE -
      pValue -
      Returns:
      Element
    • createVALUEARRAY

      public static Element createVALUEARRAY(Document pDoc, Element pParentE)
      createVALUEARRAY
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createVALUEREFERENCE

      public static Element createVALUEREFERENCE(Document pDoc, Element pParentE)
      createVALUEREFERENCE
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createVALUEREFARRAY

      public static Element createVALUEREFARRAY(Document pDoc, Element pParentE)
      createVALUEREFARRAY
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createPROPERTY

      public static Element createPROPERTY(Document pDoc, Element pParentE, String pName, String pType)
      createPROPERTY
      Parameters:
      pDoc -
      pParentE -
      pName -
      pType -
      Returns:
      Element
    • createPROPERTYARRAY

      public static Element createPROPERTYARRAY(Document pDoc, Element pParentE, String pName, String pType)
      createPROPERTYARRAY
      Parameters:
      pDoc -
      pParentE -
      pName -
      pType -
      Returns:
      Element
    • createPROPERTYREFERENCE

      public static Element createPROPERTYREFERENCE(Document pDoc, Element pParentE, String pName, String pReferenceclass)
      createPROPERTYREFERENCE
      Parameters:
      pDoc -
      pParentE -
      pName -
      pReferenceclass -
      Returns:
      Element
    • createNAMESPACE

      public static Element createNAMESPACE(Document pDoc, Element pParentE, String pName)
      createNAMESPACE
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createLOCALINSTANCEPATH

      public static Element createLOCALINSTANCEPATH(Document pDoc, Element pParentE)
      createLOCALINSTANCEPATH
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createCLASSNAME

      public static Element createCLASSNAME(Document pDoc, Element pParentE, String pName)
      createCLASSNAME
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createCLASS

      public static Element createCLASS(Document pDoc, Element pParentE, String pName, String pSuperClass)
      createCLASS
      Parameters:
      pDoc -
      pParentE -
      pName -
      pSuperClass -
      Returns:
      Element
    • createINSTANCENAME

      public static Element createINSTANCENAME(Document pDoc, Element pParentE, String pClassName)
      createINSTANCENAME
      Parameters:
      pDoc -
      pParentE -
      pClassName -
      Returns:
      Element
    • createKEYBINDING

      public static Element createKEYBINDING(Document pDoc, Element pParentE, String pName)
      createKEYBINDING
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createKEYVALUE

      public static Element createKEYVALUE(Document pDoc, Element pParentE, String pValueType, String pValue)
      createKEYVALUE
      Parameters:
      pDoc -
      pParentE -
      pValueType -
      pValue -
      Returns:
      KEYVALUE
    • createINSTANCE

      public static Element createINSTANCE(Document pDoc, Element pParentE, String pClassName)
      createINSTANCE
      Parameters:
      pDoc -
      pParentE -
      pClassName -
      Returns:
      Element
    • createQUALIFIER

      public static Element createQUALIFIER(Document pDoc, Element pParentE, String pName, String pType)
      createQUALIFIER
      Parameters:
      pDoc -
      pParentE -
      pName -
      pType -
      Returns:
      Element
    • createMESSAGE

      public static Element createMESSAGE(Document pDoc, Element pParentE, String pId, String pProtocolVersion)
      createMESSAGE
      Parameters:
      pDoc -
      pParentE -
      pId -
      pProtocolVersion -
      Returns:
      Element
    • createSIMPLEREQ

      public static Element createSIMPLEREQ(Document pDoc, Element pParentE)
      createSIMPLEREQ
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createSIMPLEREQ

      public static Element createSIMPLEREQ(Document pDoc)
      createSIMPLEREQ
      Parameters:
      pDoc -
      Returns:
      Element
    • createMULTIREQ

      public static Element createMULTIREQ(Document pDoc)
      createMULTIREQ
      Parameters:
      pDoc -
      Returns:
      Element
    • createMETHODCALL

      public static Element createMETHODCALL(Document pDoc, Element pParentE, String pName)
      createMETHODCALL
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createPARAMVALUE

      public static Element createPARAMVALUE(Document pDoc, Element pParentE, CIMArgument<?> pArg) throws WBEMException
      createPARAMVALUE
      Parameters:
      pDoc -
      pParentE -
      pArg -
      Returns:
      Element
      Throws:
      WBEMException
    • createSIMPLERSP

      public static Element createSIMPLERSP(Document pDoc, Element pParentE)
      createSIMPLERSP
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createSIMPLEEXPRSP

      public static Element createSIMPLEEXPRSP(Document pDoc, Element pParentE)
      createSIMPLEEXPRSP
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createMETHODRESPONSE

      public static Element createMETHODRESPONSE(Document pDoc, Element pParentE, String pName)
      createMETHODRESPONSE
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createIMETHODRESPONSE

      public static Element createIMETHODRESPONSE(Document pDoc, Element pParentE, String pName)
      createIMETHODRESPONSE
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createEXPMETHODRESPONSE

      public static Element createEXPMETHODRESPONSE(Document pDoc, Element pParentE, String pName)
      createEXPMETHODRESPONSE
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createIRETURNVALUE

      public static Element createIRETURNVALUE(Document pDoc, Element pParentE)
      createIRETURNVALUE
      Parameters:
      pDoc -
      pParentE -
      Returns:
      Element
    • createRETURNVALUE

      public static Element createRETURNVALUE(Document pDoc, Element pParentE, Object pValue) throws WBEMException
       !ELEMENT RETURNVALUE (VALUE | VALUE.REFERENCE)
       !ATTLIST RETURNVALUE
       %ParamType;       #IMPLIED
       
      createRETURNVALUE
      Parameters:
      pDoc -
      pParentE -
      pValue -
      Returns:
      Element
      Throws:
      WBEMException
    • createIMETHODCALL

      public static Element createIMETHODCALL(Document pDoc, Element pParentE, String pName)
      createIMETHODCALL
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createIPARAMVALUE

      public static Element createIPARAMVALUE(Document pDoc, Element pParentE, String pName)
      createIPARAMVALUE
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createERROR

      public static Element createERROR(Document doc, Element parentE, CIMError error)
      createERROR
      Parameters:
      doc -
      parentE -
      error -
      Returns:
      Element
    • createQUALIFIER_DECLARATION

      public static Element createQUALIFIER_DECLARATION(Document pDoc, Element pParentE, CIMQualifierType<?> pQualifierType) throws WBEMException
      createQUALIFIER_DECLARATION
      Parameters:
      pDoc -
      pParentE -
      pQualifierType -
      Returns:
      Element
      Throws:
      WBEMException
    • createQUALIFIER

      public static Element createQUALIFIER(Document pDoc, Element pParentE, CIMQualifier<?> pQualifier) throws WBEMException
      createQUALIFIER
      Parameters:
      pDoc -
      pParentE -
      pQualifier -
      Returns:
      Element
      Throws:
      WBEMException
    • createQUALIFIERS

      public static void createQUALIFIERS(Document pDoc, Element pParentE, CIMQualifier<?>[] pQualifiersA) throws WBEMException
      createQUALIFIERS
      Parameters:
      pDoc -
      pParentE -
      pQualifiersA -
      Throws:
      WBEMException
    • createPROPERTIES

      public static void createPROPERTIES(Document pDoc, Element pParentE, CIMProperty<?>[] pProperties) throws WBEMException
      createPROPERTIES
      Parameters:
      pDoc -
      pParentE -
      pProperties -
      Throws:
      WBEMException
    • isCIMObject

      public static boolean isCIMObject(int typeCode)
      isCIMObject
      Parameters:
      typeCode -
      Returns:
      boolean
    • isCIMObject

      public static boolean isCIMObject(CIMDataType pType)
      isCIMObject
      Parameters:
      pType -
      Returns:
      boolean
    • getEmbObjTypeStr

      public static String getEmbObjTypeStr(CIMDataType pType)
      getEmbObjTypeStr
      Parameters:
      pType -
      Returns:
      String
    • cimObjectToXMLString

      public static String cimObjectToXMLString(Object pObj) throws WBEMException
      cimObjectToXMLString - for embedded object support
      Parameters:
      pObj -
      Returns:
      String
      Throws:
      WBEMException
    • cimObjectArrayToXMLString

      public static String[] cimObjectArrayToXMLString(Object pObj) throws WBEMException
      cimObjectArrayToXMLString - for embedded object support
      Parameters:
      pObj -
      Returns:
      String[]
      Throws:
      WBEMException
    • createPROPERTY

      public static Element createPROPERTY(Document pDoc, Element pParentE, CIMProperty<?> pProperty) throws WBEMException
      createPROPERTY
      Parameters:
      pDoc -
      pParentE -
      pProperty -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUEARRAY

      public static Element createVALUEARRAY(Document pDoc, Element pParentE, Object[] pValA) throws WBEMException
      createVALUEARRAY
      Parameters:
      pDoc -
      pParentE -
      pValA -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUE

      public static Element createVALUE(Document pDoc, Element pParentE, Object pArgValue) throws WBEMException
      createVALUE
      Parameters:
      pDoc -
      pParentE -
      pArgValue -
      Returns:
      Element
      Throws:
      WBEMException
    • createINSTANCE

      public static Element createINSTANCE(Document pDoc, Element pParentE, CIMInstance pInstance) throws WBEMException
      createINSTANCE
      Parameters:
      pDoc -
      pParentE -
      pInstance -
      Returns:
      Element
      Throws:
      WBEMException
    • createOBJECTPATH

      public static Element createOBJECTPATH(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createOBJECTPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createOBJECTNAME

      public static Element createOBJECTNAME(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createOBJECTNAME
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createLOCALINSTANCEPATH

      public static Element createLOCALINSTANCEPATH(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createLOCALINSTANCEPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createLOCALCLASSPATH

      public static Element createLOCALCLASSPATH(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createLOCALCLASSPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createLOCALOBJECTPATH

      public static Element createLOCALOBJECTPATH(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createLOCALOBJECTPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUEREFERENCE

      public static Element createVALUEREFERENCE(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createVALUEREFERENCE
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createINSTANCENAME

      public static Element createINSTANCENAME(Document doc, Element parentE, CIMObjectPath instanceOP) throws WBEMException
      createINSTANCENAME
      Parameters:
      doc -
      parentE -
      instanceOP -
      Returns:
      Element
      Throws:
      WBEMException
    • createCLASSPATH

      public static Element createCLASSPATH(Document pDoc, Element pParentE, CIMObjectPath pPath)
      createCLASSPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
    • createPARAMETERS

      public static void createPARAMETERS(Document pDoc, Element pParentE, CIMParameter<?>[] pParameters) throws WBEMException
      createPARAMETERS
      Parameters:
      pDoc -
      pParentE -
      pParameters -
      Throws:
      WBEMException
    • createPARAMETER

      public static Element createPARAMETER(Document pDoc, Element pParentE, CIMParameter<?> pParameter) throws WBEMException
      createPARAMETER
      Parameters:
      pDoc -
      pParentE -
      pParameter -
      Returns:
      Element
      Throws:
      WBEMException
    • createMETHODS

      public static void createMETHODS(Document pDoc, Element pParentE, CIMMethod<?>[] pMethods, String pClassName) throws WBEMException
      createMETHODS
      Parameters:
      pDoc -
      pParentE -
      pMethods -
      pClassName -
      Throws:
      WBEMException
    • createMETHOD

      public static Element createMETHOD(Document pDoc, Element pParentE, CIMMethod<?> pMethod, String pClassName) throws WBEMException
      createMETHOD
      Parameters:
      pDoc -
      pParentE -
      pMethod -
      pClassName -
      Returns:
      Element
      Throws:
      WBEMException
    • createCLASS

      public static Element createCLASS(Document pDoc, Element pParentE, CIMClass pClass) throws WBEMException
      createCLASS
      Parameters:
      pDoc -
      pParentE -
      pClass -
      Returns:
      Element
      Throws:
      WBEMException
    • createHOST

      public static Element createHOST(Document pDoc, Element pParentE, String pHost)
      createHOST
      Parameters:
      pDoc -
      pParentE -
      pHost -
      Returns:
      Element
    • createNAMESPACEPATH

      public static Element createNAMESPACEPATH(Document pDoc, Element pParentE, CIMObjectPath pPath)
      createNAMESPACEPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
    • createINSTANCEPATH

      public static Element createINSTANCEPATH(Document pDoc, Element pParentE, CIMObjectPath pPath) throws WBEMException
      createINSTANCEPATH
      Parameters:
      pDoc -
      pParentE -
      pPath -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUENAMEDINSTANCE

      public static Element createVALUENAMEDINSTANCE(Document pDoc, Element pParentE, CIMObjectPath pPath, CIMInstance pInst) throws WBEMException
      createVALUENAMEDINSTANCE
      Parameters:
      pDoc -
      pParentE -
      pPath -
      pInst -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUENAMEDINSTANCE

      public static Element createVALUENAMEDINSTANCE(Document pDoc, Element pParentE, CIMInstance pInst) throws WBEMException
      createVALUENAMEDINSTANCE
      Parameters:
      pDoc -
      pParentE -
      pInst -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUEOBJECTWITHPATH

      public static Element createVALUEOBJECTWITHPATH(Document pDoc, Element pParentE, Object pObj, String pNameSpace) throws WBEMException
      createVALUEOBJECTWITHPATH
      Parameters:
      pDoc -
      pParentE -
      pObj -
      pNameSpace -
      Returns:
      Element
      Throws:
      WBEMException
    • createVALUEOBJECTWITHLOCALPATH

      public static Element createVALUEOBJECTWITHLOCALPATH(Document pDoc, Element pParentE, Object pObj, String pNameSpace) throws WBEMException
      createVALUEOBJECTWITHLOCALPATH
      Parameters:
      pDoc -
      pParentE -
      pObj -
      pNameSpace -
      Returns:
      Element
      Throws:
      WBEMException
    • createIRETURNVALUE_ERROR

      public static Element createIRETURNVALUE_ERROR(Document doc, Element parentE, CIMError error)
      createIRETURNVALUE_ERROR
      Parameters:
      doc -
      parentE -
      error -
      Returns:
      Element
    • createIRETURNVALUE_GETINSTANCE

      public static Element createIRETURNVALUE_GETINSTANCE(Document pDoc, Element pParentE, CIMInstance pInst) throws WBEMException
      createIRETURNVALUE_GETINSTANCE
      Parameters:
      pDoc -
      pParentE -
      pInst -
      Returns:
      Element
      Throws:
      WBEMException
    • createIRETURNVALUE_ASSOCIATORS_NAMES

      public static Element createIRETURNVALUE_ASSOCIATORS_NAMES(Document pDoc, Element pParentE, CIMObjectPath[] pResultSet) throws Exception
      createIRETURNVALUE_ASSOCIATORS_NAMES
      Parameters:
      pDoc -
      pParentE -
      pResultSet -
      Returns:
      Element
      Throws:
      Exception
    • createIRETURNVALUE_ASSOCIATORS

      public static Element createIRETURNVALUE_ASSOCIATORS(Document pDoc, Element pParentE, Object[] pResultSet, String pNameSpace) throws Exception
      createIRETURNVALUE_ASSOCIATORS
      Parameters:
      pDoc -
      pParentE -
      pResultSet -
      pNameSpace -
      Returns:
      Element
      Throws:
      Exception
    • createIRETURNVALUE_ENUMERATE_INSTANCENAME

      public static Element createIRETURNVALUE_ENUMERATE_INSTANCENAME(Document pDoc, Element pParentE, Object[] pResultSet, String pNameSpace) throws Exception
      createIRETURNVALUE_ENUMERATE_INSTANCENAME
      Parameters:
      pDoc -
      pParentE -
      pResultSet -
      pNameSpace -
      Returns:
      Element
      Throws:
      Exception
    • createIRETURNVALUE

      public static Element createIRETURNVALUE(Document pDoc, Element pParentE, Object[] pResultSet) throws WBEMException
      createIRETURNVALUE
      Parameters:
      pDoc -
      pParentE -
      pResultSet -
      Returns:
      Element
      Throws:
      WBEMException
    • createIRETURNVALUE_ENUMERATE_CLASSNAME

      public static Element createIRETURNVALUE_ENUMERATE_CLASSNAME(Document pDoc, Element pParentE, CIMClass[] pResultSet)
      createIRETURNVALUE_ENUMERATE_CLASSNAME
      Parameters:
      pDoc -
      pParentE -
      pResultSet -
      Returns:
      Element
    • createIndication_response

      public static Element createIndication_response(Document doc, String ID, CIMError error)
      createIndication_response
      Parameters:
      doc -
      ID -
      error -
      Returns:
      Element
    • createIRETURNVALUE_ENUMERATE_INSTANCE

      public static Element createIRETURNVALUE_ENUMERATE_INSTANCE(Document pDoc, Element pParentE, CIMInstance[] pResultSet) throws WBEMException
      createIRETURNVALUE_ENUMERATE_INSTANCE
      Parameters:
      pDoc -
      pParentE -
      pResultSet -
      Returns:
      Element
      Throws:
      WBEMException
    • getTypeStr

      public static String getTypeStr(CIMDataType pType)
      getTypeStr
      Parameters:
      pType -
      Returns:
      String
    • getOpTypeStr

      public static String getOpTypeStr(CIMDataType pType)
      getOpTypeStr
      Parameters:
      pType -
      Returns:
      String
    • createLOCALNAMESPACEPATH

      public static Element createLOCALNAMESPACEPATH(Document pDoc, Element pParentE, CIMObjectPath pName)
      createLOCALNAMESPACEPATH
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createSIMPLEEXPREQ

      public static Element createSIMPLEEXPREQ(Document pDoc)
      createSIMPLEEXPREQ
      Parameters:
      pDoc -
      Returns:
      Element
    • createEXPMETHODCALL

      public static Element createEXPMETHODCALL(Document pDoc, Element pParentE, String pName)
      createEXPMETHODCALL
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element
    • createEXPPARAMVALUE

      public static Element createEXPPARAMVALUE(Document pDoc, Element pParentE, String pName)
      createEXPPARAMVALUE
      Parameters:
      pDoc -
      pParentE -
      pName -
      Returns:
      Element