org.apache.jackrabbit.standalone.cli
Class Flag

java.lang.Object
  extended by org.apache.jackrabbit.standalone.cli.AbstractParameter
      extended by 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
Flag()
           
 
Method Summary
 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
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Flag

public Flag()
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 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.