INRIA & FluxMedia

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 fr.fluxmedia.transmorpher.graph.TransformationImpl
attributes, inPorts, name, outPorts, parameters, transmorpher, type
 
Fields inherited from class java.util.Observable
changed, obs
 
Constructor Summary
Ruleset(java.lang.String name, Transmorpher owner)
          Constructor for the Ruleset object
 
Method Summary
 void addNamespace(Namespace n)
          Adds a namespace to this Query instance
 void addRule(Rule r)
          Adds a rule to this Ruleset instance
 void generateJavaCode(Writer file, LinearIndexedStruct externs)
          Prints the Java code for the execution of the call
 void generateXML()
          Prints the XML expression of the process
 void generateXSLTCode(Writer file)
          Prints the xsl for the execution of this Ruleset instance
 void generateXSLTStylesheet(java.lang.String reloc)
          generate the stylesheet for the Ruleset (in the correct file)
 void insertRule(Rule rule, int index)
          Adds a rule at the specified index to this Ruleset instance
 
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
 

Field Detail

rules

protected java.util.ArrayList rules
a list for the rules

namespaces

protected java.util.ArrayList namespaces
List of namespaces
Constructor Detail

Ruleset

public Ruleset(java.lang.String name,
               Transmorpher owner)
Constructor for the Ruleset object
Parameters:
name - The name of the Ruleset instance to create
owner - The Transmorpher instance that owns this Ruleset instance
Method Detail

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 Add
index - 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 Parameter
externs - 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 occur
java.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 Exception
java.io.IOException - Description of the Exception

INRIA & FluxMedia

..no bottom yet...