INRIA & FluxMedia

fr.fluxmedia.transmorpher.parser
Class RuleSetParser

java.lang.Object
  |
  +--org.xml.sax.helpers.DefaultHandler
        |
        +--fr.fluxmedia.transmorpher.parser.FMParser
              |
              +--fr.fluxmedia.transmorpher.parser.RuleSetParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class RuleSetParser
extends FMParser


Field Summary
private  Call currentCall
           
private  java.lang.String currentParam
           
private  Parameters currentParams
           
private  fr.fluxmedia.transmorpher.graph.Rules.ModTag currentRule
           
private  Transformation currentTransformation
           
private  Transmorpher currentTransmorpher
           
private  java.lang.String currentWParam
           
(package private)  ProcessParser iMainParser
           
(package private)  boolean inLitteralXSLT
          Are we copying some XSLT
private  fr.fluxmedia.transmorpher.graph.Rules.Rule rule
           
private  java.lang.String uri
           
 
Fields inherited from class fr.fluxmedia.transmorpher.parser.FMParser
debugMode, iContext, iParser, output
 
Constructor Summary
RuleSetParser(int debug_mode, ProcessParser pMainParser)
          The constructor, build the XML PArser but not parse the document
 
Method Summary
static java.lang.String[] AnalysePortNames(java.lang.String pListe)
          Analyze the port Name attributes
 void characters(char[] ch, int start, int length)
           
private  void cleanStack()
          Reset the parameters as they were after taking care of a Call
 void endElement(java.lang.String namespaceURI, java.lang.String pName, java.lang.String qName)
          Call by the XML parser at the end of an element
 java.lang.String listAttribute(org.xml.sax.Attributes atts)
          Returns a XML-attribute string from the result of such a string
 void setTransmorpher(Transmorpher pCurrentTransmorpher)
           
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qname, org.xml.sax.Attributes atts)
          Call by the XML parser at the begining of an element
 
Methods inherited from class fr.fluxmedia.transmorpher.parser.FMParser
error, fatalError, Newparse, warning
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

uri

private java.lang.String uri

currentTransmorpher

private Transmorpher currentTransmorpher

currentTransformation

private Transformation currentTransformation

currentCall

private Call currentCall

currentRule

private fr.fluxmedia.transmorpher.graph.Rules.ModTag currentRule

rule

private fr.fluxmedia.transmorpher.graph.Rules.Rule rule

currentParam

private java.lang.String currentParam

currentWParam

private java.lang.String currentWParam

currentParams

private Parameters currentParams

inLitteralXSLT

boolean inLitteralXSLT
Are we copying some XSLT

iMainParser

ProcessParser iMainParser
Constructor Detail

RuleSetParser

public RuleSetParser(int debug_mode,
                     ProcessParser pMainParser)
              throws javax.xml.parsers.ParserConfigurationException,
                     org.xml.sax.SAXException
The constructor, build the XML PArser but not parse the document
Method Detail

setTransmorpher

public void setTransmorpher(Transmorpher pCurrentTransmorpher)

startElement

public final void startElement(java.lang.String namespaceURI,
                               java.lang.String localName,
                               java.lang.String qname,
                               org.xml.sax.Attributes atts)
Call by the XML parser at the begining of an element
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler

characters

public void characters(char[] ch,
                       int start,
                       int length)
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler

endElement

public final void endElement(java.lang.String namespaceURI,
                             java.lang.String pName,
                             java.lang.String qName)
Call by the XML parser at the end of an element
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler

AnalysePortNames

public static final java.lang.String[] AnalysePortNames(java.lang.String pListe)
Analyze the port Name attributes

cleanStack

private void cleanStack()
Reset the parameters as they were after taking care of a Call

listAttribute

public final java.lang.String listAttribute(org.xml.sax.Attributes atts)
Returns a XML-attribute string from the result of such a string

INRIA & FluxMedia

..no bottom yet...