org.apache.cocoon.components.search
Class LuceneIndexContentHandler

java.lang.Object
  |
  +--org.apache.cocoon.components.search.LuceneIndexContentHandler
All Implemented Interfaces:
org.xml.sax.ContentHandler

public class LuceneIndexContentHandler
extends java.lang.Object
implements org.xml.sax.ContentHandler

Parse XML and generate lucene document(s)

Version:
CVS $Id: LuceneIndexContentHandler.java,v 1.5 2002/02/22 07:00:12 cziegeler Exp $
Author:
Bernhard Huber

Field Summary
static java.lang.String LUCENE_ATTR_TO_TEXT_ATTRIBUTE
          If this attribute is specified on element, values of all attributes if this element added to the text of the element, and to the document body text
static java.lang.String LUCENE_URI
           
 
Constructor Summary
LuceneIndexContentHandler()
          Constructor for the LuceneIndexContentHandler object
 
Method Summary
 java.util.List allDocuments()
          Description of the Method
 void characters(char[] ch, int start, int length)
          Description of the Method
 void endDocument()
          Description of the Method
 void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName)
          Description of the Method
 void endPrefixMapping(java.lang.String prefix)
          Description of the Method
 void ignorableWhitespace(char[] ch, int start, int length)
          Description of the Method
 java.util.Iterator iterator()
          Description of the Method
 void processingInstruction(java.lang.String target, java.lang.String data)
          Description of the Method
 void setDocumentLocator(org.xml.sax.Locator locator)
          Sets the documentLocator attribute of the LuceneIndexContentHandler object
 void skippedEntity(java.lang.String name)
          Description of the Method
 void startDocument()
          Description of the Method
 void startElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)
          Description of the Method
 void startPrefixMapping(java.lang.String prefix, java.lang.String uri)
          Description of the Method
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

LUCENE_URI

public static final java.lang.String LUCENE_URI

LUCENE_ATTR_TO_TEXT_ATTRIBUTE

public static final java.lang.String LUCENE_ATTR_TO_TEXT_ATTRIBUTE
If this attribute is specified on element, values of all attributes if this element added to the text of the element, and to the document body text
Constructor Detail

LuceneIndexContentHandler

public LuceneIndexContentHandler()
Constructor for the LuceneIndexContentHandler object
Since:
 
Method Detail

setDocumentLocator

public void setDocumentLocator(org.xml.sax.Locator locator)
Sets the documentLocator attribute of the LuceneIndexContentHandler object
Specified by:
setDocumentLocator in interface org.xml.sax.ContentHandler
Parameters:
locator - The new documentLocator value
Since:
 

allDocuments

public java.util.List allDocuments()
Description of the Method
Returns:
Description of the Returned Value
Since:
 

iterator

public java.util.Iterator iterator()
Description of the Method
Returns:
Description of the Returned Value
Since:
 

characters

public void characters(char[] ch,
                       int start,
                       int length)
Description of the Method
Specified by:
characters in interface org.xml.sax.ContentHandler
Parameters:
ch - Description of Parameter
start - Description of Parameter
length - Description of Parameter
Since:
 

endDocument

public void endDocument()
Description of the Method
Specified by:
endDocument in interface org.xml.sax.ContentHandler
Since:
 

endElement

public void endElement(java.lang.String namespaceURI,
                       java.lang.String localName,
                       java.lang.String qName)
Description of the Method
Specified by:
endElement in interface org.xml.sax.ContentHandler
Parameters:
namespaceURI - Description of Parameter
localName - Description of Parameter
qName - Description of Parameter
Since:
 

endPrefixMapping

public void endPrefixMapping(java.lang.String prefix)
Description of the Method
Specified by:
endPrefixMapping in interface org.xml.sax.ContentHandler
Parameters:
prefix - Description of Parameter
Since:
 

ignorableWhitespace

public void ignorableWhitespace(char[] ch,
                                int start,
                                int length)
Description of the Method
Specified by:
ignorableWhitespace in interface org.xml.sax.ContentHandler
Parameters:
ch - Description of Parameter
start - Description of Parameter
length - Description of Parameter
Since:
 

processingInstruction

public void processingInstruction(java.lang.String target,
                                  java.lang.String data)
Description of the Method
Specified by:
processingInstruction in interface org.xml.sax.ContentHandler
Parameters:
target - Description of Parameter
data - Description of Parameter
Since:
 

skippedEntity

public void skippedEntity(java.lang.String name)
Description of the Method
Specified by:
skippedEntity in interface org.xml.sax.ContentHandler
Parameters:
name - Description of Parameter
Since:
 

startDocument

public void startDocument()
Description of the Method
Specified by:
startDocument in interface org.xml.sax.ContentHandler
Since:
 

startElement

public void startElement(java.lang.String namespaceURI,
                         java.lang.String localName,
                         java.lang.String qName,
                         org.xml.sax.Attributes atts)
Description of the Method
Specified by:
startElement in interface org.xml.sax.ContentHandler
Parameters:
namespaceURI - Description of Parameter
localName - Description of Parameter
qName - Description of Parameter
atts - Description of Parameter
Since:
 

startPrefixMapping

public void startPrefixMapping(java.lang.String prefix,
                               java.lang.String uri)
Description of the Method
Specified by:
startPrefixMapping in interface org.xml.sax.ContentHandler
Parameters:
prefix - Description of Parameter
uri - Description of Parameter
Since:
 


Copyright © 1999-2002 Apache Software Foundation. All Rights Reserved.