Enum ElementHandling

java.lang.Object
java.lang.Enum<ElementHandling>
org.codehaus.mojo.flatten.ElementHandling
All Implemented Interfaces:
Serializable, Comparable<ElementHandling>

public enum ElementHandling extends Enum<ElementHandling>
This enum contains each available handling for a POM element when flattening.
Since:
1.0.0-beta-4
Author:
Joerg Hohwiller (hohwille at users.sourceforge.net)
  • Enum Constant Details

    • 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 Details

    • values

      public static ElementHandling[] 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 ElementHandling 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