INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Transformer

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.TransformationImpl
          extended by fr.fluxmedia.transmorpher.graph.Process
              extended by fr.fluxmedia.transmorpher.graph.MainProcess
                  extended by fr.fluxmedia.transmorpher.graph.Transformer
All Implemented Interfaces:
Transformation

public class Transformer
extends MainProcess

Transmorpher graph (JAXP) transformer definitions

Since:
jdk 1.3 / SAX 2.0
Author:
Jerome.Euzenat@inrialpes.fr

Field Summary
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.Process
calls, channels
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
attributes, inPorts, name, outPorts, parameters, transmorpher, type
 
Constructor Summary
Transformer(java.lang.String name, Transmorpher owner)
          Constructor for the Transformer object
Transformer(Transmorpher owner)
          Constructor for the Transformer object
 
Method Summary
 TProcessComposite createMainProcess()
          Creates an execution component corresponding to this Servlet and starts the creation of execution components of each calls of this Servlet
 void generateBody(Writer file, LinearIndexedStruct externs)
          Generates java code for body
 void generateClassHeader(Writer file)
          Generates java code for class header
 void generateEnd(Writer file)
          Generates java code for end
 void generateImport(Writer file, LinearIndexedStruct externs)
          Generates java code for import
 void generateMainHeader(Writer file)
          Generates java code for main header
 void generateReadParameters(Writer file)
          Generates java code for parameters
 void generateTransformerMethod(Writer file)
          Generates java code of methods required by Transformer Interface
private  java.lang.String XMLName()
          Description of the Method
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.MainProcess
generateJavaCode
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.Process
addCall, addChannel, clearNull, clearVisited, deleteCallsTo, generateXML, getAllChannels, getCall, getCalls, getChannel, getChannels, removeCall, removeCallAndPorts, removeChannel, removeChannelAndPorts, retroNull, retroNull, retroNull, setUp
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl
addIn, addIn, addOut, addOut, getAttributes, getName, getParameters, getTransmorpher, getType, inPorts, outPorts, setName, setParameters, setType, update
 
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Transformer

public Transformer(java.lang.String name,
                   Transmorpher owner)
Constructor for the Transformer object

Parameters:
name - Description of the Parameter
owner - The transmorpher which owns this instance

Transformer

public Transformer(Transmorpher owner)
Constructor for the Transformer object

Parameters:
owner - The transmorpher which owns this instance
Method Detail

XMLName

private java.lang.String XMLName()
Description of the Method

Returns:
Description of the Return Value

createMainProcess

public TProcessComposite createMainProcess()
Creates an execution component corresponding to this Servlet and starts the creation of execution components of each calls of this Servlet

Specified by:
createMainProcess in class MainProcess
Returns:
an execution component

generateImport

public void generateImport(Writer file,
                           LinearIndexedStruct externs)
                    throws java.io.IOException
Generates java code for import

Specified by:
generateImport in class MainProcess
Parameters:
file - The writer used for printing in a file
externs - Description of the Parameter
Throws:
java.io.IOException - When IO errors occur

generateClassHeader

public void generateClassHeader(Writer file)
                         throws java.io.IOException
Generates java code for class header

Specified by:
generateClassHeader in class MainProcess
Parameters:
file - The writer used for printing in a file
Throws:
java.io.IOException - When IO errors occur

generateMainHeader

public void generateMainHeader(Writer file)
                        throws java.io.IOException
Generates java code for main header

Specified by:
generateMainHeader in class MainProcess
Parameters:
file - The writer used for printing in a file
Throws:
java.io.IOException - When IO errors occur

generateReadParameters

public void generateReadParameters(Writer file)
                            throws java.io.IOException
Generates java code for parameters

Specified by:
generateReadParameters in class MainProcess
Parameters:
file - The writer used for printing in a file
Throws:
java.io.IOException - When IO errors occur

generateBody

public final void generateBody(Writer file,
                               LinearIndexedStruct externs)
                        throws java.io.IOException
Generates java code for body

Specified by:
generateBody in class MainProcess
Parameters:
file - The writer used for printing in a file
externs - Description of the Parameter
Throws:
java.io.IOException - When IO errors occur

generateEnd

public void generateEnd(Writer file)
                 throws java.io.IOException
Generates java code for end

Specified by:
generateEnd in class MainProcess
Parameters:
file - The writer used for printing in a file
Throws:
java.io.IOException - When IO errors occur

generateTransformerMethod

public void generateTransformerMethod(Writer file)
                               throws java.io.IOException
Generates java code of methods required by Transformer Interface

Parameters:
file - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

INRIA & FluxMedia

..no bottom yet...