org.apache.torque.task
Class TorqueDocumentationTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by org.apache.texen.ant.TexenTask
              extended by org.apache.torque.task.TorqueDataModelTask
                  extended by org.apache.torque.task.TorqueDocumentationTask
All Implemented Interfaces:
java.lang.Cloneable

public class TorqueDocumentationTask
extends TorqueDataModelTask

An ant task for generating output by using Velocity

Version:
$Id: TorqueDocumentationTask.java 473814 2006-11-11 22:30:30Z tv $
Author:
Martin Poeschl

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.torque.task.TorqueDataModelTask
TorqueDataModelTask.TorqueClasspathResourceLoader, TorqueDataModelTask.TorqueFileResourceLoader
 
Field Summary
 
Fields inherited from class org.apache.torque.task.TorqueDataModelTask
context, databaseNames, dataModelDbMap, dataModels, filesets, sqldbmap, xmlFile
 
Fields inherited from class org.apache.texen.ant.TexenTask
contextProperties, controlTemplate, inputEncoding, logFile, outputDirectory, outputEncoding, outputFile, resourceLoaderModificationCheckInterval, templatePath, useClasspath, useResourceLoaderCache
 
Fields inherited from class org.apache.tools.ant.Task
target, taskName, taskType, wrapper
 
Fields inherited from class org.apache.tools.ant.ProjectComponent
description, location, project
 
Constructor Summary
TorqueDocumentationTask()
           
 
Method Summary
 java.lang.String getOutputFormat()
          Get the current output format.
 org.apache.velocity.context.Context initControlContext()
          Place our target package value into the context for use in the templates.
 void setOutputFormat(java.lang.String v)
          Set the current output format.
 
Methods inherited from class org.apache.torque.task.TorqueDataModelTask
addFileset, execute, filter, getDataModelDbMap, getDataModels, getSqlDbMap, getTargetDatabase, getTargetPackage, getXmlFile, populateInitialContext, setContextProperties, setSqlDbMap, setTargetDatabase, setTargetPackage, setXmlFile
 
Methods inherited from class org.apache.texen.ant.TexenTask
cleanup, getContextProperties, getControlTemplate, getLogFile, getOutputDirectory, getOutputFile, getTemplatePath, setControlTemplate, setInputEncoding, setLogFile, setOutputDirectory, setOutputEncoding, setOutputFile, setResourceLoaderModificationCheckInterval, setTemplatePath, setUseClasspath, setUseResourceLoaderCache
 
Methods inherited from class org.apache.tools.ant.Task
bindToOwner, getOwningTarget, getRuntimeConfigurableWrapper, getTaskName, getTaskType, getWrapper, handleErrorFlush, handleErrorOutput, handleFlush, handleInput, handleOutput, init, isInvalid, log, log, log, log, maybeConfigure, perform, reconfigure, setOwningTarget, setRuntimeConfigurableWrapper, setTaskName, setTaskType
 
Methods inherited from class org.apache.tools.ant.ProjectComponent
clone, getDescription, getLocation, getProject, setDescription, setLocation, setProject
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TorqueDocumentationTask

public TorqueDocumentationTask()
Method Detail

getOutputFormat

public java.lang.String getOutputFormat()
Get the current output format.

Returns:
the current output format

setOutputFormat

public void setOutputFormat(java.lang.String v)
Set the current output format.

Parameters:
v - output format

initControlContext

public org.apache.velocity.context.Context initControlContext()
                                                       throws java.lang.Exception
Place our target package value into the context for use in the templates.

Overrides:
initControlContext in class TorqueDataModelTask
Returns:
the context
Throws:
java.lang.Exception - a generic exception


Copyright © 2000-2012 Apache Software Foundation. All Rights Reserved.