Object
Enum<AcessControl>
AcessControl
All Implemented Interfaces:
Serializable, Comparable<AcessControl>, Constable

public enum AcessControl extends Enum<AcessControl>
Enumeracao de tipos de valores possiveis para o controle de acesso
Author:
Eduardo Frazao
  • Enum Constant Details

  • Method Details

    • values

      public static AcessControl[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static AcessControl valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified name
      NullPointerException - if the argument is null
    • getFlag

      public char getFlag()
    • getFlagAsString

      public String getFlagAsString()
    • byFlag

      public static AcessControl byFlag(char flag)
    • byFlagString

      public static AcessControl byFlagString(String flag)
    • canRead

      public static boolean canRead(String flag)
    • canWrite

      public static boolean canWrite(String flag)
    • canExecute

      public static boolean canExecute(String flag)
    • isValid

      public static boolean isValid(String flags)