Class CIMArgument<E>
java.lang.Object
javax.cim.CIMElement
javax.cim.CIMTypedElement
javax.cim.CIMValuedElement<E>
javax.cim.CIMArgument<E>
- Type Parameters:
E- Type parameter.
- All Implemented Interfaces:
Serializable, Comparable<CIMElement>
This class represents an instance of a
CIMParameter used for a
method invocation. A CIMArgument has a name, data type and
value. A CIMArgument corresponds to a CIMParameter
defined for a CIMMethod.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCIMArgument(String pName, CIMDataType pType, E pValue) Constructs aCIMArgumentto be used for method invocations. -
Method Summary
Methods inherited from class CIMValuedElement
getValue, hashCode, toStringMethods inherited from class CIMTypedElement
getDataTypeMethods inherited from class CIMElement
compareTo, getName
-
Constructor Details
-
CIMArgument
Constructs aCIMArgumentto be used for method invocations. ACIMArgumentcorresponds to aCIMParameter. For eachCIMParameterbeing populated during a method invocation aCIMArgumentobject must be created.- Parameters:
pName- Name of the CIM argument.pType-CIMDataTypeof the argument.pValue- Value of the argument.- Throws:
IllegalArgumentException- If the value does not match the type.- See Also:
-
-
Method Details
-
equals
Compares this object against the specified object. The result istrueif and only if the argument is notnulland is aCIMArgumentthat represents the same name, type and value as thisCIMArgument.- Overrides:
equalsin classCIMValuedElement<E>- Parameters:
pObj- The object to compare with.- Returns:
trueif the objects are the same;falseotherwise.
-