org.bibop.xml.xforge
Class ParameterElement

java.lang.Object
  |
  +--org.bibop.xml.xforge.AbstractElement
        |
        +--org.bibop.xml.xforge.ParameterElement
All Implemented Interfaces:
org.xml.sax.ContentHandler, Element, org.xml.sax.ext.LexicalHandler, PrefixesMonitor, XMLConsumer, XMLProducer

public class ParameterElement
extends AbstractElement

Dynamically evaluate a parameter and pass it to its parent.

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
private  java.lang.String parameterName
           
private  java.lang.StringBuffer parameterValue
           
static java.lang.String XFORGE_ATTR_PARAMETERNAME
           
static java.lang.String XFORGE_ATTR_PARAMETERSRC
           
 
Fields inherited from class org.bibop.xml.xforge.AbstractElement
contentHandler, lexicalHandler, parentPrefixesMonitor, po, saxEvents, xmlCompiler
 
Constructor Summary
ParameterElement(org.xml.sax.Attributes attrs, ProcessingOptions aPO)
           
 
Method Summary
 void setContentHandler(org.xml.sax.ContentHandler xmlConsumer)
          Sets the content handler that will receive our xml sax events
 void setParent(XMLConsumer xmlConsumer)
          Sets the xmlconsumer that will receive our xml sax events
 void toSax()
          Must be implemented by the extending classes
 
Methods inherited from class org.bibop.xml.xforge.AbstractElement
characters, comment, end, endCDATA, endDocument, endDTD, endElement, endEntity, endPrefixMapping, flushSAXCache, getActivePrefixes, ignorableWhitespace, output, output, processingInstruction, setConsumer, setDocumentLocator, setLexicalHandler, setParentPrefixesMonitor, skippedEntity, start, startCDATA, startDocument, startDTD, startElement, startEntity, startPrefixMapping
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

parameterName

private java.lang.String parameterName

parameterValue

private java.lang.StringBuffer parameterValue

XFORGE_ATTR_PARAMETERNAME

public static final java.lang.String XFORGE_ATTR_PARAMETERNAME
See Also:
Constant Field Values

XFORGE_ATTR_PARAMETERSRC

public static final java.lang.String XFORGE_ATTR_PARAMETERSRC
See Also:
Constant Field Values
Constructor Detail

ParameterElement

public ParameterElement(org.xml.sax.Attributes attrs,
                        ProcessingOptions aPO)
                 throws IllegalElementException
Method Detail

toSax

public void toSax()
           throws org.xml.sax.SAXException
Description copied from class: AbstractElement
Must be implemented by the extending classes

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

setParent

public void setParent(XMLConsumer xmlConsumer)
               throws org.xml.sax.SAXException
Sets the xmlconsumer that will receive our xml sax events

Specified by:
setParent in interface Element
Overrides:
setParent in class AbstractElement
Parameters:
xmlConsumer -
org.xml.sax.SAXException

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler xmlConsumer)
                       throws org.xml.sax.SAXException
Sets the content handler that will receive our xml sax events

Specified by:
setContentHandler in interface XMLProducer
Overrides:
setContentHandler in class AbstractElement
org.xml.sax.SAXException


Copyright 2003 Bibop Research International. All Rights Reserved.