|
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.Generate
public class Generate
This class allows to instanciate a call for an object able to produce SAX events. There is two ways to create a Generate object :
<generate type="readfile" id="bibexmo" out="R1">
<with-param name="file">../samples/biblio/input/bibexmo.xml</with-param>
</generate>
Field Summary |
---|
Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl |
---|
attributes, id, inPorts, nullified, outPorts, parameters, process, visited |
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, wait, wait, wait |
Constructor Detail |
---|
public Generate()
public Generate(java.lang.String id, java.lang.String type)
id
- The idtype
- The typepublic Generate(java.lang.String id, java.lang.String type, java.lang.String file)
id
- The idtype
- The typefile
- the file namepublic Generate(java.lang.String id, java.lang.String type, Process process)
id
- The idtype
- The typeprocess
- the processpublic Generate(java.lang.String id, java.lang.String type, java.lang.String file, Process process)
id
- The idtype
- The typefile
- The file nameprocess
- the processpublic Generate(java.lang.String id, java.lang.String type, Process process, int out)
id
- The idtype
- The typeprocess
- The processout
- The number of outpublic Generate(java.lang.String id, java.lang.String type, Process process, int out, java.lang.String file)
id
- The idtype
- The typeprocess
- The processout
- The number of outfile
- The file nameMethod 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 java.lang.String getFile()
public 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
- Description of the Parameter
java.io.IOException
- Description of the Exception
|
INRIA & FluxMedia | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |