public class CommandLine extends Object implements Comparable, Cloneable
Modifier and Type | Field and Description |
---|---|
protected static ResourceBundle |
bundle
Resource bundle
|
Constructor and Description |
---|
CommandLine()
constructor
|
Modifier and Type | Method and 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() |
protected static ResourceBundle bundle
public Collection getRequiredArguments()
public Collection getRequiredOptions()
public String getDescription()
public String getLocalizedDescription()
public void setDescription(String description)
description
- The description to setpublic Map getFlags()
public void setFlags(Map flags)
flags
- The flags to setpublic String getImpl()
public void setImpl(String impl)
impl
- The impl to setpublic String getName()
public void setName(String name)
name
- the name to setpublic Map getOptions()
public void setOptions(Map options)
options
- the Option
s to setpublic int compareTo(Object o)
compareTo
in interface Comparable
public Iterator getAllParameters()
public Iterator getRequiredParameters()
public void addArgument(Argument arg)
arg
- the Argument
to addpublic void addOption(Option opt)
opt
- the Option
to addpublic void addFlag(Flag flag)
flag
- the Flag
to addpublic Map getArguments()
public void setArguments(Map arguments)
arguments
- the arguments to setpublic Collection getAlias()
public void setAlias(Collection alias)
alias
- the alias to setpublic void addAlias(String alias)
alias
- the alias to addCopyright © 2004–2021 The Apache Software Foundation. All rights reserved.