Enum ArtifactScopeEnum

java.lang.Object
java.lang.Enum<ArtifactScopeEnum>
org.apache.maven.artifact.ArtifactScopeEnum
All Implemented Interfaces:
Serializable, Comparable<ArtifactScopeEnum>

public enum ArtifactScopeEnum extends Enum<ArtifactScopeEnum>
Type safe reincarnation of Artifact scope. Also supplies the DEFAULT_SCOPE as well as convenience method to deal with scope relationships.
Author:
Oleg Gusakov
  • Enum Constant Details

  • Field Details

  • Method Details

    • values

      public static ArtifactScopeEnum[] 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 ArtifactScopeEnum 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
    • checkScope

      public static ArtifactScopeEnum checkScope(ArtifactScopeEnum scope)
      Helper method to simplify null processing
    • getScope

      public String getScope()
      Returns:
      unsafe String representation of this scope.
    • encloses

      public boolean encloses(ArtifactScopeEnum scope)
      scope relationship function. Used by the graph conflict resolution policies
      Parameters:
      scope -
      Returns:
      true is supplied scope is an inclusive sub-scope of current one.