Enum 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.
      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
      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.
      • 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 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).
      • 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.
    • Constructor Detail

      • ElementHandling

        private ElementHandling()
    • 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 name
        java.lang.NullPointerException - if the argument is null