Class CimInterface

All Implemented Interfaces:
CimEventGenerator

public class CimInterface extends CimClass
Class to represent a CIM Interface. Interfaces provide the ability to support multiple inheritance in class definitions. They cannot be directly instantiated.
Author:
Sharad Singhal
See Also:
  • Method Details

    • invokeMethod

      public DataValue invokeMethod(String methodName, List<CimParameter> cimParameters)
      Description copied from class: CimClass
      Invoke a method on this instance
      Overrides:
      invokeMethod in class CimClass
      Parameters:
      methodName - - name of the method to invoke
      cimParameters - - parameters required by the method
      Returns:
      - returned value from the method
    • setPropertyValue

      public void setPropertyValue(String propertyName, DataValue propertyValue)
      Description copied from class: CimStructure
      Set the value of a property in this structure
      Overrides:
      setPropertyValue in class CimStructure
      Parameters:
      propertyName - - name of the property
      propertyValue - - value to be set in the property
    • addListener

      public boolean addListener(CimEventType type, CimListener listener)
      Description copied from interface: CimEventGenerator
      Add a listener to this generator
      Specified by:
      addListener in interface CimEventGenerator
      Overrides:
      addListener in class NamedElement
      Parameters:
      type - - type of event the listener wants
      listener - - CimListener interested in events
      Returns:
      - true if listener was successfully added, false otherwise
    • removeListener

      public void removeListener(CimEventType type, CimListener listener)
      Description copied from interface: CimEventGenerator
      Remove a listener from this generator
      Specified by:
      removeListener in interface CimEventGenerator
      Overrides:
      removeListener in class NamedElement
      Parameters:
      type - of event the listener wants
      listener - - CimListener to be removed
    • 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