fr.fluxmedia.transmorpher.Parser
Class ProcessParser
java.lang.Object
|
+--org.xml.sax.helpers.DefaultHandler
|
+--fr.fluxmedia.transmorpher.Parser.FMParser
|
+--fr.fluxmedia.transmorpher.Parser.ProcessParser
- All Implemented Interfaces:
- ContentHandler, DTDHandler, EntityResolver, ErrorHandler
- public final class ProcessParser
- extends FMParser
Constructor Summary |
ProcessParser(int debug_mode)
The constructor, build the XML PArser but not parse the document |
Method Summary |
static String[] |
AnalysePortNames(String pListe)
Analyze the port Name attributes |
void |
characters(char[] ch,
int start,
int length)
|
void |
checkChannels(Process t)
|
private void |
cleanStack()
Reset the parameters as they were after taking care of a Call |
void |
endElement(String namespaceURI,
String pName,
String qName)
Call by the XML parser at the end of an element |
private void |
fixInBuf(Repeat r,
PortList list,
String[] portNames,
int expected)
|
private void |
fixInPorts(Call c,
PortList list,
String[] portNames,
int expected,
String type)
|
private void |
fixInPorts(Transformation t,
PortList list,
String[] portNames)
|
private void |
fixOutBuf(Repeat r,
PortList list,
String[] portNames,
int expected)
|
private void |
fixOutPorts(Call c,
PortList list,
String[] portNames,
int expected,
String type)
|
private void |
fixOutPorts(Transformation t,
PortList list,
String[] portNames)
|
private void |
fixTests(Repeat r,
PortList list,
String[] portNames)
|
String |
listAttribute(Attributes atts)
Returns a XML-attribute string from the result of such a string |
Transmorpher |
Newparse(String u)
Parse the document given in parameter: Same this as FMParser but with Transmorpher |
void |
registerChannelIn(PortList list,
boolean Callp)
Register a channel with its input |
void |
registerChannelOut(PortList list,
boolean Callp)
Register a channel with its output |
void |
setEndQuery()
|
void |
setEndRuleSet()
|
void |
startElement(String namespaceURI,
String localName,
String qname,
Attributes atts)
Call by the XML parser at the begining of an element |
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 |
uri
private String uri
currentTransmorpher
private Transmorpher currentTransmorpher
currentTransformation
private Transformation currentTransformation
currentCall
private Call currentCall
currentRule
private ModTag currentRule
rule
private Rule rule
currentParam
private String currentParam
currentWParam
private String currentWParam
currentIterator
private Iterator currentIterator
currentParams
private Parameters currentParams
myRuleSetParser
RuleSetParser myRuleSetParser
myQueryParser
QueryParser myQueryParser
inLitteralXSLT
boolean inLitteralXSLT
- Are we copying some XSLT
inRuleSet
boolean inRuleSet
inQuery
boolean inQuery
ProcessParser
public ProcessParser(int debug_mode)
- The constructor, build the XML PArser but not parse the document
Newparse
public final Transmorpher Newparse(String u)
- Parse the document given in parameter: Same this as FMParser but with Transmorpher
- Overrides:
Newparse
in class FMParser
startElement
public final void startElement(String namespaceURI,
String localName,
String qname,
Attributes atts)
- Call by the XML parser at the begining of an element
- Overrides:
startElement
in class DefaultHandler
characters
public void characters(char[] ch,
int start,
int length)
- Overrides:
characters
in class DefaultHandler
setEndRuleSet
public void setEndRuleSet()
setEndQuery
public void setEndQuery()
endElement
public final void endElement(String namespaceURI,
String pName,
String qName)
- Call by the XML parser at the end of an element
- Overrides:
endElement
in class DefaultHandler
fixInPorts
private void fixInPorts(Transformation t,
PortList list,
String[] portNames)
fixOutPorts
private void fixOutPorts(Transformation t,
PortList list,
String[] portNames)
fixTests
private void fixTests(Repeat r,
PortList list,
String[] portNames)
fixInBuf
private void fixInBuf(Repeat r,
PortList list,
String[] portNames,
int expected)
fixOutBuf
private void fixOutBuf(Repeat r,
PortList list,
String[] portNames,
int expected)
fixInPorts
private void fixInPorts(Call c,
PortList list,
String[] portNames,
int expected,
String type)
fixOutPorts
private void fixOutPorts(Call c,
PortList list,
String[] portNames,
int expected,
String type)
checkChannels
public void checkChannels(Process t)
registerChannelIn
public void registerChannelIn(PortList list,
boolean Callp)
- Register a channel with its input
registerChannelOut
public void registerChannelOut(PortList list,
boolean Callp)
- Register a channel with its output
AnalysePortNames
public static final String[] AnalysePortNames(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 String listAttribute(Attributes atts)
- Returns a XML-attribute string from the result of such a string
..no bottom yet...