|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.Observable
fr.fluxmedia.transmorpher.graph.CallImpl
fr.fluxmedia.transmorpher.graph.Serialize
public class Serialize
This class allows to instanciate a call that is used for ending a transformation. There is two ways to create a Serialize object :
<serialize type="writefile" id="write" in="R1">
<with-param name="file">../samples/biblio/output/bibexmo.xml</with-param>
<with-param name="method">xml>
</generate>
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 |
---|
public Serialize()
public Serialize(java.lang.String id, java.lang.String type)
id
- The id of this serializertype
- The type of this serializerpublic Serialize(java.lang.String id, java.lang.String type, java.lang.String fileName)
id
- The id of this serializertype
- The type of this serializerfileName
- a file namepublic Serialize(java.lang.String id, java.lang.String type, Process process)
id
- The id of this serializertype
- The type of this serializerprocess
- a Processpublic Serialize(java.lang.String id, java.lang.String type, java.lang.String fileName, Process process)
id
- The id of this serializertype
- The type of this serializerfileName
- a file nameprocess
- a processpublic Serialize(java.lang.String id, java.lang.String type, Process process, int in)
in
- The number of in port of this serializerid
- The id of this serializertype
- The type of this serializerprocess
- a Processpublic Serialize(java.lang.String id, java.lang.String type, Process process, int in, java.lang.String file)
id
- Description of the Parametertype
- Description of the Parameterprocess
- Description of the Parameterin
- Description of the Parameterfile
- Description of the ParameterMethod Detail |
---|
public void retroNull(PortList out, PortList in)
out
- Description of the Parameterin
- Description of the Parameterpublic void setFile(java.lang.String uri)
uri
- The new file valuepublic void generateXML()
generateXML
in interface Call
generateXML
in class CallImpl
public final void createProcess(TProcessComposite currentProcess)
createProcess
in interface Call
createProcess
in class CallImpl
currentProcess
- the container for this serializerpublic void generateJavaCode(Writer file) throws java.io.IOException
generateJavaCode
in interface Call
generateJavaCode
in class CallImpl
file
- a write for printing the java cade in a file
java.io.IOException
- when an IO errors occur.
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |