javax.wbem.cim
Class CIMArgument

java.lang.Object
  |
  +--javax.wbem.cim.CIMElement
        |
        +--javax.wbem.cim.CIMArgument
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class CIMArgument
extends CIMElement
implements java.lang.Cloneable

This class represents parameters that are passed into an extrinsic method when it is invoked. The argument has a name, value and may have qualifiers.

Since:
WBEM 1.0
See Also:
Serialized Form

Constructor Summary
CIMArgument()
          Instantiates a CIM argument
CIMArgument(java.lang.String name)
          Creates a CIMArgument of the appropriate name.
CIMArgument(java.lang.String name, CIMValue pValue)
          Creates a CIMArgument of the appropriate name and value.
 
Method Summary
 java.lang.Object clone()
          Clones this CIM argument.
 java.lang.Object clone(boolean includeQualifier)
          Clones this CIM argument.
 CIMQualifier getQualifier(java.lang.String name)
          Returns the appropriate qualifier for this argument.
 CIMQualifier[] getQualifiers()
          Returns the list of qualifiers for this argument.
 CIMDataType getType()
          Returns the data type of this argument
 CIMValue getValue()
          Gets the value for this argument
 void setQualifiers(CIMQualifier[] pqualifiers)
          Sets the list of qualifiers for this argument to the specified list of qualifiers
 void setType(CIMDataType type)
          Sets the data type of this argument to the specified CIM data type
 void setValue(CIMValue pValue)
          Sets the value for this argument.
 
Methods inherited from class javax.wbem.cim.CIMElement
assign, equals, getName, lessThan, setName, toString
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CIMArgument

public CIMArgument()
Instantiates a CIM argument

CIMArgument

public CIMArgument(java.lang.String name)
Creates a CIMArgument of the appropriate name. When used with method invocations, the argument names corresponds to the parameters defined for the method being invoked.
Parameters:
name - name of the CIM argument

CIMArgument

public CIMArgument(java.lang.String name,
                   CIMValue pValue)
Creates a CIMArgument of the appropriate name and value. When used with method invocations, the argument names corresponds to the parameters defined for the method being invoked.
Parameters:
name - name of the CIM argument
pValue - The value for this argument. If the value and its type is non-null, this argument's type is updated with the value's type.
Method Detail

setQualifiers

public void setQualifiers(CIMQualifier[] pqualifiers)
Sets the list of qualifiers for this argument to the specified list of qualifiers
Parameters:
pqualifiers - list of qualifiers to be assigned to the argument

getQualifiers

public CIMQualifier[] getQualifiers()
Returns the list of qualifiers for this argument.
Returns:
Vector list of qualifiers for this argument

setType

public void setType(CIMDataType type)
Sets the data type of this argument to the specified CIM data type
Parameters:
type - The CIM data type assigned to the argument

getType

public CIMDataType getType()
Returns the data type of this argument
Returns:
CIMDataType The CIM data type of this argument. If the type has not explicitly been set, then it is extracted from the value.

setValue

public void setValue(CIMValue pValue)
Sets the value for this argument.
Parameters:
pValue - The value for this argument.

getValue

public CIMValue getValue()
Gets the value for this argument
Returns:
The CIM value for this argument.

clone

public java.lang.Object clone()
Clones this CIM argument. The included qualifiers are themselves cloned.
Returns:
An object that is a clone of this CIM argument.

clone

public java.lang.Object clone(boolean includeQualifier)
Clones this CIM argument. The included qualifiers are themselves cloned.
Parameters:
includeQualifier - Specifies if the cloned object should contain cloned qualifiers or not.
Returns:
A clone of this CIM argument with or without qualifiers

getQualifier

public CIMQualifier getQualifier(java.lang.String name)
Returns the appropriate qualifier for this argument.
Parameters:
name - The name of the qualifier to get.
Returns:
CIMQualifier The reference to the qualifier Null if the qualifier does not exist