Enum Policy

java.lang.Object
java.lang.Enum<Policy>
net.aifusion.metamodel.Policy
All Implemented Interfaces:
Serializable, Comparable<Policy>, java.lang.constant.Constable

public enum Policy extends Enum<Policy>
Enumeration defining qualifier policies
Author:
Sharad Singhal
  • Enum Constant Details

    • ENABLEOVERRIDE

      public static final Policy ENABLEOVERRIDE
      The Qualifier can be overridden. Default policy is TRUE
    • DISABLEOVERRIDE

      public static final Policy DISABLEOVERRIDE
      The Qualifier cannot be overridden. Default policy is FALSE
    • RESTRICTED

      public static final Policy RESTRICTED
      The Qualifier applies only to the class in which it is declared. Default policy is FALSE
  • Method Details

    • values

      public static Policy[] 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

      public static Policy valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toMOF

      public final String 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