Package net.aifusion.metamodel
Enum Policy
- All Implemented Interfaces:
Serializable
,Comparable<Policy>
,java.lang.constant.Constable
Enumeration defining qualifier policies
- 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 cannot be overridden.The Qualifier can be overridden.The Qualifier applies only to the class in which it is declared. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
getValue()
Get the default dataValue of this policyfinal String
toMOF()
Get the mof name of this policystatic Policy
Returns the enum constant of this type with the specified name.static Policy[]
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
-
ENABLEOVERRIDE
The Qualifier can be overridden. Default policy is TRUE -
DISABLEOVERRIDE
The Qualifier cannot be overridden. Default policy is FALSE -
RESTRICTED
The Qualifier applies only to the class in which it is declared. Default policy is FALSE
-
-
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
-
toMOF
Get the mof name of this policy- Returns:
- - mixed case name for the policy
-
getValue
public final boolean getValue()Get the default dataValue of this policy- Returns:
- - true if the default dataValue of this policy is true, false otherwise
-