Class CIMObjectFactory
- java.lang.Object
-
- org.sblim.cimclient.internal.cimxml.sax.CIMObjectFactory
-
public class CIMObjectFactory extends java.lang.Object
Class CIMObjectFactory is responsible for type String and value String parsing.
-
-
Constructor Summary
Constructors Constructor Description CIMObjectFactory()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CIMDataType
getCIMObjArrayType(java.lang.Object pObj)
getCIMObjArrayTypestatic CIMDataType
getCIMObjArrayType(java.lang.Object pObj, boolean pNullToString)
getArrayCIMObjTypestatic CIMDataType
getCIMObjScalarType(java.lang.Object pObj)
getCIMObjTypestatic CIMDataType
getCIMObjScalarType(java.lang.Object pObj, boolean pNullToString)
getCIMObjTypestatic java.lang.Object
getEmbeddedObj(CIMDataType pType, java.lang.Object pValObj, SAXSession pSession)
getEmbeddedObjstatic java.lang.Object
getEmbeddedObj(CIMDataType pType, java.lang.String pValueStr, SAXSession pSession)
getEmbeddedObjectstatic java.lang.Object[]
getEmbeddedObjA(CIMDataType pType, java.lang.String[] pValueStrA, SAXSession pSession)
getEmbeddedObjectAstatic java.lang.Object[]
getEmbeddedObjA(CIMDataType pType, ValueArrayNode pValueArrayNode, SAXSession pSession)
getEmbbeddedObjectAstatic java.lang.Object
getObject(CIMDataType pType, java.lang.String pValueStr)
getObjectstatic java.lang.Object
getObject(CIMDataType pType, ValueArrayNode pValueArrayNode)
getObjectstatic java.lang.Object
getObject(CIMDataType pType, ValueNode pValueNode)
getObjectstatic java.lang.Object[]
getObjectArray(CIMDataType pType, java.util.ArrayList<java.lang.Object> pAL)
static CIMDataType
getType(java.lang.String pTypeStr)
getType
-
-
-
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
-
-