ijgen.generator.ant
Class GeneratorTask

java.lang.Object
  extended by org.apache.tools.ant.ProjectComponent
      extended by org.apache.tools.ant.Task
          extended by ijgen.generator.ant.GeneratorTask
All Implemented Interfaces:
java.lang.Cloneable

public class GeneratorTask
extends org.apache.tools.ant.Task

Author:
Detelin Zlatev Ant task running the generator.

Field Summary
 
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
GeneratorTask()
           
 
Method Summary
 Database createDatabase()
          Reads and fills information from element in ant task.
 GeneratorType createGeneratorType()
          Reads and fills information from element in ant task.
 Path createPath()
          Reads and fills information from element in ant task.
 void execute()
          Overrides abstract parent method.
 java.lang.String getSourceMode()
          Gets the model definitions types.
 void setSourceMode(java.lang.String sourceMode)
          Sets the type of model definitions TODO: validate input fields
 
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

GeneratorTask

public GeneratorTask()
Method Detail

getSourceMode

public java.lang.String getSourceMode()
Gets the model definitions types. Currently 2 types are possible: 1. Annotated java classes 2. xml based definitions

Returns:
type of the model definitions

setSourceMode

public void setSourceMode(java.lang.String sourceMode)
Sets the type of model definitions TODO: validate input fields

Parameters:
sourceMode - type of the model definitions

createDatabase

public Database createDatabase()
Reads and fills information from element in ant task.

Returns:
created element after it is configured

createPath

public Path createPath()
Reads and fills information from element in ant task.

Returns:
created element after it is configured

createGeneratorType

public GeneratorType createGeneratorType()
Reads and fills information from element in ant task.

Returns:
created element after it is configured

execute

public void execute()
Overrides abstract parent method. This is the method that is actually executed when the generator ant task is called.

Overrides:
execute in class org.apache.tools.ant.Task


Copyright © 2010 Detelin Zlatev. All Rights Reserved.