fr.fluxmedia.transmorpher.graph
Class ApplyExternal
java.lang.Object
|
+--java.util.Observable
|
+--fr.fluxmedia.transmorpher.graph.CallImpl
|
+--fr.fluxmedia.transmorpher.graph.ApplyImpl
|
+--fr.fluxmedia.transmorpher.graph.ApplyExternal
- All Implemented Interfaces:
- Call, java.io.Serializable
- public class ApplyExternal
- extends ApplyImpl
This class allows to instanciate a call for an object able to apply a transformation on the SAX events flow.
<apply-external id="FormatHTML" type="xslt" in="X2" out="Z34">
<with-param name="file">../samples/biblio/xslt/form-hauth.xsl</with-param>
</apply-external>
- Since:
- jdk 1.3 / SAX 2.0
- Author:
- Jerome.Euzenat@inrialpes.fr
- See Also:
- Serialized Form
Fields inherited from class java.util.Observable |
changed, obs |
Constructor Summary |
ApplyExternal()
Creates a simple instance of ApplyExternal |
ApplyExternal(java.lang.String id,
java.lang.String type)
Creates an instance of ApplyExternal with an id and a type |
ApplyExternal(java.lang.String id,
java.lang.String type,
Process process)
Creates an instance of ApplyExternal with an id,a type and a process |
ApplyExternal(java.lang.String id,
java.lang.String type,
java.lang.String file)
Creates an instance of ApplyExternal with an id,a type and a file name |
ApplyExternal(java.lang.String id,
java.lang.String type,
java.lang.String file,
Process process)
Creates an instance of ApplyExternal with an id,a type, a file name and a process |
ApplyExternal(java.lang.String id,
java.lang.String type,
java.lang.String file,
Process process,
int in,
int out)
Creates an instance of ApplyExternal with an id,a type, a file name, a process, a number of in and a number of out |
Method Summary |
void |
createProcess(TProcessComposite currentProcess)
Creates a new TApplyProcess corresponding to this ApplyProcess instance |
void |
generateJavaCode(Writer file)
Generates a java code description of this instance |
void |
generateXML()
Prints an XML description of this instance |
void |
setFile(java.lang.String uri)
Sets the file attribute of the ApplyExternal 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 |
ApplyExternal
public ApplyExternal()
- Creates a simple instance of ApplyExternal
ApplyExternal
public ApplyExternal(java.lang.String id,
java.lang.String type)
- Creates an instance of ApplyExternal with an id and a type
- Parameters:
id
- The id of this instancetype
- The type of this instance
ApplyExternal
public ApplyExternal(java.lang.String id,
java.lang.String type,
java.lang.String file)
- Creates an instance of ApplyExternal with an id,a type and a file name
- Parameters:
id
- The id of this instancetype
- The type of this instancefile
- The file name
ApplyExternal
public ApplyExternal(java.lang.String id,
java.lang.String type,
Process process)
- Creates an instance of ApplyExternal with an id,a type and a process
- Parameters:
id
- The id of this instancetype
- The type of this instanceprocess
- The process that owns this instance
ApplyExternal
public ApplyExternal(java.lang.String id,
java.lang.String type,
java.lang.String file,
Process process)
- Creates an instance of ApplyExternal with an id,a type, a file name and a process
- Parameters:
id
- The id of this instancetype
- The type of this instancefile
- The file nameprocess
- The process that owns this instance
ApplyExternal
public ApplyExternal(java.lang.String id,
java.lang.String type,
java.lang.String file,
Process process,
int in,
int out)
- Creates an instance of ApplyExternal with an id,a type, a file name, a process, a number of in and a number of out
- Parameters:
id
- The id of this instancetype
- The type of this instancefile
- The file nameprocess
- The process that owns this instancein
- The umber of in portsout
- The number of out ports
setFile
public void setFile(java.lang.String uri)
- Sets the file attribute of the ApplyExternal object
- Parameters:
uri
- The new file value
generateXML
public void generateXML()
- Prints an XML description of this instance
- Overrides:
generateXML
in class CallImpl
createProcess
public final void createProcess(TProcessComposite currentProcess)
- Creates a new TApplyProcess corresponding to this ApplyProcess instance
- Overrides:
createProcess
in class CallImpl
- Parameters:
currentProcess
- The container of this component.
generateJavaCode
public void generateJavaCode(Writer file)
throws java.io.IOException
- Generates a java code description of this instance
- Overrides:
generateJavaCode
in class CallImpl
- Parameters:
file
- a writer used for printing the code in a file- Throws:
java.io.IOException
- when IO errors occur
..no bottom yet...