org.apache.jackrabbit.standalone.cli
Class Option

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

Constructor Detail

Option

public Option()
Method Detail

isRequired

public boolean isRequired()
Specified by:
isRequired in class AbstractParameter
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 class AbstractParameter
Returns:
the localized argument name

setArgName

public void setArgName(String argName)
Parameters:
argName - the argument name to set

clone

public Object clone()

Overrides:
clone in class Object

clone

protected void clone(Option opt)


getLocalizedDescription

public String getLocalizedDescription()

Specified by:
getLocalizedDescription in class AbstractParameter
Returns:
the localized description


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.