fr.paris.lutece.plugins.dila.modules.solr.utils.parsers
Class DilaSolrPublicParser

java.lang.Object
  extended by org.xml.sax.helpers.DefaultHandler
      extended by fr.paris.lutece.plugins.dila.modules.solr.utils.parsers.DilaSolrPublicParser
All Implemented Interfaces:
ContentHandler, DTDHandler, EntityResolver, ErrorHandler

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

Parser for public cards (dila)


Constructor Summary
DilaSolrPublicParser()
          Initializes and launches the parsing of the public 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(String uri, String localName, String qName)
          Event received at the end of an element
 List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> getPublicSolrItems()
          Gets the list of Solr items
 void startDocument()
          Event received when starting the parsing operation
 void startElement(String uri, String localName, String qName, 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

DilaSolrPublicParser

public DilaSolrPublicParser()
Initializes and launches the parsing of the public cards (public constructor)

Method Detail

startDocument

public void startDocument()
                   throws SAXException
Event received when starting the parsing operation

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

endDocument

public void endDocument()
                 throws SAXException
Event received at the end of the parsing operation

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

startElement

public void startElement(String uri,
                         String localName,
                         String qName,
                         Attributes atts)
                  throws SAXException
Event received at the start of an element

Specified by:
startElement in interface 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:
SAXException - any SAX exception

endElement

public void endElement(String uri,
                       String localName,
                       String qName)
                throws SAXException
Event received at the end of an element

Specified by:
endElement in interface 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:
SAXException - any SAX exception

characters

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

Specified by:
characters in interface 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:
SAXException - any SAX exception

getPublicSolrItems

public List<fr.paris.lutece.plugins.search.solr.indexer.SolrItem> getPublicSolrItems()
Gets the list of Solr items

Returns:
The list of Solr items


Copyright © 2014 Mairie de Paris. All Rights Reserved.