org.xins.common.ant
Class CreateExampleTask

java.lang.Object
  extended byorg.apache.tools.ant.ProjectComponent
      extended byorg.apache.tools.ant.Task
          extended byorg.xins.common.ant.CreateExampleTask

public class CreateExampleTask
extends Task

Apache Ant task that generates the specification code of an example based on the request URL.

Since:
XINS 1.4.0
Version:
$Revision: 1.9 $ $Date: 2006/10/25 09:39:34 $
Author:
Anthony Goubard

Field Summary
 
Fields inherited from class org.apache.tools.ant.Task
description, location, target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
project
 
Constructor Summary
CreateExampleTask()
           
 
Method Summary
 void execute()
          Called by the project to let the task do its work.
 void setExampleProperty(String exampleProperty)
          Sets the name of the property in which the result should be stored.
 void setFunctionProperty(String functionProperty)
          Sets the name of the property in which the name of the function should be stored.
 void setRequestURL(String requestURL)
          Sets the URL to call the function.
 void setXslLocation(String xslLocation)
          Sets the location of the XSL style sheet to use to create the example.
 
Methods inherited from class org.apache.tools.ant.Task
getDescription, getLocation, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, maybeConfigure, perform, reconfigure, setDescription, setLocation, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
getProject, setProject
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateExampleTask

public CreateExampleTask()
Method Detail

setRequestURL

public void setRequestURL(String requestURL)
Sets the URL to call the function.

Parameters:
requestURL - the name of the property to store the uppercase value.

setExampleProperty

public void setExampleProperty(String exampleProperty)
Sets the name of the property in which the result should be stored.

Parameters:
exampleProperty - the name of the property in which the result should be stored.

setFunctionProperty

public void setFunctionProperty(String functionProperty)
Sets the name of the property in which the name of the function should be stored.

Parameters:
functionProperty - the name of the property in which the result should be stored.

setXslLocation

public void setXslLocation(String xslLocation)
Sets the location of the XSL style sheet to use to create the example.

Parameters:
xslLocation - the name of the property in which the result should be stored.

execute

public void execute()
             throws BuildException
Called by the project to let the task do its work.

Throws:
BuildException - if something goes wrong with the build.


See http://www.xins.org/.