org.sblim.cimclient.internal.cimxml.sax
Class CIMObjectFactory

java.lang.Object
  extended by 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
CIMObjectFactory()
           
 
Method Summary
static CIMDataType getCIMObjArrayType(java.lang.Object pObj)
          getCIMObjArrayType
static CIMDataType getCIMObjArrayType(java.lang.Object pObj, boolean pNullToString)
          getArrayCIMObjType
static CIMDataType getCIMObjScalarType(java.lang.Object pObj)
          getCIMObjType
static CIMDataType getCIMObjScalarType(java.lang.Object pObj, boolean pNullToString)
          getCIMObjType
static java.lang.Object getEmbeddedObj(CIMDataType pType, java.lang.Object pValObj, SAXSession pSession)
          getEmbeddedObj
static java.lang.Object getEmbeddedObj(CIMDataType pType, java.lang.String pValueStr, SAXSession pSession)
          getEmbeddedObject
static java.lang.Object[] getEmbeddedObjA(CIMDataType pType, java.lang.String[] pValueStrA, SAXSession pSession)
          getEmbeddedObjectA
static java.lang.Object[] getEmbeddedObjA(CIMDataType pType, ValueArrayNode pValueArrayNode, SAXSession pSession)
          getEmbbeddedObjectA
static java.lang.Object getObject(CIMDataType pType, java.lang.String pValueStr)
          getObject
static java.lang.Object getObject(CIMDataType pType, ValueArrayNode pValueArrayNode)
          getObject
static java.lang.Object getObject(CIMDataType pType, ValueNode pValueNode)
          getObject
static java.lang.Object[] getObjectArray(CIMDataType pType, java.util.ArrayList<java.lang.Object> pAL)
           
static CIMDataType getType(java.lang.String pTypeStr)
          getType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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)
getType

Parameters:
pTypeStr -
Returns:
CIMDataType


Copyright © 2005, 2011 IBM Corporation. All Rights Reserved.