INRIA & FluxMedia

fr.fluxmedia.transmorpher.Parser
Class ProcessParser

java.lang.Object
  |
  +--org.xml.sax.HandlerBase
        |
        +--fr.fluxmedia.transmorpher.Parser.FMParser
              |
              +--fr.fluxmedia.transmorpher.Parser.ProcessParser
All Implemented Interfaces:
DocumentHandler, DTDHandler, EntityResolver, ErrorHandler

public final class ProcessParser
extends FMParser

Author : Laurent Tardif Date : 05 01 2001 Content : Define a parse for process description file. This parser us a sub parser for ruleset.


Field Summary
(package private)  String iModTagName
          The current TagElement modified
(package private)  Vector iRemAttList
           
(package private)  ReadWrite iXslFile
          The iXslFile
(package private)  TProcessFactory iXSLT_PF
          the TProcessFactory
(package private)  TProcessComposite vTemplateList
          The root for all tempalte
 
Fields inherited from class fr.fluxmedia.transmorpher.Parser.FMParser
DEFAULT_PARSER_NAME, iContext, iParser
 
Constructor Summary
ProcessParser(TProcessFactory pXSLT_PF)
          The constructor, build the XML PArser but not parse the document
 
Method Summary
protected  ParserAnswer AnalyseArg(AttributeList attrs)
          analyse the argument of processElement
static String[] AnalysePortName(String pListe)
          Analyze the port Name
protected  void Create(TProcess vCurrent, ParserAnswer iPA)
          Assign the attribute on the current element
protected  void CreateComposite(TProcessComposite vCurrent, ParserAnswer iPA)
          Assign the attribute on the current element
protected  void CreateRefComplex(ParserAnswer iPA)
          Assign the attribute on the current element
protected  void endComplexProcess()
          start the parsing of a ComplexProcess
 void endElement(String pName)
          Call by the XML parser at the end of an element
protected  void endProcessList()
          start the parsing of a ProcessList
protected  void startComplexProcess(AttributeList attrs)
          start the parsing of a ComplexProcess
 void startElement(String pName, AttributeList attrs)
          Call by the XML parser at the begining of an element
protected  void startProcessConnector(AttributeList attrs)
          start the parsing of a ProcessConnector
protected  void startProcessDispatcher(AttributeList attrs)
          NbIn = 0 NbOut = depend on document start the parsing of a ProcessDispatcher
protected  void startProcessList(AttributeList attrs)
          start the parsing of a process list
protected  void startProcessLoop(AttributeList attrs)
          Nbin : X NbOut : Y start the parsing of a ProcessReader
protected  void startProcessQuery(AttributeList attrs)
          start the parsing of a ProcessReader
protected  void startProcessReader(AttributeList attrs)
          Nbin : 0 NbOut : 0 start the parsing of a ProcessReader
protected  void startProcessRefComplex(AttributeList attrs)
          start the parsing of a ProcessSerializer
protected  void startProcessSerializer(AttributeList attrs)
          start the parsing of a ProcessSerializer
protected  void startProcessXslt(AttributeList attrs)
          start the parsing of a ProcessXslt
protected  void startRuleSet(AttributeList attrs)
          start the parsing of a RuleSet (use of)
 
Methods inherited from class fr.fluxmedia.transmorpher.Parser.FMParser
parse
 
Methods inherited from class org.xml.sax.HandlerBase
characters, endDocument, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, startDocument, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iXSLT_PF

TProcessFactory iXSLT_PF
the TProcessFactory

iModTagName

String iModTagName
The current TagElement modified

vTemplateList

TProcessComposite vTemplateList
The root for all tempalte

iXslFile

ReadWrite iXslFile
The iXslFile

iRemAttList

Vector iRemAttList
Constructor Detail

ProcessParser

public ProcessParser(TProcessFactory pXSLT_PF)
The constructor, build the XML PArser but not parse the document
Method Detail

startElement

public final void startElement(String pName,
                               AttributeList attrs)
Call by the XML parser at the begining of an element
Overrides:
startElement in class HandlerBase

endElement

public final void endElement(String pName)
Call by the XML parser at the end of an element
Overrides:
endElement in class HandlerBase

startProcessList

protected final void startProcessList(AttributeList attrs)
                               throws TransformerException,
                                      TransformerConfigurationException,
                                      SAXException,
                                      IOException
start the parsing of a process list

startComplexProcess

protected final void startComplexProcess(AttributeList attrs)
                                  throws TransformerException,
                                         TransformerConfigurationException,
                                         SAXException,
                                         IOException
start the parsing of a ComplexProcess

startProcessReader

protected final void startProcessReader(AttributeList attrs)
                                 throws SAXException,
                                        IOException
Nbin : 0 NbOut : 0 start the parsing of a ProcessReader

startProcessLoop

protected final void startProcessLoop(AttributeList attrs)
                               throws TransformerException,
                                      TransformerConfigurationException,
                                      SAXException,
                                      IOException
Nbin : X NbOut : Y start the parsing of a ProcessReader

startProcessDispatcher

protected final void startProcessDispatcher(AttributeList attrs)
NbIn = 0 NbOut = depend on document start the parsing of a ProcessDispatcher

startProcessXslt

protected final void startProcessXslt(AttributeList attrs)
                               throws TransformerException,
                                      TransformerConfigurationException,
                                      SAXException,
                                      IOException
start the parsing of a ProcessXslt

startProcessQuery

protected final void startProcessQuery(AttributeList attrs)
                                throws TransformerException,
                                       TransformerConfigurationException,
                                       SAXException,
                                       IOException
start the parsing of a ProcessReader

startRuleSet

protected final void startRuleSet(AttributeList attrs)
                           throws TransformerException,
                                  TransformerConfigurationException,
                                  SAXException,
                                  IOException
start the parsing of a RuleSet (use of)

startProcessConnector

protected final void startProcessConnector(AttributeList attrs)
start the parsing of a ProcessConnector

startProcessSerializer

protected final void startProcessSerializer(AttributeList attrs)
                                     throws SAXException,
                                            IOException
start the parsing of a ProcessSerializer

startProcessRefComplex

protected final void startProcessRefComplex(AttributeList attrs)
                                     throws SAXException,
                                            IOException
start the parsing of a ProcessSerializer

endComplexProcess

protected final void endComplexProcess()
                                throws SAXException,
                                       IOException
start the parsing of a ComplexProcess

endProcessList

protected final void endProcessList()
                             throws SAXException,
                                    IOException
start the parsing of a ProcessList

AnalysePortName

public static final String[] AnalysePortName(String pListe)
Analyze the port Name

AnalyseArg

protected final ParserAnswer AnalyseArg(AttributeList attrs)
analyse the argument of processElement

Create

protected final void Create(TProcess vCurrent,
                            ParserAnswer iPA)
Assign the attribute on the current element

CreateComposite

protected final void CreateComposite(TProcessComposite vCurrent,
                                     ParserAnswer iPA)
Assign the attribute on the current element

CreateRefComplex

protected final void CreateRefComplex(ParserAnswer iPA)
Assign the attribute on the current element

INRIA & FluxMedia

...