Package net.aifusion.metamodel
Enum Scope
- All Implemented Interfaces:
Serializable
,Comparable<Scope>
,java.lang.constant.Constable
Scope of CIM Qualifiers. The scope defines cim elements that can be annotated with a given qualifier
- Author:
- Sharad Singhal
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe qualifier can be applied to any meta elementThe qualifier can be applied to associations (needed for CimV.2 parser)The qualifier can be applied to a classThe qualifier applies to an enumerationThe qualifier applies to an enumeration dataValueThe qualifier can be applied to an indication (needed for CimV.2 parser)The qualifier can be applied to an instanceThe qualifier can be applied to an interfaceThe qualifier can be applied to a methodThe qualifier can be applied to a method parameterThe qualifier can be applied to a propertyThe qualifier can be applied to a qualifier typeThe qualifier can be applied to a reference propertyThe qualifier can be applied to the SchemaThe qualifier can be applied to a structureThe qualifier can be applied to a structure value -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
appliesTo
(ElementType elementType) Check if this scope applies to a given element typefinal String
toMOF()
Mof definition of scopestatic Scope
Returns the enum constant of this type with the specified name.static Scope[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
STRUCTURE
The qualifier can be applied to a structure -
STRUCTUREVALUE
The qualifier can be applied to a structure value -
ENUMERATION
The qualifier applies to an enumeration -
ENUMERATIONVALUE
The qualifier applies to an enumeration dataValue -
INTERFACE
The qualifier can be applied to an interface -
CLASS
The qualifier can be applied to a class -
INSTANCE
The qualifier can be applied to an instance -
QUALIFIERTYPE
The qualifier can be applied to a qualifier type -
PARAMETER
The qualifier can be applied to a method parameter -
METHOD
The qualifier can be applied to a method -
PROPERTY
The qualifier can be applied to a property -
REFERENCE
The qualifier can be applied to a reference property -
SCHEMA
The qualifier can be applied to the Schema -
ASSOCIATION
The qualifier can be applied to associations (needed for CimV.2 parser) -
INDICATION
The qualifier can be applied to an indication (needed for CimV.2 parser) -
ANY
The qualifier can be applied to any meta element
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
appliesTo
Check if this scope applies to a given element type- Parameters:
elementType
- - type of element to be checked- Returns:
- - true if this scope matches the given element type, false otherwise
-
toMOF
Mof definition of scope- Returns:
- - mixed case dataValue of scope
-