INRIA & FluxMedia

fr.fluxmedia.transmorpher.engine
Class LoopManagerHandler

java.lang.Object
  |
  +--fr.fluxmedia.transmorpher.engine.LoopManagerHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler

final class LoopManagerHandler
extends java.lang.Object
implements org.xml.sax.ContentHandler

This is the controller handler for a TLoop process

Author:
fabien.triolet@inrialpes.fr

Field Summary
(package private)  BufferingHandler buffer
          a buffer for the output of inner process of the loop
(package private)  TLoop iOwner
          the owner
(package private)  LoopHandler loopHandler
          the loop handler to manage
(package private)  int nbLoop
          number of loop
 
Constructor Summary
LoopManagerHandler(TLoop loop)
          Constructs a new LoopManagerHandler and sets its owner *
 
Method Summary
 void characters(char[] ch, int start, int length)
          The characters command
 void endDocument()
          The endDocument command
 void endElement(java.lang.String ns, java.lang.String localName, java.lang.String name)
          The endElement command
 void endPrefixMapping(java.lang.String prefix)
          The endPrefixMapping command
 void ignorableWhitespace(char[] ch, int start, int length)
          The ignorableWhitespace command
 void processingInstruction(java.lang.String target, java.lang.String data)
          The processingInstruction command
 void setDocumentLocator(org.xml.sax.Locator locator)
          The setDocumentLocator command
(package private)  void setOwner(TLoop loop)
          Sets owner of this LoopManagerHandler
(package private)  void setTestHandler()
          Changes loop handler to test handler.
 void skippedEntity(java.lang.String name)
          The skippedEntity command
 void startDocument()
          The startDocument command
 void startElement(java.lang.String ns, java.lang.String localName, java.lang.String name, org.xml.sax.Attributes atts)
          The startElement command
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          The startPrefixMapping command
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

iOwner

TLoop iOwner
the owner

loopHandler

LoopHandler loopHandler
the loop handler to manage

buffer

BufferingHandler buffer
a buffer for the output of inner process of the loop

nbLoop

int nbLoop
number of loop
Constructor Detail

LoopManagerHandler

public LoopManagerHandler(TLoop loop)
Constructs a new LoopManagerHandler and sets its owner *
Parameters:
loop - - owner
Method Detail

setTestHandler

void setTestHandler()
Changes loop handler to test handler.

setOwner

void setOwner(TLoop loop)
Sets owner of this LoopManagerHandler
Parameters:
loop - - owner

startElement

public final void startElement(java.lang.String ns,
                               java.lang.String localName,
                               java.lang.String name,
                               org.xml.sax.Attributes atts)
                        throws org.xml.sax.SAXException
The startElement command
Specified by:
startElement in interface org.xml.sax.ContentHandler
Parameters:
ns - The Namespace URI.
localName - The local name without prefix.
name - The local name with prefix.
atts - The attributes attached to the element.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

endElement

public final void endElement(java.lang.String ns,
                             java.lang.String localName,
                             java.lang.String name)
                      throws org.xml.sax.SAXException
The endElement command
Specified by:
endElement in interface org.xml.sax.ContentHandler
Parameters:
ns - The Namespace URI.
localName - The local name without prefix.
name - The local name with prefix.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

startDocument

public final void startDocument()
                         throws org.xml.sax.SAXException
The startDocument command
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

setDocumentLocator

public final void setDocumentLocator(org.xml.sax.Locator locator)
The setDocumentLocator command
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
Parameters:
locator - An object that can return the location of any SAX document event.

endDocument

public final void endDocument()
                       throws org.xml.sax.SAXException
The endDocument command
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

skippedEntity

public final void skippedEntity(java.lang.String name)
                         throws org.xml.sax.SAXException
The skippedEntity command
Specified by:
skippedEntity in interface org.xml.sax.ContentHandler
Parameters:
name - The name of the skipped entity. If it is a parameter entity, the name will begin with '%', and if it is the external DTD subset, it will be the string "[dtd]".
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

processingInstruction

public final void processingInstruction(java.lang.String target,
                                        java.lang.String data)
                                 throws org.xml.sax.SAXException
The processingInstruction command
Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Parameters:
target - The processing instruction target.
data - The processing instruction data, or null if none was supplied. The data does not include any whitespace separating it from the target.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

ignorableWhitespace

public final void ignorableWhitespace(char[] ch,
                                      int start,
                                      int length)
                               throws org.xml.sax.SAXException
The ignorableWhitespace command
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Parameters:
ch - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

characters

public final void characters(char[] ch,
                             int start,
                             int length)
                      throws org.xml.sax.SAXException
The characters command
Specified by:
characters in interface org.xml.sax.ContentHandler
Parameters:
ch - The characters from the XML document.
start - The start position in the array.
length - The number of characters to read from the array.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

startPrefixMapping

public final void startPrefixMapping(java.lang.String prefix,
                                     java.lang.String uri)
                              throws org.xml.sax.SAXException
The startPrefixMapping command
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Parameters:
prefix - The prefix that was being mapping.
uri - The Namespace URI the prefix is mapped to.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

endPrefixMapping

public final void endPrefixMapping(java.lang.String prefix)
                            throws org.xml.sax.SAXException
The endPrefixMapping command
Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Parameters:
prefix - The prefix that was being mapping.
Throws:
org.xml.sax.SAXException - Any SAX exception, possibly wrapping another exception.

INRIA & FluxMedia

..no bottom yet...