INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class Serialize

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.CallImpl
          extended by fr.fluxmedia.transmorpher.graph.Serialize
All Implemented Interfaces:
Call, java.io.Serializable

public class Serialize
extends CallImpl

This class allows to instanciate a call that is used for ending a transformation. There is two ways to create a Serialize 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

Field Summary
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
attributes, id, inPorts, nullified, outPorts, parameters, process, visited
 
Constructor Summary
Serialize()
          Creates a simple instance of serializer
Serialize(java.lang.String id, java.lang.String type)
          Creates an instance of serializer with an id and a type
Serialize(java.lang.String id, java.lang.String type, Process process)
          Creates an instance of serializer with an id, a type and a process that owns this call
Serialize(java.lang.String id, java.lang.String type, Process process, int in)
          Creates an instance of serializer with an id, a type , a process that owns this call and a number of in
Serialize(java.lang.String id, java.lang.String type, Process process, int in, java.lang.String file)
          Creates an instance of serializer with an id, a type , a process that owns this call, a number of in ports, and a file name (for compatibility with old versions of Transmorpher)
Serialize(java.lang.String id, java.lang.String type, java.lang.String fileName)
          Creates an instance of serializer with an id, a type and a file name (for compatibility with old versions of Transmorpher)
Serialize(java.lang.String id, java.lang.String type, java.lang.String fileName, Process process)
          Creates an instance of serializer with an id, a type , a process that owns this call and a file name (for compatibility with old versions of Transmorpher)
 
Method Summary
 void createProcess(TProcessComposite currentProcess)
          Creates a TSerializer corresponding to this serializer object and adds it to the composite process in the execution structure.
 void generateJavaCode(Writer file)
          Prints a java code description of this serializer.
 void generateXML()
          Prints an XML representation of a serializer
 void retroNull(PortList out, PortList in)
          A serialize cannot be nullified
 void setFile(java.lang.String uri)
          Sets the file attribute of the Serialize 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, wait, wait, wait
 

Constructor Detail

Serialize

public Serialize()
Creates a simple instance of serializer


Serialize

public Serialize(java.lang.String id,
                 java.lang.String type)
Creates an instance of serializer with an id and a type

Parameters:
id - The id of this serializer
type - The type of this serializer

Serialize

public Serialize(java.lang.String id,
                 java.lang.String type,
                 java.lang.String fileName)
Creates an instance of serializer with an id, a type and a file name (for compatibility with old versions of Transmorpher)

Parameters:
id - The id of this serializer
type - The type of this serializer
fileName - a file name

Serialize

public Serialize(java.lang.String id,
                 java.lang.String type,
                 Process process)
Creates an instance of serializer with an id, a type and a process that owns this call

Parameters:
id - The id of this serializer
type - The type of this serializer
process - a Process

Serialize

public Serialize(java.lang.String id,
                 java.lang.String type,
                 java.lang.String fileName,
                 Process process)
Creates an instance of serializer with an id, a type , a process that owns this call and a file name (for compatibility with old versions of Transmorpher)

Parameters:
id - The id of this serializer
type - The type of this serializer
fileName - a file name
process - a process

Serialize

public Serialize(java.lang.String id,
                 java.lang.String type,
                 Process process,
                 int in)
Creates an instance of serializer with an id, a type , a process that owns this call and a number of in

Parameters:
in - The number of in port of this serializer
id - The id of this serializer
type - The type of this serializer
process - a Process

Serialize

public Serialize(java.lang.String id,
                 java.lang.String type,
                 Process process,
                 int in,
                 java.lang.String file)
Creates an instance of serializer with an id, a type , a process that owns this call, a number of in ports, and a file name (for compatibility with old versions of Transmorpher)

Parameters:
id - Description of the Parameter
type - Description of the Parameter
process - Description of the Parameter
in - Description of the Parameter
file - Description of the Parameter
Method Detail

retroNull

public void retroNull(PortList out,
                      PortList in)
A serialize cannot be nullified

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

Parameters:
uri - The new file value

generateXML

public void generateXML()
Prints an XML representation of a serializer

Specified by:
generateXML in interface Call
Specified by:
generateXML in class CallImpl

createProcess

public final void createProcess(TProcessComposite currentProcess)
Creates a TSerializer corresponding to this serializer object and adds it to the composite process in the execution structure.

Specified by:
createProcess in interface Call
Overrides:
createProcess in class CallImpl
Parameters:
currentProcess - the container for this serializer

generateJavaCode

public void generateJavaCode(Writer file)
                      throws java.io.IOException
Prints a java code description of this serializer.

Specified by:
generateJavaCode in interface Call
Specified by:
generateJavaCode in class CallImpl
Parameters:
file - a write for printing the java cade in a file
Throws:
java.io.IOException - when an IO errors occur.

INRIA & FluxMedia

..no bottom yet...