Class CIMObjectFactory
java.lang.Object
org.sblim.cimclient.internal.cimxml.sax.CIMObjectFactory
Class CIMObjectFactory is responsible for type String and value String
parsing.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CIMDataType
getCIMObjArrayType
(Object pObj) getCIMObjArrayTypestatic CIMDataType
getCIMObjArrayType
(Object pObj, boolean pNullToString) getArrayCIMObjTypestatic CIMDataType
getCIMObjScalarType
(Object pObj) getCIMObjTypestatic CIMDataType
getCIMObjScalarType
(Object pObj, boolean pNullToString) getCIMObjTypestatic Object
getEmbeddedObj
(CIMDataType pType, Object pValObj, SAXSession pSession) getEmbeddedObjstatic Object
getEmbeddedObj
(CIMDataType pType, String pValueStr, SAXSession pSession) getEmbeddedObjectstatic Object[]
getEmbeddedObjA
(CIMDataType pType, String[] pValueStrA, SAXSession pSession) getEmbeddedObjectAstatic Object[]
getEmbeddedObjA
(CIMDataType pType, ValueArrayNode pValueArrayNode, SAXSession pSession) getEmbbeddedObjectAstatic Object
getObject
(CIMDataType pType, String pValueStr) getObjectstatic Object
getObject
(CIMDataType pType, ValueArrayNode pValueArrayNode) getObjectstatic Object
getObject
(CIMDataType pType, ValueNode pValueNode) getObjectstatic Object[]
getObjectArray
(CIMDataType pType, ArrayList<Object> pAL) static CIMDataType
getType
-
Constructor Details
-
CIMObjectFactory
public CIMObjectFactory()
-
-
Method Details
-
getEmbeddedObjA
public static Object[] getEmbeddedObjA(CIMDataType pType, ValueArrayNode pValueArrayNode, SAXSession pSession) throws SAXException getEmbbeddedObjectA- Parameters:
pType
-pValueArrayNode
-pSession
-- Returns:
- CIMInstance[], CIMClass[], String[] or null
- Throws:
SAXException
-
getEmbeddedObjA
public static Object[] getEmbeddedObjA(CIMDataType pType, String[] pValueStrA, SAXSession pSession) throws SAXException getEmbeddedObjectA- Parameters:
pType
-pValueStrA
-pSession
-- Returns:
- CIMInstance[], CIMClass[], String[] or null
- Throws:
SAXException
-
getEmbeddedObj
public static Object getEmbeddedObj(CIMDataType pType, String pValueStr, SAXSession pSession) throws SAXException getEmbeddedObject- Parameters:
pType
-pValueStr
-pSession
-- Returns:
- CIMInstance, CIMClass or null
- Throws:
SAXException
-
getEmbeddedObj
public static Object getEmbeddedObj(CIMDataType pType, Object pValObj, SAXSession pSession) throws SAXException getEmbeddedObj- Parameters:
pType
-pValObj
-pSession
-- Returns:
- Object CIMClass, CIMInstance, String, CIMClass[], CIMInstance[], String[] or null
- Throws:
SAXException
-
getObjectArray
- Parameters:
pType
-pAL
-- Returns:
- Object[]
-
getObject
getObject- Parameters:
pType
-pValueStr
-- Returns:
- Object
- Throws:
SAXException
-
getObject
getObject- Parameters:
pType
-pValueNode
-- Returns:
- Object
- Throws:
SAXException
-
getObject
public static Object getObject(CIMDataType pType, ValueArrayNode pValueArrayNode) throws SAXException getObject- Parameters:
pType
-pValueArrayNode
-- Returns:
- Object
- Throws:
SAXException
-
getCIMObjScalarType
public static CIMDataType getCIMObjScalarType(Object pObj, boolean pNullToString) throws SAXException getCIMObjType- Parameters:
pObj
-pNullToString
-- Returns:
- CIMDataType OBJECT_T, CLASS_T, STRING_T
- Throws:
SAXException
-
getCIMObjScalarType
getCIMObjType- Parameters:
pObj
-- Returns:
- CIMDataType OBJECT_T, OBJECT_ARRAY_T
- Throws:
SAXException
-
getCIMObjArrayType
getCIMObjArrayType- Parameters:
pObj
-- Returns:
- CIMDataType: OBJECT_ARRAY_T, CLASS_T array, STRING_ARRAY_T
- Throws:
SAXException
-
getCIMObjArrayType
public static CIMDataType getCIMObjArrayType(Object pObj, boolean pNullToString) throws SAXException getArrayCIMObjType- Parameters:
pObj
-pNullToString
-- Returns:
- CIMDataType: OBJECT_ARRAY_T, CLASS_T array, STRING_ARRAY_T or null
- Throws:
SAXException
-
getType
getType- Parameters:
pTypeStr
-- Returns:
- CIMDataType
- Throws:
SAXException
-