Package org.sblim.wbem.cim
Class CIMParameter
java.lang.Object
org.sblim.wbem.cim.CIMElement
org.sblim.wbem.cim.CIMQualifiableElement
org.sblim.wbem.cim.CIMParameter
- All Implemented Interfaces:
Serializable
,Cloneable
,Comparable
- See Also:
-
Field Summary
Fields inherited from class org.sblim.wbem.cim.CIMQualifiableElement
iQualifiers
Fields inherited from class org.sblim.wbem.cim.CIMElement
CLOSING_BRAKET, EMPTY, iName, OPENING_BRAKET
-
Constructor Summary
ConstructorsConstructorDescriptionCreates an object of CIMParameter.CIMParameter
(String pName) Creates an object of CIMParameter with the specified name. -
Method Summary
Modifier and TypeMethodDescriptionclone()
int
getSize()
Returns the size of this object.getType()
Returns the CIM data type of this objectint
hashCode()
void
setSize
(int size) Deprecated.Using this method can produce inconsitency and break invariantsvoid
setType
(CIMDataType pType) Specifies the CIMDataType for this object.toMOF()
Returns the MOF representation of this object.toString()
Methods inherited from class org.sblim.wbem.cim.CIMQualifiableElement
addQualifier, getQualifier, getQualifiers, removeQualifier, setQualifiers
Methods inherited from class org.sblim.wbem.cim.CIMElement
appendTab, assign, compareTo, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
-
Constructor Details
-
CIMParameter
public CIMParameter()Creates an object of CIMParameter. -
CIMParameter
Creates an object of CIMParameter with the specified name.- Parameters:
pName
- The parameter's name
-
-
Method Details
-
clone
-
hashCode
public int hashCode() -
getSize
public int getSize()Returns the size of this object. A value of CIMDataType.SIZE_SINGLE is returned for single elements, CIMDataType.SIZE_UNLIMITED is returned for variable length arrays, and zero or a positive number is returned for a fixed length array.- Returns:
- The size
-
getType
Returns the CIM data type of this object- Returns:
- The type
-
setSize
public void setSize(int size) Deprecated.Using this method can produce inconsitency and break invariantsSets the size of this object- Parameters:
size
- The size
-
setType
Specifies the CIMDataType for this object.- Parameters:
pType
- The type- Throws:
IllegalArgumentException
- if the specified argument is null.
-
toMOF
Returns the MOF representation of this object.- Returns:
- The MOF representation
-
toString
-