org.apache.jackrabbit.standalone.cli
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].
Constructor Summary |
Flag()
|
Flag
public Flag()
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 class AbstractParameter
- Returns:
- the value
setValue
public void setValue(String value)
-
- Overrides:
setValue
in class AbstractParameter
- Parameters:
value
- The value to set
clone
public Object clone()
-
- Overrides:
clone
in class Object
isRequired
public boolean isRequired()
-
- Specified by:
isRequired
in class AbstractParameter
- Returns:
- true if this parameter is mandatory
getLocalizedArgName
public String getLocalizedArgName()
-
- Specified by:
getLocalizedArgName
in class AbstractParameter
- Returns:
- argumentlocalized name
getLocalizedDescription
public String getLocalizedDescription()
-
- Specified by:
getLocalizedDescription
in class AbstractParameter
- Returns:
- the localized description
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.