Class CIMObjectFactory


  • public class CIMObjectFactory
    extends java.lang.Object
    Class CIMObjectFactory is responsible for type String and value String parsing.
    • Constructor Detail

      • CIMObjectFactory

        public CIMObjectFactory()
    • Method Detail

      • getEmbeddedObjA

        public static java.lang.Object[] getEmbeddedObjA​(CIMDataType pType,
                                                         ValueArrayNode pValueArrayNode,
                                                         SAXSession pSession)
                                                  throws org.xml.sax.SAXException
        getEmbbeddedObjectA
        Parameters:
        pType -
        pValueArrayNode -
        pSession -
        Returns:
        CIMInstance[], CIMClass[], String[] or null
        Throws:
        org.xml.sax.SAXException
      • getEmbeddedObjA

        public static java.lang.Object[] getEmbeddedObjA​(CIMDataType pType,
                                                         java.lang.String[] pValueStrA,
                                                         SAXSession pSession)
                                                  throws org.xml.sax.SAXException
        getEmbeddedObjectA
        Parameters:
        pType -
        pValueStrA -
        pSession -
        Returns:
        CIMInstance[], CIMClass[], String[] or null
        Throws:
        org.xml.sax.SAXException
      • getEmbeddedObj

        public static java.lang.Object getEmbeddedObj​(CIMDataType pType,
                                                      java.lang.String pValueStr,
                                                      SAXSession pSession)
                                               throws org.xml.sax.SAXException
        getEmbeddedObject
        Parameters:
        pType -
        pValueStr -
        pSession -
        Returns:
        CIMInstance, CIMClass or null
        Throws:
        org.xml.sax.SAXException
      • getEmbeddedObj

        public static java.lang.Object getEmbeddedObj​(CIMDataType pType,
                                                      java.lang.Object pValObj,
                                                      SAXSession pSession)
                                               throws org.xml.sax.SAXException
        getEmbeddedObj
        Parameters:
        pType -
        pValObj -
        pSession -
        Returns:
        Object CIMClass, CIMInstance, String, CIMClass[], CIMInstance[], String[] or null
        Throws:
        org.xml.sax.SAXException
      • getObjectArray

        public static java.lang.Object[] getObjectArray​(CIMDataType pType,
                                                        java.util.ArrayList<java.lang.Object> pAL)
        Parameters:
        pType -
        pAL -
        Returns:
        Object[]
      • getObject

        public static java.lang.Object getObject​(CIMDataType pType,
                                                 java.lang.String pValueStr)
                                          throws org.xml.sax.SAXException
        getObject
        Parameters:
        pType -
        pValueStr -
        Returns:
        Object
        Throws:
        org.xml.sax.SAXException
      • getObject

        public static java.lang.Object getObject​(CIMDataType pType,
                                                 ValueNode pValueNode)
                                          throws org.xml.sax.SAXException
        getObject
        Parameters:
        pType -
        pValueNode -
        Returns:
        Object
        Throws:
        org.xml.sax.SAXException
      • getObject

        public static java.lang.Object getObject​(CIMDataType pType,
                                                 ValueArrayNode pValueArrayNode)
                                          throws org.xml.sax.SAXException
        getObject
        Parameters:
        pType -
        pValueArrayNode -
        Returns:
        Object
        Throws:
        org.xml.sax.SAXException
      • getCIMObjScalarType

        public static CIMDataType getCIMObjScalarType​(java.lang.Object pObj,
                                                      boolean pNullToString)
                                               throws org.xml.sax.SAXException
        getCIMObjType
        Parameters:
        pObj -
        pNullToString -
        Returns:
        CIMDataType OBJECT_T, CLASS_T, STRING_T
        Throws:
        org.xml.sax.SAXException
      • getCIMObjScalarType

        public static CIMDataType getCIMObjScalarType​(java.lang.Object pObj)
                                               throws org.xml.sax.SAXException
        getCIMObjType
        Parameters:
        pObj -
        Returns:
        CIMDataType OBJECT_T, OBJECT_ARRAY_T
        Throws:
        org.xml.sax.SAXException
      • getCIMObjArrayType

        public static CIMDataType getCIMObjArrayType​(java.lang.Object pObj)
                                              throws org.xml.sax.SAXException
        getCIMObjArrayType
        Parameters:
        pObj -
        Returns:
        CIMDataType: OBJECT_ARRAY_T, CLASS_T array, STRING_ARRAY_T
        Throws:
        org.xml.sax.SAXException
      • getCIMObjArrayType

        public static CIMDataType getCIMObjArrayType​(java.lang.Object pObj,
                                                     boolean pNullToString)
                                              throws org.xml.sax.SAXException
        getArrayCIMObjType
        Parameters:
        pObj -
        pNullToString -
        Returns:
        CIMDataType: OBJECT_ARRAY_T, CLASS_T array, STRING_ARRAY_T or null
        Throws:
        org.xml.sax.SAXException
      • getType

        public static CIMDataType getType​(java.lang.String pTypeStr)
                                   throws org.xml.sax.SAXException
        getType
        Parameters:
        pTypeStr -
        Returns:
        CIMDataType
        Throws:
        org.xml.sax.SAXException