org.openarchitectureware.compiler.helpers
Class CompilationUnitInstantiator

java.lang.Object
  extended by org.openarchitectureware.workflow.lib.AbstractWorkflowComponent
      extended by org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2
          extended by org.openarchitectureware.compiler.helpers.CompilationUnitInstantiator
All Implemented Interfaces:
WorkflowComponent, WorkflowComponentWithID

public class CompilationUnitInstantiator
extends AbstractWorkflowComponent2


Field Summary
static java.lang.String EXTENSION_EXT
           
static java.lang.String FILE_SEPARATOR
           
static java.lang.String TEMPLATE_EXT
           
 
Constructor Summary
CompilationUnitInstantiator()
           
 
Method Summary
 void addResourceRoot(java.lang.String cpElement)
          Adds a fragment root.
 void addSourceName(java.lang.String filename)
          Add filename of source file.
protected  void checkConfigurationInternal(Issues issues)
           
 java.lang.String getComponentName()
          Override this method by custom components.
protected  void invokeInternal(WorkflowContext ctx, ProgressMonitor monitor, Issues issues)
           
 void setOutputSlot(java.lang.String outputSlot)
          Sets the output slot.
 void setSourceEncoding(java.lang.String encoding)
          Sets the character encoding for the source file.
 
Methods inherited from class org.openarchitectureware.workflow.lib.AbstractWorkflowComponent2
checkConfiguration, invoke, setSkipOnErrors
 
Methods inherited from class org.openarchitectureware.workflow.lib.AbstractWorkflowComponent
checkRequiredConfigProperty, getContainer, getId, getLocation, getLogMessage, setContainer, setId, setLocation
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FILE_SEPARATOR

public static final java.lang.String FILE_SEPARATOR

EXTENSION_EXT

public static final java.lang.String EXTENSION_EXT
See Also:
Constant Field Values

TEMPLATE_EXT

public static final java.lang.String TEMPLATE_EXT
See Also:
Constant Field Values
Constructor Detail

CompilationUnitInstantiator

public CompilationUnitInstantiator()
Method Detail

addSourceName

public void addSourceName(java.lang.String filename)
Add filename of source file.

Parameters:
filename - the filename

addResourceRoot

public void addResourceRoot(java.lang.String cpElement)
Adds a fragment root.

Parameters:
cpElement - the fragment root

setOutputSlot

public void setOutputSlot(java.lang.String outputSlot)
Sets the output slot.

Parameters:
outputSlot - name of output slot

setSourceEncoding

public void setSourceEncoding(java.lang.String encoding)
Sets the character encoding for the source file.

Parameters:
encoding - name of character encoding

getComponentName

public java.lang.String getComponentName()
Description copied from class: AbstractWorkflowComponent
Override this method by custom components.

Specified by:
getComponentName in interface WorkflowComponent
Overrides:
getComponentName in class AbstractWorkflowComponent
Returns:
Simple class name as default.
See Also:
WorkflowComponent.getComponentName()

checkConfigurationInternal

protected void checkConfigurationInternal(Issues issues)
Specified by:
checkConfigurationInternal in class AbstractWorkflowComponent2

invokeInternal

protected void invokeInternal(WorkflowContext ctx,
                              ProgressMonitor monitor,
                              Issues issues)
Specified by:
invokeInternal in class AbstractWorkflowComponent2