Enum Class ScaffoldScope
- All Implemented Interfaces:
Serializable, Comparable<ScaffoldScope>, Constable
Scope a scaffold manifest entry targets.
A scaffold invocation dispatches entries based on scope:
PROJECTentries are processed whenscaffoldruns inside a Maven project (i.e.{project.root}/.ike/scaffold.lockis the applicable lockfile).USERentries are processed in every scaffold run, whether invoked inside a project or standalone (fresh-machine bootstrap), and track state in{user.home}/.ike/scaffold.lock.
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic ScaffoldScopefromManifestValue(String value) Parse a scope from its manifest spelling.The kebab-case spelling used in manifest files.static ScaffoldScopeReturns the enum constant of this class with the specified name.static ScaffoldScope[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
PROJECT
Target lives under the current project root. Examples:mvnw,.mvn/maven.config,.gitignore. -
USER
Target lives under the user's home directory. Examples:~/.m2/settings.xml,~/.git-hooks/post-checkout.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-
manifestValue
The kebab-case spelling used in manifest files.- Returns:
- the manifest spelling of this scope
-
fromManifestValue
Parse a scope from its manifest spelling.- Parameters:
value- the manifest spelling (case-insensitive)- Returns:
- the matching scope
- Throws:
IllegalArgumentException- if no scope has this spelling
-