Package org.codehaus.mojo.flatten
Enum ElementHandling
- java.lang.Object
-
- java.lang.Enum<ElementHandling>
-
- org.codehaus.mojo.flatten.ElementHandling
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ElementHandling>
public enum ElementHandling extends java.lang.Enum<ElementHandling>
This enum contains each available handling for a POM element when flattening.- Since:
- 1.0.0-beta-4
-
-
Enum Constant Summary
Enum Constants Enum Constant Description expand
Take the element from the effective POM.flatten
Flatten the element.interpolate
Take the element from the interpolated POM (original POM with variables interpolated).keep
Take the element untouched from the original POM.remove
Remove the element entirely so it will not be present in flattened POM.resolve
Take the element from the resolved POM.
-
Constructor Summary
Constructors Modifier Constructor Description private
ElementHandling()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ElementHandling
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ElementHandling[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
flatten
public static final ElementHandling flatten
Flatten the element. For most elements this means that they will be removed and are not present in the flattened POM.
-
expand
public static final ElementHandling expand
Take the element from the effective POM.
-
resolve
public static final ElementHandling resolve
Take the element from the resolved POM.
-
interpolate
public static final ElementHandling interpolate
Take the element from the interpolated POM (original POM with variables interpolated).
-
keep
public static final ElementHandling keep
Take the element untouched from the original POM.
-
remove
public static final ElementHandling remove
Remove the element entirely so it will not be present in flattened POM.
-
-
Method Detail
-
values
public static ElementHandling[] 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 (ElementHandling c : ElementHandling.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ElementHandling 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
-
-