Class Option
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.AbstractParameter
-
- org.apache.jackrabbit.standalone.cli.Option
-
- All Implemented Interfaces:
Cloneable
- Direct Known Subclasses:
Argument
public class Option extends AbstractParameter
Command Line option.
An option is a pair with the following pattern -[option name] [option value]
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.standalone.cli.AbstractParameter
bundle
-
-
Constructor Summary
Constructors Constructor Description Option()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()protected voidclone(Option opt)StringgetArgName()StringgetLocalizedArgName()StringgetLocalizedDescription()booleanisRequired()voidsetArgName(String argName)voidsetRequired(boolean required)-
Methods inherited from class org.apache.jackrabbit.standalone.cli.AbstractParameter
clone, getContextKey, getDescription, getLongName, getName, getValue, setContextKey, setDescription, setLongName, setName, setValue
-
-
-
-
Method Detail
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin classAbstractParameter- Returns:
- true if this
Optionis required
-
setRequired
public void setRequired(boolean required)
- Parameters:
required- set required
-
getArgName
public String getArgName()
- Returns:
- the argument name
-
getLocalizedArgName
public String getLocalizedArgName()
- Specified by:
getLocalizedArgNamein classAbstractParameter- Returns:
- the localized argument name
-
setArgName
public void setArgName(String argName)
- Parameters:
argName- the argument name to set
-
clone
protected void clone(Option opt)
-
getLocalizedDescription
public String getLocalizedDescription()
- Specified by:
getLocalizedDescriptionin classAbstractParameter- Returns:
- the localized description
-
-