org.apache.jackrabbit.standalone.cli
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
bundle
protected static ResourceBundle bundle
- Resource bundle
CommandLine
public CommandLine()
- constructor
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
- the Option
s to set
compareTo
public int compareTo(Object o)
-
- Specified by:
compareTo
in interface Comparable
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
- the Argument
to add
addOption
public void addOption(Option opt)
- Parameters:
opt
- the Option
to add
addFlag
public void addFlag(Flag flag)
- Parameters:
flag
- the Flag
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
clone
public Object clone()
-
- Overrides:
clone
in class Object
toString
public String toString()
-
- Overrides:
toString
in class Object
Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.