Module org.xbib.rpm

Enum Class Directive

java.lang.Object
java.lang.Enum<Directive>
org.xbib.rpm.payload.Directive
All Implemented Interfaces:
Serializable, Comparable<Directive>, Constable

public enum Directive extends Enum<Directive>
Directive.
  • Enum Constant Details

    • NONE

      public static final Directive NONE
    • CONFIG

      public static final Directive CONFIG
    • DOC

      public static final Directive DOC
    • ICON

      public static final Directive ICON
    • MISSINGOK

      public static final Directive MISSINGOK
    • NOREPLACE

      public static final Directive NOREPLACE
    • SPECFILE

      public static final Directive SPECFILE
    • GHOST

      public static final Directive GHOST
    • LICENSE

      public static final Directive LICENSE
    • README

      public static final Directive README
    • EXCLUDE

      public static final Directive EXCLUDE
    • UNPATCHED

      public static final Directive UNPATCHED
    • PUBKEY

      public static final Directive PUBKEY
    • POLICY

      public static final Directive POLICY
  • Method Details

    • values

      public static Directive[] 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 Directive 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
    • flag

      public int flag()
    • newDirective

      public static EnumSet<Directive> newDirective(List<String> directiveList) throws InvalidDirectiveException
      Return a new directive set.
      Parameters:
      directiveList - directive list
      Returns:
      set of directives
      Throws:
      InvalidDirectiveException - if a directive is unknown