Package net.aifusion.metamodel
Class QualifiedElement
java.lang.Object
net.aifusion.metamodel.QualifiedElement
- Direct Known Subclasses:
CimMethod
,CimParameter
,CimProperty
,EnumerationValue
,NamedElement
CIM Elements that can have qualifiers and (optionally) superTypes
- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionboolean
Get the CIM type of this elementGet the case-normalized (lower case) name for this elementgetName()
Get the name of this elementGet the list of qualifiers declared on this qualified elementgetQualifierValue
(String qualifierName) Get the dataValue of a qualifier declared on this qualified element or the default defined in standard qualifiers.int
hashCode()
boolean
hasQualifier
(String qName) Check if this qualified element has a particular qualifier declared in ittoMOF()
Return the MOF representation of this elementtoString()
-
Method Details
-
getQualifierValue
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
Get the list of qualifiers declared on this qualified element- Returns:
- - list of qualifiers. Empty list is returned if none are declared
-
hasQualifier
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
-
getName
Get the name of this element- Returns:
- - name of this element
- See Also:
-
getLowerCaseName
Get the case-normalized (lower case) name for this element- Returns:
- - name of this element normalized to lower case
- See Also:
-
getElementType
Get the CIM type of this element- Returns:
- - CIMType for this element
- See Also:
-
toMOF
Return the MOF representation of this element- Returns:
- - String containing MOF representation of this element
-
toString
-
hashCode
public int hashCode()
-