Class AntOption

java.lang.Object
org.apache.rat.ui.UIOption<AntOption>
org.apache.rat.documentation.options.AntOption

public final class AntOption extends UIOption<AntOption>
A class that wraps the CLI option and provides Ant specific values.
  • Method Details

    • isAttribute

      public boolean isAttribute()
      Returns true if the option should be an attribute of the <rat:report> element.
      Returns:
      true if the option should be an attribute of the <rat:report> element.
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • isElement

      public boolean isElement()
      Returns true if the option should be a child element of the <rat:report> element.
      Returns:
      true if the option should be a child element of the <rat:report> element.
    • getActualAntOption

      public AntOption getActualAntOption()
      If this option is converted to another option return that option otherwise return this option.
      Returns:
      the converted option.
    • convertedFrom

      public Set<AntOption> convertedFrom()
      Gets the set of options that are mapped to this option. This is used to allow one implementation to answer for multiple options.
      Returns:
      the set of options that are mapped to this option.
    • getText

      public String getText()
      Specified by:
      getText in class UIOption<AntOption>
    • cleanupName

      protected String cleanupName(org.apache.commons.cli.Option option)
      Specified by:
      cleanupName in class UIOption<AntOption>
    • cleanupName

      public String cleanupName()
      Cleans up the name of this AntOption. Used in documentation. Returns either <name> or name attribute.
      Returns:
      the cleaned up name.
    • buildType

      public AntOptionCollection.BuildType buildType()
      Gets the Ant build type for this option.
      Returns:
      the Ant build type for this option.
    • getExample

      public String getExample()
      Specified by:
      getExample in class UIOption<AntOption>