public abstract class ParameterConfiguration
extends java.lang.Object
JSAPAntTask
Constructor and Description |
---|
ParameterConfiguration()
Creates a new ParameterConfiguration.
|
Modifier and Type | Method and Description |
---|---|
void |
addConfiguredDefault(DefaultValue defaultValue)
Adds a configured default value to the current list of default values
for this parameter.
|
abstract void |
createMethod(java.lang.String methodName,
java.io.PrintStream out)
Creates source code for a java method that creates a parameter matching
this object's configuration.
|
java.lang.String[] |
getDefaults()
Returns an array of this parameter's default values, or a zero-length
array if none exist.
|
java.lang.String |
getId()
Returns the unique ID for this parameter.
|
abstract Parameter |
getParameter()
Returns an Parameter (String, FlaggedOption, or UnflaggedOption)
configured according
to the settings contained within this object.
|
boolean |
hasProperties()
Returns a boolean indicating whether this parameter has any properties
associated with its
StringParser.
|
void |
setDefault(java.lang.String defaultValue)
Adds a default value to the current list of default values for this
parameter.
|
void |
setId(java.lang.String id)
Sets the unique ID for this parameter.
|
public ParameterConfiguration()
public abstract Parameter getParameter()
public void setId(java.lang.String id)
id
- ths unique ID for this parameter.public java.lang.String getId()
public void setDefault(java.lang.String defaultValue)
defaultValue
- the default value to add to the current list of
default values for this parameter.public void addConfiguredDefault(DefaultValue defaultValue)
defaultValue
- the configured default value to add to the current
list of default
values for this parameter.public java.lang.String[] getDefaults()
public boolean hasProperties()
public abstract void createMethod(java.lang.String methodName, java.io.PrintStream out) throws java.io.IOException
methodName
- the name of the java method to generate.out
- the PrintStream to which the generated source code should be
written.java.io.IOException
- if any are thrown by PrintStream.Copyright © 2002-2006, Martian Software, Inc.. All Rights Reserved.
For the latest version and documentation, please visit http://www.martiansoftware.com/jsap