INRIA & FluxMedia

fr.fluxmedia.transmorpher.Parser
Class ProcessParser

fr.fluxmedia.transmorpher.Parser.FMParser
  |
  +--fr.fluxmedia.transmorpher.Parser.ProcessParser

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)  boolean inLitteralXSLT
          Are we copying some XSLT
(package private)  Vector iRemAttList
           
(package private)  ReadWrite iXslFile
          The iXslFile
(package private)  TProcessFactory iXSLT_PF
          the TProcessFactory
(package private)  ReadWrite servletFile
          The servlet file
(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(Attributes attrs)
          analyse the argument of processElement
static String[] AnalysePortName(String pListe)
          Analyze the port Name
 void characters(char[] ch, int start, int length)
           
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()
          end the parsing of a ComplexProcess
 void endElement(String namespaceURI, String pName, String qName)
          Call by the XML parser at the end of an element
protected  void endProcessList()
          start the parsing of a ProcessList
 String listAttribute(Attributes atts)
           
protected  void startComplexProcess(Attributes attrs)
          start the parsing of a ComplexProcess
 void startElement(String namespaceURI, String localName, String qname, Attributes atts)
          Call by the XML parser at the begining of an element
protected  void startProcessConnector(Attributes attrs)
          start the parsing of a ProcessConnector
protected  void startProcessDispatcher(Attributes attrs)
          NbIn = 0 NbOut = depend on document start the parsing of a ProcessDispatcher
protected  void startProcessList(Attributes attrs)
          start the parsing of a process list
protected  void startProcessLoop(Attributes attrs)
          Nbin : X NbOut : Y start the parsing of a ProcessReader
protected  void startProcessQuery(Attributes attrs)
          start the parsing of a ProcessReader
protected  void startProcessReader(Attributes attrs)
          Nbin : 0 NbOut : 0 start the parsing of a ProcessReader
protected  void startProcessRefComplex(Attributes attrs)
          start the parsing of a ProcessSerializer
protected  void startProcessSerializer(Attributes attrs)
          start the parsing of a ProcessSerializer
protected  void startProcessXslt(Attributes attrs)
          start the parsing of a ProcessXslt
protected  void startRuleSet(Attributes attrs)
          start the parsing of a RuleSet (use of)
protected  void startServlet(Attributes attrs)
          start the creation of a servlet
 
Methods inherited from class fr.fluxmedia.transmorpher.Parser.FMParser
error, fatalError, parse, warning
 

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

servletFile

ReadWrite servletFile
The servlet file

inLitteralXSLT

boolean inLitteralXSLT
Are we copying some XSLT

iRemAttList

Vector iRemAttList
Constructor Detail

ProcessParser

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

listAttribute

public final String listAttribute(Attributes atts)

startElement

public final void startElement(String namespaceURI,
                               String localName,
                               String qname,
                               Attributes atts)
Call by the XML parser at the begining of an element

characters

public void characters(char[] ch,
                       int start,
                       int length)

endElement

public final void endElement(String namespaceURI,
                             String pName,
                             String qName)
Call by the XML parser at the end of an element

startProcessList

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

startServlet

protected final void startServlet(Attributes attrs)
                           throws TransformerException,
                                  IOException,
                                  SAXException
start the creation of a servlet

startComplexProcess

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

startProcessReader

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

startProcessLoop

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

startProcessDispatcher

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

startProcessXslt

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

startProcessQuery

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

startRuleSet

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

startProcessConnector

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

startProcessSerializer

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

startProcessRefComplex

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

endComplexProcess

protected final void endComplexProcess()
                                throws SAXException,
                                       IOException
end 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(Attributes 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

...