public class SwitchConfiguration extends ParameterConfiguration
JSAPAntTask,
Switch| Constructor and Description |
|---|
SwitchConfiguration()
Creates a new SwitchConfiguration.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
addConfiguredDefault, createParentStatements, getDefaults, getId, hasProperties, setDefault, setIdpublic SwitchConfiguration()
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 ParameterConfigurationpublic void createMethod(String methodName, PrintStream out)
createMethod in class ParameterConfigurationmethodName - the name of the method to generateout - the PrintStream to which the generated java will be writtenCopyright © 2016. All rights reserved.