fr.gouv.culture.sdx.thesaurus
Class AbstractThesaurusBuilder

java.lang.Object
  extended by org.apache.avalon.framework.logger.AbstractLogEnabled
      extended by org.apache.cocoon.xml.AbstractXMLProducer
          extended by org.apache.cocoon.xml.AbstractXMLPipe
              extended by fr.gouv.culture.sdx.thesaurus.AbstractThesaurusBuilder
All Implemented Interfaces:
ThesaurusBuilder, org.apache.avalon.excalibur.pool.Poolable, org.apache.avalon.excalibur.pool.Recyclable, org.apache.avalon.framework.logger.LogEnabled, org.apache.cocoon.xml.XMLPipe, org.apache.cocoon.xml.XMLProducer, org.apache.excalibur.xml.sax.XMLConsumer, org.xml.sax.ContentHandler, org.xml.sax.ext.LexicalHandler
Direct Known Subclasses:
LuceneThesaurusBuilder

public abstract class AbstractThesaurusBuilder
extends org.apache.cocoon.xml.AbstractXMLPipe
implements ThesaurusBuilder


Field Summary
protected  java.util.ArrayList concepts
           
protected  org.apache.avalon.framework.logger.Logger logger
          Avalon super.getLog() to write information.
 
Fields inherited from class org.apache.cocoon.xml.AbstractXMLProducer
contentHandler, EMPTY_CONTENT_HANDLER, lexicalHandler, xmlConsumer
 
Constructor Summary
AbstractThesaurusBuilder()
           
 
Method Summary
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
          Sets the super.getLog() for this object.
 Concept[] getConcepts()
           
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLPipe
characters, comment, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class org.apache.cocoon.xml.AbstractXMLProducer
recycle, setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from class org.apache.avalon.framework.logger.AbstractLogEnabled
getLogger, setupLogger, setupLogger, setupLogger
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startElement, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 
Methods inherited from interface org.apache.cocoon.xml.XMLProducer
setConsumer
 

Field Detail

logger

protected org.apache.avalon.framework.logger.Logger logger
Avalon super.getLog() to write information.


concepts

protected java.util.ArrayList concepts
Constructor Detail

AbstractThesaurusBuilder

public AbstractThesaurusBuilder()
Method Detail

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Sets the super.getLog() for this object.

Setting the super.getLog() ensures proper logging of potential errors. If not set, this class won't be able to log any information. But it will still work.

Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled
Overrides:
enableLogging in class org.apache.avalon.framework.logger.AbstractLogEnabled

getConcepts

public Concept[] getConcepts()
Specified by:
getConcepts in interface ThesaurusBuilder


Copyright © 2000-2010 Ministere de la culture et de la communication / AJLSM. All Rights Reserved.