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 Object
clone()
protected void
clone(Option opt)
String
getArgName()
String
getLocalizedArgName()
String
getLocalizedDescription()
boolean
isRequired()
void
setArgName(String argName)
void
setRequired(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:
isRequired
in classAbstractParameter
- Returns:
- true if this
Option
is 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:
getLocalizedArgName
in 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:
getLocalizedDescription
in classAbstractParameter
- Returns:
- the localized description
-
-