|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.sun.grid.jgdi.util.shell.OptionDescriptor
public class OptionDescriptor
Describes command option parameters as cache entry
| Constructor Summary | |
|---|---|
OptionDescriptor(java.lang.String option,
java.lang.String defaultArg,
int mandatory,
int optional,
java.lang.reflect.Method method,
java.io.PrintWriter out,
java.io.PrintWriter err)
Constructor |
|
| Method Summary | |
|---|---|
java.lang.String |
getDefaultArg()
|
java.io.PrintWriter |
getErr()
Getter method |
int |
getMandatoryArgCount()
Getter method |
int |
getMaxArgCount()
Gets sum of mandatory and optional arguments |
java.lang.reflect.Method |
getMethod()
Getter method |
java.lang.String |
getOption()
Getter method |
int |
getOptionalArgCount()
Getter method |
java.io.PrintWriter |
getOut()
Getter method |
boolean |
isMultiple()
Getter method |
boolean |
isWithoutArgs()
Getter method |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public OptionDescriptor(java.lang.String option,
java.lang.String defaultArg,
int mandatory,
int optional,
java.lang.reflect.Method method,
java.io.PrintWriter out,
java.io.PrintWriter err)
throws java.lang.InstantiationException,
java.lang.IllegalAccessException
option - - option stringmandatory - - number of mandatory argumentsoptional - - number of optional argumentsmethod - - command method to execute
java.lang.InstantiationException
java.lang.IllegalAccessException| Method Detail |
|---|
public int getMandatoryArgCount()
public int getOptionalArgCount()
public int getMaxArgCount()
public boolean isWithoutArgs()
public boolean isMultiple()
public java.lang.reflect.Method getMethod()
public java.lang.String getOption()
public java.io.PrintWriter getOut()
public java.io.PrintWriter getErr()
public java.lang.String getDefaultArg()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||