|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.cloudera.sqoop.cli.ToolOptions
public class ToolOptions
Class that holds several sets of related options, providing a container for all the options associated with a single tool. The order in which sets of related options are added to this tool is preserved in printing and iteration.
Constructor Summary | |
---|---|
ToolOptions()
|
Method Summary | |
---|---|
void |
addOptions(RelatedOptions opts)
Add a block of related options to the options for this tool. |
void |
addUniqueOptions(RelatedOptions opts)
Add a block of related options to the options for this tool, if a block has not already been added with the same title. |
boolean |
containsGroup(java.lang.String title)
Reports whether this collection of RelatedOptions contains a RelatedOptions with the specified title. |
java.util.Iterator<RelatedOptions> |
iterator()
Provide an iterator over all sets of RelatedOptions. |
org.apache.commons.cli.Options |
merge()
Flatten the different sets of related options into a single collection of options. |
void |
printHelp()
Print the help to the console using a default help formatter. |
void |
printHelp(org.apache.commons.cli.HelpFormatter formatter)
Print the help to the console using the specified help formatter. |
void |
printHelp(org.apache.commons.cli.HelpFormatter formatter,
java.io.PrintWriter pw)
Print the help to the specified PrintWriter, using the specified help formatter. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ToolOptions()
Method Detail |
---|
public void addOptions(RelatedOptions opts)
opts
- the set of RelatedOptions to add.public void addUniqueOptions(RelatedOptions opts)
opts
- the set of RelatedOptions to add.public boolean containsGroup(java.lang.String title)
title
- the group title to search for
public java.util.Iterator<RelatedOptions> iterator()
iterator
in interface java.lang.Iterable<RelatedOptions>
public org.apache.commons.cli.Options merge()
public void printHelp()
public void printHelp(org.apache.commons.cli.HelpFormatter formatter)
formatter
- the HelpFormatter to use.public void printHelp(org.apache.commons.cli.HelpFormatter formatter, java.io.PrintWriter pw)
formatter
- the HelpFormatter to use.pw
- the PrintWriter to emit to.public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |