Enum RuleState

  • All Implemented Interfaces:
    Serializable, Comparable<RuleState>

    public enum RuleState
    extends Enum<RuleState>
    The state of a particular right as determined by a security rule.
    Since:
    4.0M2
    Version:
    $Id: 58b2bc8c8bbf6fd39d7f002fd8f3eb39a534d20e $
    • Enum Constant Detail

      • UNDETERMINED

        public static final RuleState UNDETERMINED
        Right state undetermined.
      • DENY

        public static final RuleState DENY
        Right is denied.
      • ALLOW

        public static final RuleState ALLOW
        Right is allowed.
    • Method Detail

      • values

        public static RuleState[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (RuleState c : RuleState.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static RuleState 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
      • getValue

        public int getValue()
        Returns:
        state of a rule.