org.apache.jackrabbit.standalone.cli
Class CommandLine

java.lang.Object
  extended by org.apache.jackrabbit.standalone.cli.CommandLine
All Implemented Interfaces:
Cloneable, Comparable

public class CommandLine
extends Object
implements Comparable, Cloneable

Command Line


Field Summary
protected static ResourceBundle bundle
          Resource bundle
 
Constructor Summary
CommandLine()
          constructor
 
Method Summary
 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()
          
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

bundle

protected static ResourceBundle bundle
Resource bundle

Constructor Detail

CommandLine

public CommandLine()
constructor

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 - the Options 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.