org.sblim.wbem.cim
Class CIMArgument

java.lang.Object
  extended by org.sblim.wbem.cim.CIMElement
      extended by org.sblim.wbem.cim.CIMQualifiableElement
          extended by org.sblim.wbem.cim.CIMArgument
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

public class CIMArgument
extends CIMQualifiableElement
implements java.lang.Cloneable

A class used to denote the arguments passed to extrinsic method invocations.

See Also:
Serialized Form

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
CIMArgument()
          Constructs an object representing a CIMArgument.
CIMArgument(java.lang.String pName)
          Construcs an object representing a CIMArgument with the specified name.
CIMArgument(java.lang.String pName, CIMDataType pDataType)
           
CIMArgument(java.lang.String pName, CIMValue pValue)
          Constructs an object representing a CIMArgument with the specified name and the specified CIMValue.
 
Method Summary
 java.lang.Object clone()
           
 java.lang.Object clone(boolean pIncludeQualifier)
          Creates a replica of this object.
 boolean equals(java.lang.Object o)
           
 CIMDataType getType()
          Gets the CIMDataType associated with this argument.
 CIMValue getValue()
          Gets the CIMValue associated with this CIMArgument.
 int hashCode()
           
 void setType(CIMDataType pType)
          Specifies the CIMDataType for this CIMArgument.
 void setValue(CIMValue pValue)
          Specifies the CIMValue for this CIMArgument.
 java.lang.String 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, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMArgument

public CIMArgument()
Constructs an object representing a CIMArgument.


CIMArgument

public CIMArgument(java.lang.String pName)
Construcs an object representing a CIMArgument with the specified name.

Parameters:
pName - the name for this CIMArgument

CIMArgument

public CIMArgument(java.lang.String pName,
                   CIMValue pValue)
Constructs an object representing a CIMArgument with the specified name and the specified CIMValue.

Parameters:
pName - the name for this CIMArgument
pValue - the value associated to this CIMArgument.

CIMArgument

public CIMArgument(java.lang.String pName,
                   CIMDataType pDataType)
Method Detail

clone

public java.lang.Object clone()
Overrides:
clone in class java.lang.Object

clone

public java.lang.Object clone(boolean pIncludeQualifier)
Creates a replica of this object. Simmiliar to clone() , but allows to create a replica without qualifiers.

Parameters:
pIncludeQualifier - determines of the resulting object must include qualifiers.
Returns:
a replica of this object.
See Also:
clone()

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class CIMElement

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

getValue

public CIMValue getValue()
Gets the CIMValue associated with this CIMArgument.

Returns:
the CIMValue for this argument.

getType

public CIMDataType getType()
Gets the CIMDataType associated with this argument.

Returns:
CIMDataType representing the type for this argument

setType

public void setType(CIMDataType pType)
Specifies the CIMDataType for this CIMArgument.

Parameters:
pType -

setValue

public void setValue(CIMValue pValue)
Specifies the CIMValue for this CIMArgument.

Parameters:
pValue -

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


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