fr.paris.lutece.plugins.comarquage.util.parsers
Class CoMarquageLocalParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by fr.paris.lutece.plugins.comarquage.util.parsers.CoMarquageLocalParser
All Implemented Interfaces:
org.xml.sax.ContentHandler, org.xml.sax.DTDHandler, org.xml.sax.EntityResolver, org.xml.sax.ErrorHandler

public class CoMarquageLocalParser
extends org.xml.sax.helpers.DefaultHandler

Parser for local cards (comarquage)


Constructor Summary
CoMarquageLocalParser()
          Initializes and launches the parsing of the local cards (public constructor)
 
Method Summary
 void characters(char[] ch, int start, int length)
          Event received when the analyzer encounters text (between two tags)
 void endDocument()
          Event received at the end of the parsing operation
 void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)
          Event received at the end of an element
 java.util.List<org.apache.lucene.document.Document> getLocalDocuments()
          Gets the list of lucene documents
 void startDocument()
          Event received when starting the parsing operation
 void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          Event received at the start of an element
 
Methods inherited from class org.xml.sax.helpers.DefaultHandler
endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startPrefixMapping, unparsedEntityDecl, warning
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CoMarquageLocalParser

public CoMarquageLocalParser()
Initializes and launches the parsing of the local cards (public constructor)

Method Detail

startDocument

public void startDocument()
                   throws org.xml.sax.SAXException
Event received when starting the parsing operation

Specified by:
startDocument in interface org.xml.sax.ContentHandler
Overrides:
startDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException - any SAX exception

endDocument

public void endDocument()
                 throws org.xml.sax.SAXException
Event received at the end of the parsing operation

Specified by:
endDocument in interface org.xml.sax.ContentHandler
Overrides:
endDocument in class org.xml.sax.helpers.DefaultHandler
Throws:
org.xml.sax.SAXException - any SAX exception

startElement

public void startElement(java.lang.String uri,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
                  throws org.xml.sax.SAXException
Event received at the start of an element

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - the Namespace URI
localName - the local name
qName - the qualified XML name
atts - the attributes attached to the element
Throws:
org.xml.sax.SAXException - any SAX exception

endElement

public void endElement(java.lang.String uri,
                       java.lang.String localName,
                       java.lang.String qName)
                throws org.xml.sax.SAXException
Event received at the end of an element

Specified by:
endElement in interface org.xml.sax.ContentHandler
Overrides:
endElement in class org.xml.sax.helpers.DefaultHandler
Parameters:
uri - the Namespace URI
localName - the local name
qName - the qualified XML name
Throws:
org.xml.sax.SAXException - any SAX exception

characters

public void characters(char[] ch,
                       int start,
                       int length)
                throws org.xml.sax.SAXException
Event received when the analyzer encounters text (between two tags)

Specified by:
characters in interface org.xml.sax.ContentHandler
Overrides:
characters in class org.xml.sax.helpers.DefaultHandler
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

getLocalDocuments

public java.util.List<org.apache.lucene.document.Document> getLocalDocuments()
Gets the list of lucene documents

Returns:
The list of lucene documents


Copyright © 2008 Mairie de Paris. All Rights Reserved.