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 CIMDataTypegetCIMObjArrayType(Object pObj) getCIMObjArrayTypestatic CIMDataTypegetCIMObjArrayType(Object pObj, boolean pNullToString) getArrayCIMObjTypestatic CIMDataTypegetCIMObjScalarType(Object pObj) getCIMObjTypestatic CIMDataTypegetCIMObjScalarType(Object pObj, boolean pNullToString) getCIMObjTypestatic ObjectgetEmbeddedObj(CIMDataType pType, Object pValObj, SAXSession pSession) getEmbeddedObjstatic ObjectgetEmbeddedObj(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 ObjectgetObject(CIMDataType pType, String pValueStr) getObjectstatic ObjectgetObject(CIMDataType pType, ValueArrayNode pValueArrayNode) getObjectstatic ObjectgetObject(CIMDataType pType, ValueNode pValueNode) getObjectstatic Object[]getObjectArray(CIMDataType pType, ArrayList<Object> pAL) static CIMDataTypegetType
-
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
-