org.sblim.wbem.cim

Class CIMArgument

Implemented Interfaces:
Cloneable, Comparable, Serializable

public class CIMArgument
extends CIMQualifiableElement
implements Cloneable

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

Field Summary

Fields inherited from class org.sblim.wbem.cim.CIMQualifiableElement

iQualifiers

Fields inherited from class org.sblim.wbem.cim.CIMElement

CLOSING_BRAKET, EMPTY, OPENING_BRAKET, iName

Constructor Summary

CIMArgument()
Constructs an object representing a CIMArgument.
CIMArgument(String pName)
Construcs an object representing a CIMArgument with the specified name.
CIMArgument(String pName, CIMDataType pDataType)
CIMArgument(String pName, CIMValue pValue)
Constructs an object representing a CIMArgument with the specified name and the specified CIMValue.

Method Summary

Object
clone()
Object
clone(boolean pIncludeQualifier)
Creates a replica of this object.
boolean
equals(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.
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, equals, getName, lessThan, setName, vectorToMOFString, vectorToMOFString, vectorToMOFString

Constructor Details

CIMArgument

public CIMArgument()
Constructs an object representing a CIMArgument.

CIMArgument

public CIMArgument(String pName)
Construcs an object representing a CIMArgument with the specified name.
Parameters:
pName - the name for this CIMArgument

CIMArgument

public CIMArgument(String pName,
                   CIMDataType pDataType)

CIMArgument

public CIMArgument(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.

Method Details

clone

public Object clone()

clone

public 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.

equals

public boolean equals(Object o)
Overrides:
equals in interface CIMElement

getType

public CIMDataType getType()
Gets the CIMDataType associated with this argument.
Returns:
CIMDataType representing the type for this argument

getValue

public CIMValue getValue()
Gets the CIMValue associated with this CIMArgument.
Returns:
the CIMValue for this argument.

hashCode

public int hashCode()

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 String toString()

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