|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use ControllerState | |
---|---|
org.apache.torque.generator.control | This package implements the torque generator Controller . |
org.apache.torque.generator.control.action | This package defines and implements mergepoint actions. |
org.apache.torque.generator.outlet | This package defines torque generator outlets which produce output snippets from the source. |
org.apache.torque.generator.outlet.copy | This package defines and implements copy outlets. |
org.apache.torque.generator.outlet.java | This package defines java outlets and provides some implementations. |
org.apache.torque.generator.source | This package contains the handling of source files. |
org.apache.torque.generator.source.jdbc | This package implements sources which read from jdbc. |
org.apache.torque.generator.source.skipDecider | This package contains the definition and implementations of source filters. |
org.apache.torque.generator.source.stream | This package contains the handling of stream-based sources, such as file sources. |
org.apache.torque.generator.source.transform | This package contains the definition of source transformers and some implementations. |
org.apache.torque.generator.template | This package contains the handling of template-based outlets in the Torque generator. |
org.apache.torque.generator.template.velocity | This package contains the handling of velocity outlets in the Torque generator. |
Uses of ControllerState in org.apache.torque.generator.control |
---|
Methods in org.apache.torque.generator.control with parameters of type ControllerState | |
---|---|
protected void |
Controller.createOutputFilename(Output output,
ControllerState controllerState)
Creates the output file name and sets it in the output. |
protected void |
Controller.processGenerationUnit(ControllerState controllerState,
UnitConfiguration unitConfiguration)
Processes a unit of generation. |
SourceElement |
Controller.transformSource(SourceElement rootElement,
List<SourceTransformerDefinition> transformerDefinitions,
ControllerState controllerState)
Applies all tarnsformer definitions to the current source. |
Constructors in org.apache.torque.generator.control with parameters of type ControllerState | |
---|---|
TokenReplacer(ControllerState controllerState)
|
Uses of ControllerState in org.apache.torque.generator.control.action |
---|
Methods in org.apache.torque.generator.control.action with parameters of type ControllerState | |
---|---|
OutletResult |
MergepointAction.execute(ControllerState controllerState)
Executes the action. |
OutletResult |
ApplyAction.execute(ControllerState controllerState)
Applies an outlet to the matching element. |
OutletResult |
SourceElementAttributeAction.execute(ControllerState controllerState)
Returns the value of the configured attribute of the configured source element. |
OutletResult |
TraverseAllAction.execute(ControllerState controllerState)
Traverses all matching elements, and applies an outlet to each matching element. |
OutletResult |
OptionAction.execute(ControllerState controllerState)
Returns the value of the configured option. |
OutletResult |
OutputAction.execute(ControllerState controllerState)
Returns the value. |
Uses of ControllerState in org.apache.torque.generator.outlet |
---|
Methods in org.apache.torque.generator.outlet with parameters of type ControllerState | |
---|---|
void |
OutletImpl.afterExecute(ControllerState controllerState)
|
void |
Outlet.afterExecute(ControllerState controllerState)
Adjusts the state of the Controller after generation. |
void |
OutletImpl.beforeExecute(ControllerState controllerState)
|
void |
Outlet.beforeExecute(ControllerState controllerState)
Adjusts the state of the Controller before generation. |
abstract OutletResult |
OutletImpl.execute(ControllerState controllerState)
|
OutletResult |
Outlet.execute(ControllerState controllerState)
Generates the output for this template into the Generated object. |
Object |
OutletImpl.getVariable(String key,
ControllerState controllerState)
Returns the variable with the given key. |
String |
OutletImpl.mergepoint(String mergepointName,
ControllerState controllerState)
Processes the mergepoint with the given name. |
void |
OutletImpl.setVariable(String key,
Object value,
ControllerState controllerState)
Sets a variable. |
void |
OutletImpl.setVariable(String key,
Object value,
Variable.Scope scope,
ControllerState controllerState)
Sets a variable. |
Uses of ControllerState in org.apache.torque.generator.outlet.copy |
---|
Methods in org.apache.torque.generator.outlet.copy with parameters of type ControllerState | |
---|---|
OutletResult |
CopyOutlet.execute(ControllerState controllerState)
Executes the generation process; the result is returned. |
Uses of ControllerState in org.apache.torque.generator.outlet.java |
---|
Methods in org.apache.torque.generator.outlet.java with parameters of type ControllerState | |
---|---|
OutletResult |
ModifySourcenameOutlet.execute(ControllerState controllerState)
|
OutletResult |
NewlineOutlet.execute(ControllerState controllerState)
|
OutletResult |
JavadocOutlet.execute(ControllerState controllerState)
|
OutletResult |
ConstantNameOutlet.execute(ControllerState controllerState)
Processes the input according to the camelback rules. |
OutletResult |
PackageToPathOutlet.execute(ControllerState controllerState)
Reads the input and replaces all dots by slashes. |
OutletResult |
CamelbackOutlet.execute(ControllerState controllerState)
Processes the input according to the camelback rules. |
OutletResult |
JavaFilenameOutlet.execute(ControllerState controllerState)
|
OutletResult |
OptionOutlet.execute(ControllerState controllerState)
|
OutletResult |
XmlOutlet.execute(ControllerState controllerState)
|
static String |
OutletUtils.getFromDifferentPlaces(String presetValue,
String optionName,
String variableName,
String sourceElementName,
String sourceElementAttribute,
ControllerState controllerState,
Class<?> clazz,
String expectedFieldNames)
Retrieve a value from either a preset value, an option, a variable, or a source element attribute. |
protected String |
StringInputOutlet.getInput(ControllerState controllerState)
Retrieves the input from the different possibilities nputValue, inputOption, inputVariable, or inputSourceElement. |
static String |
OutletUtils.getOption(String optionName,
ControllerState controllerState,
Class<?> clazz)
Reads an option with a given name. |
static String |
OutletUtils.getSourceElementAttribute(String elementName,
String attributeName,
ControllerState controllerState,
Class<?> clazz)
Retrieves the value of a source element attribute. |
Uses of ControllerState in org.apache.torque.generator.source |
---|
Methods in org.apache.torque.generator.source with parameters of type ControllerState | |
---|---|
void |
SourceProvider.init(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Initializes the source provider. |
protected abstract void |
SourceProvider.initInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Initializes the sources provided by this SourceProvider. |
void |
SourceProvider.reset(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Resets the source provider. |
protected abstract void |
SourceProvider.resetInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Resets the sources provided by this SourceProvider. |
Uses of ControllerState in org.apache.torque.generator.source.jdbc |
---|
Methods in org.apache.torque.generator.source.jdbc with parameters of type ControllerState | |
---|---|
void |
JdbcMetadataSourceProvider.initInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Generates an XML database schema from JDBC metadata. |
protected void |
JdbcMetadataSourceProvider.resetInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
|
Uses of ControllerState in org.apache.torque.generator.source.skipDecider |
---|
Methods in org.apache.torque.generator.source.skipDecider with parameters of type ControllerState | |
---|---|
boolean |
SkipDecider.proceed(ControllerState controllerState)
Decides whether the source file should be skipped and not used for generation. |
boolean |
StopGenerationDecider.proceed(ControllerState controllerState)
Decides whether generation should proceed. |
Uses of ControllerState in org.apache.torque.generator.source.stream |
---|
Methods in org.apache.torque.generator.source.stream with parameters of type ControllerState | |
---|---|
protected void |
FileSourceProvider.initInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
Determines the files which match the source fileset. |
SourceElement |
StreamSourceFormat.parse(InputStream inputStream,
ControllerState controllerState)
Parses a source file and returns its root element. |
SourceElement |
XmlSourceFormat.parse(InputStream xmlStream,
ControllerState controllerState)
Parses a stream containing xml data and creates a source element hierarchy from it. |
SourceElement |
PropertiesSourceFormat.parse(InputStream inputStream,
ControllerState controllerState)
Parses a Stream in Properties format and returns the root element of the created element tree. |
void |
FileSourceProvider.resetInternal(ConfigurationHandlers configurationHandlers,
ControllerState controllerState)
|
Constructors in org.apache.torque.generator.source.stream with parameters of type ControllerState | |
---|---|
FileSource(StreamSourceFormat format,
File path,
ControllerState controllerState)
Constructor. |
Uses of ControllerState in org.apache.torque.generator.source.transform |
---|
Methods in org.apache.torque.generator.source.transform with parameters of type ControllerState | |
---|---|
SourceElement |
BeanPropertyMethodNameTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attribute according to the settings. |
SourceElement |
SourceTransformer.transform(SourceElement toTransformRoot,
ControllerState controllerState)
Transforms one source tree into another source tree. |
abstract SourceElement |
SourceTargetAttributeTransformer.transform(SourceElement toTransformRoot,
ControllerState controllerState)
Performs the transformation. |
SourceElement |
LoadAllSourceFilesTransformer.transform(SourceElement root,
ControllerState controllerState)
Loads the additional source into the current source graph. |
SourceElement |
CopyAttributeTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attribute according to the settings. |
SourceElement |
LoadAdditionalSourceTransformer.transform(SourceElement root,
ControllerState controllerState)
Loads the additional source into the current source graph. |
SourceElement |
GetterSetterNameTransformer.transform(SourceElement sourceElement,
ControllerState controllerState)
Fills the target attributes according to the settings. |
SourceElement |
AttributeTransformer.transform(SourceElement toTransform,
ControllerState controllerState)
Adds attributes to the sourceElement according to the transformDefinition. |
Uses of ControllerState in org.apache.torque.generator.template |
---|
Methods in org.apache.torque.generator.template with parameters of type ControllerState | |
---|---|
String |
TemplateOutlet.getContent(ControllerState controllerState)
Returns the contents as a Template as a String. |
String |
TemplateOutletImpl.getContent(ControllerState controllerState)
|
Uses of ControllerState in org.apache.torque.generator.template.velocity |
---|
Methods in org.apache.torque.generator.template.velocity that return ControllerState | |
---|---|
ControllerState |
TorqueGenVelocity.getControllerState()
Returns the current controller state. |
Methods in org.apache.torque.generator.template.velocity with parameters of type ControllerState | |
---|---|
OutletResult |
VelocityOutlet.execute(ControllerState controllerState)
Executes the generation process; the result is returned. |
Constructors in org.apache.torque.generator.template.velocity with parameters of type ControllerState | |
---|---|
TorqueGenVelocity(VelocityOutlet outlet,
ControllerState controllerState)
Constructs a generator interface within the given controllerState. |
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |