Class QualifiedElement

java.lang.Object
net.aifusion.metamodel.QualifiedElement
Direct Known Subclasses:
CimMethod, CimParameter, CimProperty, EnumerationValue, NamedElement

public abstract class QualifiedElement extends Object
CIM Elements that can have qualifiers and (optionally) superTypes
Author:
Sharad Singhal
  • Method Details

    • getQualifierValue

      public DataValue getQualifierValue(String qualifierName)
      Get the dataValue of a qualifier declared on this qualified element or the default defined in standard qualifiers.
      Parameters:
      qualifierName - - name of the qualifier to search
      Returns:
      - dataValue of the qualifier or the default in a standard qualifier. Null if qualifier does not exist or does not have a default value
      See Also:
    • getQualifiers

      public List<Qualifier> getQualifiers()
      Get the list of qualifiers declared on this qualified element
      Returns:
      - list of qualifiers. Empty list is returned if none are declared
    • hasQualifier

      public boolean hasQualifier(String qName)
      Check if this qualified element has a particular qualifier declared in it
      Parameters:
      qName - - name of the qualifier
      Returns:
      - true if the qualified element has a qualifier declared in it, false otherwise
    • equals

      public boolean equals(Object o)
    • 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