Class ParameterDescription

java.lang.Object
com.beust.jcommander.ParameterDescription

public class ParameterDescription extends Object
  • Constructor Details

  • Method Details

    • getLongestName

      public String getLongestName()
    • getDefault

      public Object getDefault()
    • getDefaultValueDescription

      public Object getDefaultValueDescription()
      Returns:
      defaultValueDescription, if description is empty string, return default Object.
    • getDescription

      public String getDescription()
    • getObject

      public Object getObject()
    • getNames

      public String getNames()
    • getCategory

      public String getCategory()
    • getParameter

      public WrappedParameter getParameter()
    • getParameterized

      public Parameterized getParameterized()
    • addValue

      public void addValue(String value)
    • isAssigned

      public boolean isAssigned()
      Returns:
      true if this parameter received a value during the parsing phase.
    • setAssigned

      public void setAssigned(boolean b)
    • addValue

      public void addValue(String value, boolean isDefault)
      Add the specified value to the field. First, validate the value if a validator was specified. Then look up any field converter, then any type converter, and if we can't find any, throw an exception.
    • getParameterAnnotation

      public Parameter getParameterAnnotation()
    • validateValueParameter

      public void validateValueParameter(Class<? extends IValueValidator> validator, String name, Object value)
    • validateParameter

      public void validateParameter(Class<? extends IParameterValidator> validator, String name, String value)
    • toString

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

      public boolean isDynamicParameter()
    • isHelp

      public boolean isHelp()
    • isNonOverwritableForced

      public boolean isNonOverwritableForced()