Class MavenOption

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

public final class MavenOption extends UIOption<MavenOption>
A representation of a Maven option based on an option.
  • Method Details

    • toString

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

      public String getMethodName()
      Gets the method name for this option.
      Returns:
      the method name for this option.
    • cleanupName

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

      public String getText()
      Specified by:
      getText in class UIOption<MavenOption>
    • getExample

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

      public String getExample(String... args)
      Create example text for the option.
      Parameters:
      args - the example arguments for the option.
      Returns:
      a formatted option.
    • getMethodSignature

      public String getMethodSignature(String indent, boolean multiple)
      Gets the Maven Mojo method signature for this Option.
      Parameters:
      indent - the number of spaces to indent the text.
      multiple - true if this option takes multiple arguments.
      Returns:
      the method signature for this Option.
    • getParameterAnnotation

      public String getParameterAnnotation(String camelName)
      Creates the @Parameter annotation for this option.
      Parameters:
      camelName - the camel cased name for this option.
      Returns:
      the string that is the parameter annotation.