Class CommandLine
- java.lang.Object
-
- org.apache.jackrabbit.standalone.cli.CommandLine
-
- All Implemented Interfaces:
Cloneable,Comparable
public class CommandLine extends Object implements Comparable, Cloneable
Command Line
-
-
Field Summary
Fields Modifier and Type Field Description protected static ResourceBundlebundleResource bundle
-
Constructor Summary
Constructors Constructor Description CommandLine()constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddAlias(String alias)voidaddArgument(Argument arg)voidaddFlag(Flag flag)voidaddOption(Option opt)Objectclone()intcompareTo(Object o)CollectiongetAlias()IteratorgetAllParameters()MapgetArguments()StringgetDescription()MapgetFlags()StringgetImpl()StringgetLocalizedDescription()StringgetName()MapgetOptions()CollectiongetRequiredArguments()CollectiongetRequiredOptions()IteratorgetRequiredParameters()voidsetAlias(Collection alias)voidsetArguments(Map arguments)voidsetDescription(String description)voidsetFlags(Map flags)voidsetImpl(String impl)voidsetName(String name)voidsetOptions(Map options)StringtoString()
-
-
-
Field Detail
-
bundle
protected static ResourceBundle bundle
Resource bundle
-
-
Method Detail
-
getRequiredArguments
public Collection getRequiredArguments()
- Returns:
- required arguments
-
getRequiredOptions
public Collection getRequiredOptions()
- Returns:
- required options
-
getDescription
public String getDescription()
- Returns:
- the description.
-
getLocalizedDescription
public String getLocalizedDescription()
- Returns:
- the localized description.
-
setDescription
public void setDescription(String description)
- Parameters:
description- The description to set
-
getFlags
public Map getFlags()
- Returns:
- the flags
-
setFlags
public void setFlags(Map flags)
- Parameters:
flags- The flags to set
-
getImpl
public String getImpl()
- Returns:
- the impl
-
setImpl
public void setImpl(String impl)
- Parameters:
impl- The impl to set
-
getName
public String getName()
- Returns:
- the name
-
setName
public void setName(String name)
- Parameters:
name- the name to set
-
getOptions
public Map getOptions()
- Returns:
- the options
-
setOptions
public void setOptions(Map options)
- Parameters:
options- theOptions to set
-
compareTo
public int compareTo(Object o)
- Specified by:
compareToin interfaceComparable
-
getAllParameters
public Iterator getAllParameters()
- Returns:
- all the parameters. i.e. args, options and flags.
-
getRequiredParameters
public Iterator getRequiredParameters()
- Returns:
- the required parameters. i.e. args, options and flags.
-
addArgument
public void addArgument(Argument arg)
- Parameters:
arg- theArgumentto add
-
addOption
public void addOption(Option opt)
- Parameters:
opt- theOptionto add
-
addFlag
public void addFlag(Flag flag)
- Parameters:
flag- theFlagto add
-
getArguments
public Map getArguments()
- Returns:
- the arguments
-
setArguments
public void setArguments(Map arguments)
- Parameters:
arguments- the arguments to set
-
getAlias
public Collection getAlias()
- Returns:
- the alias
-
setAlias
public void setAlias(Collection alias)
- Parameters:
alias- the alias to set
-
addAlias
public void addAlias(String alias)
- Parameters:
alias- the alias to add
-
-