|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.martiansoftware.jsap.ant.ParameterConfiguration
com.martiansoftware.jsap.ant.SwitchConfiguration
Stores/provides configuration data for switches nested inside a jsap ant task. For detailed information on using the jsap task, see the documentation for JSAPAntTask.
JSAPAntTask
,
Switch
Constructor Summary | |
SwitchConfiguration()
Creates a new SwitchConfiguration. |
Method Summary | |
void |
createMethod(String methodName,
PrintStream out)
Creates java source code for a method that will instantiate and configure a Switch according to this configuration. |
String |
getLongflag()
Returns the long flag for this switch. |
Parameter |
getParameter()
Returns a Switch configured according to this configuration. |
char |
getShortflag()
Returns the short flag for this switch. |
void |
setLongflag(String longFlag)
Sets the long flag for this switch. |
void |
setShortflag(char shortFlag)
Sets the short flag for this switch. |
Methods inherited from class com.martiansoftware.jsap.ant.ParameterConfiguration |
addConfiguredDefault, getDefaults, getId, hasProperties, setDefault, setId |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public SwitchConfiguration()
Method Detail |
public void setShortflag(char shortFlag)
shortFlag
- the short flag for this switch.public char getShortflag()
public void setLongflag(String longFlag)
longFlag
- the long flag for this switch.public String getLongflag()
public Parameter getParameter()
getParameter
in class ParameterConfiguration
public void createMethod(String methodName, PrintStream out)
createMethod
in class ParameterConfiguration
methodName
- the name of the method to generateout
- the PrintStream to which the generated java will be written
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |