Enum ArtifactScopeEnum

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

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

  • Field Details

  • Method Details

    • values

      public static ArtifactScopeEnum[] values()
      Deprecated.
      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)
      Deprecated.
      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)
      Deprecated.
      Helper method to simplify null processing
      Parameters:
      scope - a scope or null
      Returns:
      the provided scope or DEFAULT_SCOPE
    • getScope

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

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