org.bibop.xml.xforge.components
Class AbstractXForgeComponent

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponent
All Implemented Interfaces:
org.apache.avalon.framework.component.Component, org.apache.avalon.framework.configuration.Configurable, org.apache.avalon.framework.logger.LogEnabled, PrefixesMonitor, XForgeComponent, XMLProducer
Direct Known Subclasses:
AbstractXForgePoolableComponent

public abstract class AbstractXForgeComponent
extends java.lang.Object
implements XForgeComponent

Provides a default implementation of some XForgeComponent' s methods. Implements the configure method setting the default ContextIdentifier if none specified.

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
private  java.util.List activePrefixes
           
protected  org.xml.sax.ContentHandler contentHandler
           
protected  XForgeContext context
           
protected  org.xml.sax.ext.LexicalHandler lexicalHandler
           
protected  org.apache.avalon.framework.logger.Logger log
           
protected  java.util.Map parameters
           
(package private)  PrefixesMonitor parentPrefixesMonitor
           
protected  ProcessingOptions po
           
 
Constructor Summary
AbstractXForgeComponent()
           
 
Method Summary
 void configure(org.apache.avalon.framework.configuration.Configuration conf)
           
 void enableLogging(org.apache.avalon.framework.logger.Logger logger)
          Provide component with a logger.
 java.util.List getActivePrefixes()
           
 void output(java.lang.String in)
           
 void output(java.lang.String element, java.lang.String in)
           
 void setConsumer(XMLConsumer consumer)
          Set the XMLConsumer that will receive XML data.
 void setContentHandler(org.xml.sax.ContentHandler cHandler)
          Set the ContentHandler that will receive XML data.
 void setLexicalHandler(org.xml.sax.ext.LexicalHandler lHandler)
          Set the LexicalHandler that will receive XML data.
 void setParameters(java.util.Map parameters)
           
 void setParentPrefixesMonitor(PrefixesMonitor parent)
           
 void setProcessingOptions(ProcessingOptions aPO)
          Set the ProcessingOptions for this component.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.bibop.xml.xforge.components.XForgeComponent
toSax
 

Field Detail

context

protected XForgeContext context

contentHandler

protected org.xml.sax.ContentHandler contentHandler

lexicalHandler

protected org.xml.sax.ext.LexicalHandler lexicalHandler

parameters

protected java.util.Map parameters

activePrefixes

private java.util.List activePrefixes

parentPrefixesMonitor

PrefixesMonitor parentPrefixesMonitor

log

protected org.apache.avalon.framework.logger.Logger log

po

protected ProcessingOptions po
Constructor Detail

AbstractXForgeComponent

public AbstractXForgeComponent()
Method Detail

enableLogging

public void enableLogging(org.apache.avalon.framework.logger.Logger logger)
Provide component with a logger.

Specified by:
enableLogging in interface org.apache.avalon.framework.logger.LogEnabled
Parameters:
logger - the logger

configure

public void configure(org.apache.avalon.framework.configuration.Configuration conf)
               throws org.apache.avalon.framework.configuration.ConfigurationException
Specified by:
configure in interface org.apache.avalon.framework.configuration.Configurable
org.apache.avalon.framework.configuration.ConfigurationException

setProcessingOptions

public void setProcessingOptions(ProcessingOptions aPO)
Set the ProcessingOptions for this component.

Specified by:
setProcessingOptions in interface XForgeComponent

setConsumer

public void setConsumer(XMLConsumer consumer)
Set the XMLConsumer that will receive XML data.

Specified by:
setConsumer in interface XMLProducer

setLexicalHandler

public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lHandler)
Set the LexicalHandler that will receive XML data.

Specified by:
setLexicalHandler in interface XMLProducer

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler cHandler)
Set the ContentHandler that will receive XML data.

Specified by:
setContentHandler in interface XMLProducer

setParameters

public void setParameters(java.util.Map parameters)
                   throws XForgeException
Specified by:
setParameters in interface XForgeComponent
XForgeException

getActivePrefixes

public java.util.List getActivePrefixes()
                                 throws XForgeException
Specified by:
getActivePrefixes in interface PrefixesMonitor
XForgeException

setParentPrefixesMonitor

public void setParentPrefixesMonitor(PrefixesMonitor parent)
                              throws XForgeException
Specified by:
setParentPrefixesMonitor in interface PrefixesMonitor
XForgeException

output

public void output(java.lang.String in)
            throws org.xml.sax.SAXException
org.xml.sax.SAXException

output

public void output(java.lang.String element,
                   java.lang.String in)
            throws org.xml.sax.SAXException
org.xml.sax.SAXException


Copyright 2003 Bibop Research International. All Rights Reserved.