fr.fluxmedia.transmorpher.graph
Class Query
java.lang.Object
|
+--java.util.Observable
|
+--fr.fluxmedia.transmorpher.graph.TransformationImpl
|
+--fr.fluxmedia.transmorpher.graph.Query
- All Implemented Interfaces:
- Namespaced, Transformation
- public class Query
- extends TransformationImpl
- implements Namespaced
Transmorpher graph query definitions
- Since:
- jdk 1.3 / SAX 2.0
- Author:
- Jerome.Euzenat@inrialpes.fr
Field Summary |
protected java.util.ArrayList |
namespaces
List of namespaces |
protected java.lang.String |
root
the root value |
protected java.util.ArrayList |
selects
List of selection |
Fields inherited from class java.util.Observable |
changed, obs |
Constructor Summary |
Query(java.lang.String name,
Transmorpher owner,
java.lang.String root)
Constructor for the Query object |
Methods inherited from class fr.fluxmedia.transmorpher.graph.TransformationImpl |
addIn, addIn, addOut, addOut, getAttributes, getName, getParameters, getTransmorpher, getType, inPorts, outPorts, retroNull, setName, setParameters, setType, 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, toString, wait, wait, wait |
selects
protected java.util.ArrayList selects
- List of selection
namespaces
protected java.util.ArrayList namespaces
- List of namespaces
root
protected java.lang.String root
- the root value
Query
public Query(java.lang.String name,
Transmorpher owner,
java.lang.String root)
- Constructor for the Query object
- Parameters:
name
- The name of the Query instanceowner
- The Transmorpher instance that owns this Query instanceroot
- Description of the Parameter
addNamespace
public void addNamespace(Namespace name)
- Adds a namespace to this Query instance
- Specified by:
addNamespace
in interface Namespaced
- Parameters:
name
- The namespace to add
addSelection
public void addSelection(Select selection)
- Adds a selection to this Query instance
- Parameters:
selection
- The selection to Add
insertSelection
public void insertSelection(Select selection,
int index)
- Adds a selection at the specified index to this Query instance
- Parameters:
selection
- The selection to Addindex
- index in the list
generateXML
public void generateXML()
- Prints the XML expression of the process
- Overrides:
generateXML
in class TransformationImpl
generateXMLinFile
public void generateXMLinFile(Writer file)
- Prints the XML expression of the process
- Parameters:
file
- Description of the Parameter
generateJavaCode
public void generateJavaCode(Writer file,
LinearIndexedStruct externs)
- Prints the Java code for the execution of this Query instance
- Overrides:
generateJavaCode
in class TransformationImpl
- Parameters:
file
- The writer used for printing in a fileexterns
- Description of the Parameter
generateXSLTStylesheet
public void generateXSLTStylesheet(java.lang.String reloc)
throws java.io.IOException
- generate the stylesheet for the Query (in the correct file)
- Parameters:
reloc
- The path where the stylesheet have to be put- Throws:
java.io.IOException
- When IO errors occur
generateXSLTCode
public void generateXSLTCode(Writer file)
throws java.io.IOException
- Prints the xsl for the execution of this Query instance
- Parameters:
file
- The writer used for printing in a file
..no bottom yet...