Class CimParameter

java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.CimParameter

public class CimParameter extends QualifiedElement
Class to represent a CIM method parameter.
Author:
Sharad Singhal
  • Method Details

    • getFullName

      public String getFullName()
      Get the full name of the parameter. The full name of the parameter is originClassName '#' MethodName '$' parameterName
      Returns:
      the full name for the parameter
    • getRefClassName

      public String getRefClassName()
      Get the referenced class name for this parameter
      Returns:
      - referenced class name. Null if this parameter is not a reference parameter
    • getEnum

      public CimEnumeration getEnum()
      Get the enumeration associated with this parameter
      Returns:
      - referenced enumeration. Null if this parameter does not refer to an enumeration
    • getStruct

      public CimStructure getStruct()
      Get the structure associated with this parameter
      Returns:
      - referenced structure. Null if this parameter does not refer to a structure
    • getDataType

      public DataType getDataType()
      Get the data type associated with this parameter
      Returns:
      - data type for this parameter
    • hasDefaultValue

      public boolean hasDefaultValue()
      Check if this parameter has a default value defined in it
      Returns:
      - true if this parameter has a default value, false otherwise
    • getDefaultValue

      public DataValue getDefaultValue()
      Get the default value of this parameter
      Returns:
      - default value of this parameter. Null if no default value is defined
    • hasValue

      public boolean hasValue()
      Check if this parameter has a value defined in it
      Returns:
      - true if this parameter has a value, false otherwise
    • hasNonNullValue

      public boolean hasNonNullValue()
      Check if this parameter has a non-null value defined in it
      Returns:
      - true if the parameter has a value defined, and it contains a non-null value, false otherwise
    • getValue

      public DataValue getValue()
      Get the value of this parameter. If no value is defined, returns the default value of the parameter
      Returns:
      - value of the parameter
    • setValue

      public void setValue(DataValue value)
      Set the value of this parameter.
      Parameters:
      value - - value to be set in this parameter
      See Also:
    • isInput

      public boolean isInput()
      Check if this parameter is an input parameter
      Returns:
      - true if this parameter is an input parameter
    • isOutput

      public boolean isOutput()
      Check if this parameter is an output parameter
      Returns:
      - true if this parameter is an output parameter
    • isReference

      public boolean isReference()
      Check if this parameter is a reference parameter
      Returns:
      - true if this parameter is a reference parameter
    • isArray

      public boolean isArray()
      Check if this parameter is an array parameter
      Returns:
      - true if this parameter is an array value, false otherwise
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class QualifiedElement
    • getName

      public String getName()
      Get the name of this element
      Returns:
      - name of this element
      See Also:
    • getLowerCaseName

      public String getLowerCaseName()
      Get the case-normalized (lower case) name for this element
      Returns:
      - name of this element normalized to lower case
      See Also:
    • getElementType

      public ElementType getElementType()
      Get the CIM type of this element
      Returns:
      - CIMType for this element
      See Also:
    • toMOF

      public String toMOF()
      Return the MOF representation of this element
      Returns:
      - String containing MOF representation of this element
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object