fr.fluxmedia.transmorpher.graph
Class Ruleset
java.lang.Object
|
+--java.util.Observable
|
+--fr.fluxmedia.transmorpher.graph.TransformationImpl
|
+--fr.fluxmedia.transmorpher.graph.Ruleset
- All Implemented Interfaces:
- Namespaced, Transformation
- public class Ruleset
- extends TransformationImpl
- implements Namespaced
Transmorpher graph ruleset 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.util.ArrayList |
rules
a list for the rules |
Fields inherited from class java.util.Observable |
changed, obs |
Constructor Summary |
Ruleset(java.lang.String name,
Transmorpher owner)
Constructor for the Ruleset 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 |
rules
protected java.util.ArrayList rules
- a list for the rules
namespaces
protected java.util.ArrayList namespaces
- List of namespaces
Ruleset
public Ruleset(java.lang.String name,
Transmorpher owner)
- Constructor for the Ruleset object
- Parameters:
name
- The name of the Ruleset instance to createowner
- The Transmorpher instance that owns this Ruleset instance
addRule
public void addRule(Rule r)
- Adds a rule to this Ruleset instance
- Parameters:
rule
- The rule to add
addNamespace
public void addNamespace(Namespace n)
- Adds a namespace to this Query instance
- Specified by:
addNamespace
in interface Namespaced
- Parameters:
name
- The namespace to add
insertRule
public void insertRule(Rule rule,
int index)
- Adds a rule at the specified index to this Ruleset instance
- Parameters:
rule
- The rule to Addindex
- index in the list
generateXML
public void generateXML()
- Prints the XML expression of the process
- Overrides:
generateXML
in class TransformationImpl
generateJavaCode
public void generateJavaCode(Writer file,
LinearIndexedStruct externs)
- Prints the Java code for the execution of the call
- Overrides:
generateJavaCode
in class TransformationImpl
- Parameters:
file
- Description of the Parameterexterns
- Description of the Parameter
generateXSLTStylesheet
public void generateXSLTStylesheet(java.lang.String reloc)
throws TMException,
java.io.IOException
- generate the stylesheet for the Ruleset (in the correct file)
- Parameters:
reloc
- The path where the stylesheet have to be put- Throws:
java.io.IOException
- When IO errors occurjava.io.IOException
- Description of the Exception
generateXSLTCode
public void generateXSLTCode(Writer file)
throws TMException,
java.io.IOException
- Prints the xsl for the execution of this Ruleset instance
- Parameters:
file
- The writer used for printing in a file- Throws:
TMException
- Description of the Exceptionjava.io.IOException
- Description of the Exception
..no bottom yet...