Class ParameterDescription

  • public class ParameterDescription
    extends java.lang.Object
    • Constructor Detail

      • ParameterDescription

        public ParameterDescription​(java.lang.Object object,
                                    Parameter annotation,
                                    Parameterized parameterized,
                                    java.util.ResourceBundle bundle,
                                    JCommander jc)
    • Method Detail

      • getLongestName

        public java.lang.String getLongestName()
      • getDefault

        public java.lang.Object getDefault()
      • getDefaultValueDescription

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

        public java.lang.String getDescription()
      • getObject

        public java.lang.Object getObject()
      • getNames

        public java.lang.String getNames()
      • getCategory

        public java.lang.String getCategory()
      • addValue

        public void addValue​(java.lang.String value)
      • isAssigned

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

        public void setAssigned​(boolean b)
      • addValue

        public void addValue​(java.lang.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​(java.lang.Class<? extends IValueValidator> validator,
                                           java.lang.String name,
                                           java.lang.Object value)
      • validateParameter

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

        public java.lang.String toString()
        toString in class java.lang.Object
      • isDynamicParameter

        public boolean isDynamicParameter()
      • isHelp

        public boolean isHelp()
      • isNonOverwritableForced

        public boolean isNonOverwritableForced()