Class Flag
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.AbstractParameter
-
- org.apache.jackrabbit.standalone.cli.Flag
-
- All Implemented Interfaces:
Cloneable
public class Flag extends AbstractParameter
A command line flag
A flag is a parameter that has no other value that the option name. e.g. -[flag name].
-
-
Field Summary
-
Fields inherited from class org.apache.jackrabbit.standalone.cli.AbstractParameter
bundle
-
-
Constructor Summary
Constructors Constructor Description Flag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Objectclone()StringgetLocalizedArgName()StringgetLocalizedDescription()StringgetValue()booleanisPresent()booleanisRequired()voidsetPresent(boolean present)voidsetValue(String value)-
Methods inherited from class org.apache.jackrabbit.standalone.cli.AbstractParameter
clone, getContextKey, getDescription, getLongName, getName, setContextKey, setDescription, setLongName, setName
-
-
-
-
Method Detail
-
isPresent
public boolean isPresent()
- Returns:
- true if the flag exists in the user's input
-
setPresent
public void setPresent(boolean present)
- Parameters:
present- the present to set
-
getValue
public String getValue()
- Overrides:
getValuein classAbstractParameter- Returns:
- the value
-
setValue
public void setValue(String value)
- Overrides:
setValuein classAbstractParameter- Parameters:
value- The value to set
-
isRequired
public boolean isRequired()
- Specified by:
isRequiredin classAbstractParameter- Returns:
- true if this parameter is mandatory
-
getLocalizedArgName
public String getLocalizedArgName()
- Specified by:
getLocalizedArgNamein classAbstractParameter- Returns:
- argumentlocalized name
-
getLocalizedDescription
public String getLocalizedDescription()
- Specified by:
getLocalizedDescriptionin classAbstractParameter- Returns:
- the localized description
-
-