Package javax.cim
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:
java.io.Serializable,java.lang.Comparable<CIMElement>
public class CIMArgument<E> extends CIMValuedElement<E>
This class represents an instance of aCIMParameterused for a method invocation. ACIMArgumenthas a name, data type and value. ACIMArgumentcorresponds to aCIMParameterdefined for aCIMMethod.- See Also:
CIMParameter, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CIMArgument(java.lang.String pName, CIMDataType pType, E pValue)Constructs aCIMArgumentto be used for method invocations.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object pObj)Compares this object against the specified object.-
Methods inherited from class javax.cim.CIMValuedElement
getValue, hashCode, toString
-
Methods inherited from class javax.cim.CIMTypedElement
getDataType
-
Methods inherited from class javax.cim.CIMElement
compareTo, getName
-
-
-
-
Constructor Detail
-
CIMArgument
public CIMArgument(java.lang.String pName, CIMDataType pType, E pValue) throws java.lang.IllegalArgumentExceptionConstructs 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:
java.lang.IllegalArgumentException- If the value does not match the type.- See Also:
CIMParameter
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object pObj)
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.
-
-