Package net.aifusion.metamodel
Class QualifierType
java.lang.Object
net.aifusion.metamodel.QualifiedElement
net.aifusion.metamodel.NamedElement
net.aifusion.metamodel.QualifierType
- All Implemented Interfaces:
CimEventGenerator
Element to represent a Qualifier Type
- Author:
- Sharad Singhal
-
Method Summary
Modifier and TypeMethodDescriptionboolean
appliesTo
(ElementType elementType) Check if this qualifierType applies to a given elementTypeboolean
Check if this qualifierType is the same as some other qualifier type.Get the data type associated with this qualifier typeReturn the default dataValue associated with this qualifier typeGet the CIM type of this elementGet the case-normalized (lower case) name for this elementgetName()
Get the name of this elementboolean
Check if this qualifier type has a default dataValueint
hashCode()
boolean
Check if this qualifier type applies to a particular element typeboolean
Check if this qualifier type can be overridden in subclassesboolean
Check if this qualifier type has restricted propagation policytoMOF()
Return the MOF representation of this elementtoString()
Methods inherited from class net.aifusion.metamodel.NamedElement
addListener, getAllQualifiers, getFullName, getNameSpacePath, getObjectPath, getQualifierValue, getSuperType, hasListener, hasQualifier, isAbstract, isSubTypeOf, removeListener
Methods inherited from class net.aifusion.metamodel.QualifiedElement
getQualifiers
-
Method Details
-
getDataType
Get the data type associated with this qualifier type- Returns:
- - data type associated with this qualifier type
-
hasDefaultValue
public boolean hasDefaultValue()Check if this qualifier type has a default dataValue- Returns:
- - true if this qualifier type has a default dataValue, false otherwise
-
getDefaultValue
Return the default dataValue associated with this qualifier type- Returns:
- - default dataValue for this qualifier type. Null is returned if no default dataValue is specified. If a null dataValue is specified as the default, A non-null data dataValue with a null in it is returned
-
hasScope
Check if this qualifier type applies to a particular element type- Parameters:
scope
- - scope to check- Returns:
- - true if the qualifier type applies to the scope, false otherwise
-
appliesTo
Check if this qualifierType applies to a given elementType- Parameters:
elementType
- - element type to be checked- Returns:
- - true if this qualifier type applies to the given element type, false otherwise
-
isRestricted
public boolean isRestricted()Check if this qualifier type has restricted propagation policy- Returns:
- - true if qualifier type is restricted, false otherwise
- See Also:
-
isOverridable
public boolean isOverridable()Check if this qualifier type can be overridden in subclasses- Returns:
- - true if the qualifier type can be overridden, false otherwise.
Note that the returned dataValue is meaningful only if the qualifier type is not restricted,
i.e.
isRestricted()
returns false. - See Also:
-
equals
Check if this qualifierType is the same as some other qualifier type. A qualifier type is considered the same as some other qualifier type, if it has the same name, scope(s), default flavors, data type and default dataValue- Overrides:
equals
in classNamedElement
- Parameters:
o
- - other qualifier type- Returns:
- - true if this qualifier type is the same as the other qualifier type, false otherwise
-
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()
-