INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Servlet

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.Servlet
All Implemented Interfaces:
Transformation

public class Servlet
extends MainProcess

Transmorpher graph servlet 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
Servlet(java.lang.String name, Transmorpher owner)
          Constructor for the Servlet 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 generateSetOutput(Writer file)
          This method allows to connect the TSerializer ,corresponding to the user request , to the standart output.
 void generateXML()
          Prints the XML expression of the servlet
 void retroNull()
          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, getAllChannels, getCall, getCalls, getChannel, getChannels, removeCall, removeCallAndPorts, removeChannel, removeChannelAndPorts, 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

Servlet

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

Parameters:
name - The name of the Servlet instance to create
owner - The transmorpher which owns this instance
Method Detail

retroNull

public void retroNull()
Description of the Method

Overrides:
retroNull in class Process

generateXML

public void generateXML()
Prints the XML expression of the servlet

Specified by:
generateXML in interface Transformation
Overrides:
generateXML in class Process

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 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

generateSetOutput

public void generateSetOutput(Writer file)
                       throws java.io.IOException
This method allows to connect the TSerializer ,corresponding to the user request , to the standart output. Others are connected to null.

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

INRIA & FluxMedia

..no bottom yet...