Class CIMArgument

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.lang.Comparable

    public class CIMArgument
    extends CIMQualifiableElement
    implements java.lang.Cloneable
    A class used to denote the arguments passed to extrinsic method invocations.
    See Also:
    Serialized Form
    • Constructor Detail

      • CIMArgument

        public CIMArgument()
        Constructs an object representing a CIMArgument.
      • CIMArgument

        public CIMArgument​(java.lang.String pName)
        Construcs an object representing a CIMArgument with the specified name.
        Parameters:
        pName - the name for this CIMArgument
      • CIMArgument

        public CIMArgument​(java.lang.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​(java.lang.String pName,
                           CIMDataType pDataType)
    • Method Detail

      • clone

        public java.lang.Object clone()
        Overrides:
        clone in class java.lang.Object
      • clone

        public java.lang.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:
        clone()
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class CIMElement
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.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 java.lang.String toString()
        Overrides:
        toString in class java.lang.Object