Class CimMethod


public class CimMethod extends QualifiedElement
Class to represent a CIM Method. CIM Methods are created as part of CIM Class definitions by the MOFParser.
Author:
Sharad Singhal
  • Method Details

    • getRefClassName

      public String getRefClassName()
      Get the referenced class name for this method
      Returns:
      - referenced class name. Null if this method does not return an objectPath
    • getEnum

      public CimEnumeration getEnum()
      Get the enumeration associated with this method
      Returns:
      - referenced enumeration. Null if this method does not return an enumeration value
    • getStruct

      public CimStructure getStruct()
      Get the structure associated with this method
      Returns:
      - referenced structure. Null if this method does not return a structure value
    • getReturnedType

      public DataType getReturnedType()
      Get the return type associated with this method
      Returns:
      - data type returned by this method
    • getOriginClass

      public String getOriginClass()
      Get the name of the class where this method is declared
      Returns:
      - fully qualified name of the declaring class or structure
    • getParameters

      public List<CimParameter> getParameters()
      Get the list of parameters defined in this method
      Returns:
      a shallow copy of the parameter list
    • invoke

      public DataValue invoke(List<CimParameter> cimParameters)
      Invoke this method with the given parameters.
      Parameters:
      cimParameters - - parameters to invoke this method
      Returns:
      - value returned by this method
    • isStatic

      public boolean isStatic()
      Check if this method is a static method
      Returns:
      - true if the method is static, false otherwise
    • getFullName

      public String getFullName()
      Get the full name for this method. The full name for the method is the originClass '#' featureName
      Returns:
      full name for the method
    • 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