org.bibop.xml.xforge.components
Class AbstractXForgeComponentMapper

java.lang.Object
  |
  +--org.bibop.xml.xforge.components.AbstractXForgeComponentMapper
All Implemented Interfaces:
XForgeComponentMapper, XMLProducer
Direct Known Subclasses:
XForgeReflectionMapper

public abstract class AbstractXForgeComponentMapper
extends java.lang.Object
implements XForgeComponentMapper

This class provides a default implementation for some XForgeComponentMapper' s methods.

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
protected  org.xml.sax.ContentHandler contentHandler
           
protected  XForgeContext context
           
protected  org.xml.sax.ext.LexicalHandler lexicalHandler
           
protected  java.util.Map parameters
           
 
Constructor Summary
AbstractXForgeComponentMapper()
           
 
Method Summary
 java.util.Map getParameters()
           
 java.io.Serializable getVariable(java.lang.String name)
           
 void run()
           
 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 setVariablesContext(XForgeContext context)
           
 void toSax()
          Creates the SAX events once processing has finished.
 
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.XForgeComponentMapper
setMappedComponentClass
 

Field Detail

parameters

protected java.util.Map parameters

lexicalHandler

protected org.xml.sax.ext.LexicalHandler lexicalHandler

contentHandler

protected org.xml.sax.ContentHandler contentHandler

context

protected XForgeContext context
Constructor Detail

AbstractXForgeComponentMapper

public AbstractXForgeComponentMapper()
Method Detail

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 XForgeComponentMapper
XForgeException

getParameters

public java.util.Map getParameters()
                            throws XForgeException
Specified by:
getParameters in interface XForgeComponentMapper
XForgeException

setVariablesContext

public void setVariablesContext(XForgeContext context)
                         throws XForgeException
Specified by:
setVariablesContext in interface XForgeComponentMapper
XForgeException

getVariable

public java.io.Serializable getVariable(java.lang.String name)
                                 throws XForgeException
Specified by:
getVariable in interface XForgeComponentMapper
XForgeException

run

public void run()
         throws XForgeException
Specified by:
run in interface XForgeComponentMapper
XForgeException

toSax

public void toSax()
           throws org.xml.sax.SAXException
Description copied from interface: XMLProducer
Creates the SAX events once processing has finished.

Specified by:
toSax in interface XMLProducer
Throws:
org.xml.sax.SAXException


Copyright 2003 Bibop Research International. All Rights Reserved.