javax.cim
Class CIMArgument
java.lang.Object
javax.cim.CIMElement
javax.cim.CIMTypedElement
javax.cim.CIMValuedElement
javax.cim.CIMArgument
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable
public class CIMArgument
- extends CIMValuedElement
- implements java.io.Serializable
CIMArgument represents an instance of a
CIMParameter used for method invocation. A
CIMArgument has a name, data type and value. A
CIMArgument corresponds to a CIMParameter
defined for a CIMMethod.
- See Also:
- Serialized Form
|
Constructor Summary |
CIMArgument(java.lang.String pName,
CIMDataType pType,
java.lang.Object pValue)
Constructs a CIMArgument to be used for method
invocations. |
|
Method Summary |
boolean |
equals(java.lang.Object pObj)
Compares this object against the specified object. |
java.lang.String |
toString()
Returns a String representation of the
CIMElement. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
CIMArgument
public CIMArgument(java.lang.String pName,
CIMDataType pType,
java.lang.Object pValue)
throws java.lang.IllegalArgumentException
- Constructs a
CIMArgument to be used for method
invocations. A CIMArgument corresponds to a
CIMParameter. For each CIMParameter being
populated during a method invocation a CIMArgument object
must be created.
- Parameters:
pName - -
Name of the CIM argument.pType - -
CIMDataType of the argument.pValue - -
Value of the argument.
- Throws:
java.lang.IllegalArgumentException - -
If the value does not match the type.- See Also:
CIMParameter
equals
public boolean equals(java.lang.Object pObj)
- Compares this object against the specified object. The result is
true if and only if the argument is not null
and is a CIMValuedObject that represents the same name,
type and value as this object.
- Overrides:
equals in class CIMValuedElement
- Parameters:
pObj - -
The object to compare with.
- Returns:
true if the objects are the same;
false otherwise.- See Also:
Object.equals(java.lang.Object)
toString
public java.lang.String toString()
- Returns a
String representation of the
CIMElement. This method is intended to be used only for
debugging purposes, and the format of the returned string may vary
between implementations. The returned string may be empty but may not
be null.
- Overrides:
toString in class CIMValuedElement
- Returns:
String representation of this CIM element.- See Also:
Object.toString()
Copyright © 2005, 2009 IBM Corporation. All Rights Reserved.