Class CIMArgument

All Implemented Interfaces:
Serializable, Cloneable, Comparable

public class CIMArgument extends CIMQualifiableElement implements Cloneable
A class used to denote the arguments passed to extrinsic method invocations.
See Also:
  • 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, 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.
    • CIMArgument

      public CIMArgument(String pName, CIMDataType pDataType)
  • Method Details

    • clone

      public Object clone()
      Overrides:
      clone in class Object
    • 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.
      See Also:
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class CIMElement
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • getValue

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

      public CIMDataType getType()
      Gets the CIMDataType associated with this argument.
      Returns:
      CIMDataType representing the type for this argument
    • 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()
      Overrides:
      toString in class Object