Enum Class DependencyRuleMode

java.lang.Object
java.lang.Enum<DependencyRuleMode>
dev.archunitjava.rules.DependencyRuleMode
All Implemented Interfaces:
Serializable, Comparable<DependencyRuleMode>, Constable

public enum DependencyRuleMode extends Enum<DependencyRuleMode>
Shared dependency assertion moods evaluated by one graph engine.
  • Enum Constant Details

    • NO

      public static final DependencyRuleMode NO
      No selected origin may have a matching dependency.
    • ONLY

      public static final DependencyRuleMode ONLY
      Every considered dependency from a selected origin must match.
    • ANY

      public static final DependencyRuleMode ANY
      The selected origin set must contain at least one matching dependency.
    • REQUIRED

      public static final DependencyRuleMode REQUIRED
      Every selected origin must contain at least one matching dependency.
  • Method Details

    • values

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