org.spicefactory.pimento.generator.ant
Class ConfigGeneratorSettings

java.lang.Object
  extended by org.spicefactory.pimento.generator.ant.ConfigGeneratorSettings

public class ConfigGeneratorSettings
extends Object

Represents a single parsleyConfigGenerator tag in a Cinnamon Generator Ant Task.

Author:
Jens Halm

Constructor Summary
ConfigGeneratorSettings()
           
 
Method Summary
 File getOutputFile()
          Returns the file that the Parsley configuration should be written to.
 String getServiceUrl()
          Returns the serviceUrl for the client side ServiceChannel.
 int getTimeout()
          Returns the timeout for all operations of the client side ServiceChannel.
 void setOutputFile(File outputFile)
          Sets the file that the Parsley configuration should be written to.
 void setServiceUrl(String serviceUrl)
          Sets the serviceUrl for the client side ServiceChannel.
 void setTimeout(int timeout)
          Sets the timeout for all operations of the client side ServiceChannel.
 void validate()
          Validates if all properties of this bean have been set.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConfigGeneratorSettings

public ConfigGeneratorSettings()
Method Detail

getOutputFile

public File getOutputFile()
Returns the file that the Parsley configuration should be written to.

Returns:
the file that the Parsley configuration should be written to

setOutputFile

public void setOutputFile(File outputFile)
Sets the file that the Parsley configuration should be written to.

Parameters:
outputFile - the file that the Parsley configuration should be written to

getServiceUrl

public String getServiceUrl()
Returns the serviceUrl for the client side ServiceChannel.

Returns:
the serviceUrl for the client side ServiceChannel

setServiceUrl

public void setServiceUrl(String serviceUrl)
Sets the serviceUrl for the client side ServiceChannel.

Parameters:
serviceUrl - the serviceUrl for the client side ServiceChannel

getTimeout

public int getTimeout()
Returns the timeout for all operations of the client side ServiceChannel.

Returns:
the timeout for all operations of the client side ServiceChannel

setTimeout

public void setTimeout(int timeout)
Sets the timeout for all operations of the client side ServiceChannel.

Parameters:
timeout - the timeout for all operations of the client side ServiceChannel

validate

public void validate()
              throws org.apache.tools.ant.BuildException
Validates if all properties of this bean have been set. Only the timeout property is optional.

Throws:
org.apache.tools.ant.BuildException - if one of the properties of this bean have not been set.