Methods Summary |
---|
public java.lang.String | getDefaultValue()Returns the default value of the option
return defaultValue;
|
public java.lang.String | getDeprecatedOption()Returns the deprecated option
return deprecatedOption;
|
public java.lang.String | getName()Gets the name of the option
return name;
|
public java.util.Vector | getShortNames()Returns the short name of the option
return shortNames;
|
public java.lang.String | getType()Returns the type of the option value
return type;
|
public boolean | hasDefaultValue()Checks to see if there is a default value for this option
return (defaultValue != null);
|
public boolean | hasDeprecatedOption()Checks to see if there is a default value for this option
return (deprecatedOption != null);
|
public boolean | hasShortName()Checks to see if there is a short option name for this option
if (shortNames.size() > 0)
{
return true;
}
return false;
|
public int | isValueRequired()Checks to see if the value is required
return required;
|
public void | setDefaultValue(java.lang.String defaultValue)Sets the default value of the option
this.defaultValue = defaultValue;
|
public void | setDeprecatedOption(java.lang.String deprecatedOption)Sets the deprecated option
this.deprecatedOption = deprecatedOption;
|
public void | setName(java.lang.String name)Sets the name of the option
this.name = name;
|
public void | setRequired(int isValueRequired)Sets the required field of the option
required = isValueRequired;
|
public void | setShortName(java.lang.String shortName)Sets the short option name
this.shortNames.add(shortName);
|
public void | setShortNames(java.util.Vector shortNames)Sets the short option names
this.shortNames.addAll(shortNames);
|
public void | setType(java.lang.String type)Sets the type of the option value
this.type = type;
|
public java.lang.String | toString()converts the object to string
returns toString() of this object
String shortNamesStr = "";
for (int i = 0; i < shortNames.size(); i++)
{
shortNamesStr += shortNames.get(i) + ",";
}
return (name + " " + type + " " + shortNamesStr + " " + defaultValue);
|