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 Object
clone()
String
getLocalizedArgName()
String
getLocalizedDescription()
String
getValue()
boolean
isPresent()
boolean
isRequired()
void
setPresent(boolean present)
void
setValue(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:
getValue
in classAbstractParameter
- Returns:
- the value
-
setValue
public void setValue(String value)
- Overrides:
setValue
in classAbstractParameter
- Parameters:
value
- The value to set
-
isRequired
public boolean isRequired()
- Specified by:
isRequired
in classAbstractParameter
- Returns:
- true if this parameter is mandatory
-
getLocalizedArgName
public String getLocalizedArgName()
- Specified by:
getLocalizedArgName
in classAbstractParameter
- Returns:
- argumentlocalized name
-
getLocalizedDescription
public String getLocalizedDescription()
- Specified by:
getLocalizedDescription
in classAbstractParameter
- Returns:
- the localized description
-
-