INRIA & FluxMedia

fr.fluxmedia.transmorpher.graph
Class ApplyExternal

java.lang.Object
  extended by java.util.Observable
      extended by fr.fluxmedia.transmorpher.graph.CallImpl
          extended by fr.fluxmedia.transmorpher.graph.ApplyImpl
              extended by 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

Field Summary
 
Fields inherited from class fr.fluxmedia.transmorpher.graph.CallImpl
attributes, id, inPorts, nullified, outPorts, parameters, process, visited
 
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.ApplyImpl
getRef, retroNull, setRef
 
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

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 instance
type - 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 instance
type - The type of this instance
file - 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 instance
type - The type of this instance
process - 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 instance
type - The type of this instance
file - The file name
process - 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 instance
type - The type of this instance
file - The file name
process - The process that owns this instance
in - The umber of in ports
out - The number of out ports
Method Detail

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

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

createProcess

public final void createProcess(TProcessComposite currentProcess)
Creates a new TApplyProcess corresponding to this ApplyProcess instance

Specified by:
createProcess in interface Call
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

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

INRIA & FluxMedia

..no bottom yet...