INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Generate

java.lang.Object
  |
  +--java.util.Observable
        |
        +--fr.fluxmedia.transmorpher.graph.CallImpl
              |
              +--fr.fluxmedia.transmorpher.graph.Generate
All Implemented Interfaces:
Call, java.io.Serializable

public class Generate
extends CallImpl

This class allows to instanciate a call for an object able to produce SAX events. There is two ways to create a Generate object :

CAUTION, This will have to change the parameter cannot always be a file

Since:
jdk 1.3 / SAX 2.0
Author:
Jerome.Euzenat@inrialpes.fr
See Also:
Serialized Form

Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
attributes, id, inPorts, nullified, outPorts, parameters, process, visited
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
Generate()
          Creates a simple instance of Generate
Generate(java.lang.String id, java.lang.String type)
          Creates an instance of Generate with an id and a type
Generate(java.lang.String id, java.lang.String type, Process process)
          Creates an instance of Generate with an id , a type and a process that owns this serialize
Generate(java.lang.String id, java.lang.String type, Process process, int out)
          Creates an instance of Generate with an id , a type , a process that owns this serialize and the number of out ports.
Generate(java.lang.String id, java.lang.String type, Process process, int out, java.lang.String file)
          Creates an instance of Generate with an id , a type , a process that owns this serialize, the number of out ports and a file name
Generate(java.lang.String id, java.lang.String type, java.lang.String file)
          Creates an instance of Generate with an id , a type and a file name (compatibility with old versions)
Generate(java.lang.String id, java.lang.String type, java.lang.String file, Process process)
          Creates an instance of Generate with an id , a type , a process that owns this serialize and a file name
 
Method Summary
 void createProcess(TProcessComposite currentProcess)
          Creates a TReader corresponding to this generate object and adds it to the composite process in the execution structure.
 void generateJavaCode(Writer file)
          Description of the Method
 void generateXML()
          Description of the Method
 java.lang.String getFile()
          Gets the file attribute of the Generate object
 void retroNull(PortList out, PortList in)
          A generate can be nullified but it will propagate to nothing
 void setFile(java.lang.String uri)
          Sets the file attribute of the Generate object
 
Methods inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
addIn, addIn, addOut, addOut, clearNull, clearVisited, generateParameters, generatePorts, getAttributes, getId, getParameters, getProcess, getType, inPorts, newProcess, outPorts, retroNull, setId, setParameters, setType, setUp, toString, 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, registerNatives, wait, wait, wait
 

Constructor Detail

Generate

public Generate()
Creates a simple instance of Generate

Generate

public Generate(java.lang.String id,
                java.lang.String type)
Creates an instance of Generate with an id and a type
Parameters:
id - The id
type - The type

Generate

public Generate(java.lang.String id,
                java.lang.String type,
                java.lang.String file)
Creates an instance of Generate with an id , a type and a file name (compatibility with old versions)
Parameters:
id - The id
type - The type
file - the file name

Generate

public Generate(java.lang.String id,
                java.lang.String type,
                Process process)
Creates an instance of Generate with an id , a type and a process that owns this serialize
Parameters:
id - The id
type - The type
process - the process

Generate

public Generate(java.lang.String id,
                java.lang.String type,
                java.lang.String file,
                Process process)
Creates an instance of Generate with an id , a type , a process that owns this serialize and a file name
Parameters:
id - The id
type - The type
file - The file name
process - the process

Generate

public Generate(java.lang.String id,
                java.lang.String type,
                Process process,
                int out)
Creates an instance of Generate with an id , a type , a process that owns this serialize and the number of out ports.
Parameters:
id - The id
type - The type
process - The process
out - The number of out

Generate

public Generate(java.lang.String id,
                java.lang.String type,
                Process process,
                int out,
                java.lang.String file)
Creates an instance of Generate with an id , a type , a process that owns this serialize, the number of out ports and a file name
Parameters:
id - The id
type - The type
process - The process
out - The number of out
file - The file name
Method Detail

retroNull

public void retroNull(PortList out,
                      PortList in)
A generate can be nullified but it will propagate to nothing
Parameters:
out - Description of the Parameter
in - Description of the Parameter

setFile

public void setFile(java.lang.String uri)
Sets the file attribute of the Generate object
Parameters:
uri - The new file value

getFile

public java.lang.String getFile()
Gets the file attribute of the Generate object
Returns:
The file value

generateXML

public void generateXML()
Description of the Method
Overrides:
generateXML in class CallImpl

createProcess

public final void createProcess(TProcessComposite currentProcess)
Creates a TReader corresponding to this generate object and adds it to the composite process in the execution structure.
Overrides:
createProcess in class CallImpl
Parameters:
currentProcess - the container for this serializer

generateJavaCode

public void generateJavaCode(Writer file)
                      throws java.io.IOException
Description of the Method
Overrides:
generateJavaCode in class CallImpl
Parameters:
file - Description of the Parameter
Throws:
java.io.IOException - Description of the Exception

INRIA & FluxMedia

..no bottom yet...