Package javax.cim

Class CIMArgument<E>

java.lang.Object
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 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

    Constructors
    Constructor
    Description
    CIMArgument(java.lang.String pName, CIMDataType pType, E pValue)
    Constructs a CIMArgument to be used for method invocations.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    equals(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

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, wait, wait, wait
  • Constructor Details

    • CIMArgument

      public CIMArgument(java.lang.String pName, CIMDataType pType, E 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:
  • Method Details

    • 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 CIMArgument that represents the same name, type and value as this CIMArgument.
      Overrides:
      equals in class CIMValuedElement<E>
      Parameters:
      pObj - The object to compare with.
      Returns:
      true if the objects are the same; false otherwise.