Enum AddDependencyMojo.PropertyPattern
- java.lang.Object
-
- java.lang.Enum<AddDependencyMojo.PropertyPattern>
-
- org.apache.maven.plugins.dependency.AddDependencyMojo.PropertyPattern
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Comparable<AddDependencyMojo.PropertyPattern>
- Enclosing class:
- AddDependencyMojo
static enum AddDependencyMojo.PropertyPattern extends java.lang.Enum<AddDependencyMojo.PropertyPattern>
Property naming conventions detected in existing POM files.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description CAMEL_VERSIONartifactIdVersion(camelCase, e.g.,guavaVersion)DASH_VERSIONartifactId-version(e.g.,guava-version)DOT_VERSIONartifactId.version(e.g.,guava.version)VERSION_PREFIXversion.artifactId(prefix, e.g.,version.guava)
-
Constructor Summary
Constructors Modifier Constructor Description privatePropertyPattern()
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description (package private) abstract booleanmatches(java.lang.String propName)(package private) abstract java.lang.StringtoPropertyName(java.lang.String artifactId)static AddDependencyMojo.PropertyPatternvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static AddDependencyMojo.PropertyPattern[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
DOT_VERSION
public static final AddDependencyMojo.PropertyPattern DOT_VERSION
artifactId.version(e.g.,guava.version)
-
DASH_VERSION
public static final AddDependencyMojo.PropertyPattern DASH_VERSION
artifactId-version(e.g.,guava-version)
-
CAMEL_VERSION
public static final AddDependencyMojo.PropertyPattern CAMEL_VERSION
artifactIdVersion(camelCase, e.g.,guavaVersion)
-
VERSION_PREFIX
public static final AddDependencyMojo.PropertyPattern VERSION_PREFIX
version.artifactId(prefix, e.g.,version.guava)
-
-
Method Detail
-
values
public static AddDependencyMojo.PropertyPattern[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (AddDependencyMojo.PropertyPattern c : AddDependencyMojo.PropertyPattern.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AddDependencyMojo.PropertyPattern valueOf(java.lang.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:
java.lang.IllegalArgumentException- if this enum type has no constant with the specified namejava.lang.NullPointerException- if the argument is null
-
toPropertyName
abstract java.lang.String toPropertyName(java.lang.String artifactId)
-
matches
abstract boolean matches(java.lang.String propName)
-
-