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 Summary

    Enum Constants
    Enum Constant
    Description
    Take the element from the effective POM.
    Take the element from the interpolated POM, but resolve the variables with the properties from the effective POM.
    Don't resolve the following variables "project.basedir", "project.baseUri", "project.build.directory", "project.build.outputDirectory", "project.build.sourceDirectory", "project.build.scriptSourceDirectory", "project.build.testSourceDirectory", "project.reporting.outputDirectory"
    Interpolate the parent version
    Flatten the element.
    Take the element from the interpolated POM (original POM with variables interpolated).
    Take the element untouched from the original POM.
    Remove the element entirely so it will not be present in flattened POM.
    Take the element from the resolved POM.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the enum constant of this type with the specified name.
    Returns an array containing the constants of this enum type, in the order they are declared.

    Methods inherited from class java.lang.Enum

    clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf

    Methods inherited from class java.lang.Object

    getClass, notify, notifyAll, wait, wait, wait
  • 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).
    • extended_interpolate

      public static final ElementHandling extended_interpolate
      Take the element from the interpolated POM, but resolve the variables with the properties from the effective POM.
      Don't resolve the following variables "project.basedir", "project.baseUri", "project.build.directory", "project.build.outputDirectory", "project.build.sourceDirectory", "project.build.scriptSourceDirectory", "project.build.testSourceDirectory", "project.reporting.outputDirectory"
      Interpolate the parent version
    • 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