org.apache.ojb.broker.ant
Class WriteDtdToFileCommand

java.lang.Object
  extended by org.apache.ojb.broker.ant.Command
      extended by org.apache.ojb.broker.ant.WriteDtdToFileCommand

public class WriteDtdToFileCommand
extends Command

The command for creating a data DTD for a given database model.

Version:
$Revision: 1.1 $
Author:
Thomas Dudziak

Constructor Summary
WriteDtdToFileCommand()
           
 
Method Summary
 void execute(org.apache.tools.ant.Task task, org.apache.ddlutils.model.Database dbModel, DescriptorRepository objModel)
          Executes this command.
 boolean isRequiringModel()
          
 void setOutputFile(File outputFile)
          Sets the file to output the DTD to.
 
Methods inherited from class org.apache.ojb.broker.ant.Command
getDatabaseType, getPlatform, isFailOnError, setFailOnError, setPlatform
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WriteDtdToFileCommand

public WriteDtdToFileCommand()
Method Detail

setOutputFile

public void setOutputFile(File outputFile)
Sets the file to output the DTD to.

Parameters:
outputFile - The output file

isRequiringModel

public boolean isRequiringModel()


execute

public void execute(org.apache.tools.ant.Task task,
                    org.apache.ddlutils.model.Database dbModel,
                    DescriptorRepository objModel)
             throws org.apache.tools.ant.BuildException
Executes this command.

Specified by:
execute in class Command
Parameters:
task - The executing task
dbModel - The database model
objModel - The object model
Throws:
org.apache.tools.ant.BuildException


Copyright © 2004-2012 The Kuali Foundation. All Rights Reserved.