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 ResourceBundle
bundle
Resource bundle
-
Constructor Summary
Constructors Constructor Description CommandLine()
constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addAlias(String alias)
void
addArgument(Argument arg)
void
addFlag(Flag flag)
void
addOption(Option opt)
Object
clone()
int
compareTo(Object o)
Collection
getAlias()
Iterator
getAllParameters()
Map
getArguments()
String
getDescription()
Map
getFlags()
String
getImpl()
String
getLocalizedDescription()
String
getName()
Map
getOptions()
Collection
getRequiredArguments()
Collection
getRequiredOptions()
Iterator
getRequiredParameters()
void
setAlias(Collection alias)
void
setArguments(Map arguments)
void
setDescription(String description)
void
setFlags(Map flags)
void
setImpl(String impl)
void
setName(String name)
void
setOptions(Map options)
String
toString()
-
-
-
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
- theOption
s to set
-
compareTo
public int compareTo(Object o)
- Specified by:
compareTo
in 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
- theArgument
to add
-
addOption
public void addOption(Option opt)
- Parameters:
opt
- theOption
to add
-
addFlag
public void addFlag(Flag flag)
- Parameters:
flag
- theFlag
to 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
-
-