org.bibop.xml.xforge
Class IncludeElement

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

public class IncludeElement
extends AbstractElement
implements ReactorElement

Include an external x:forge library

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
protected  java.lang.String function
           
protected  java.lang.String library
           
protected  org.xml.sax.InputSource libraryinputsource
           
protected  org.xml.sax.XMLReader parser
           
static java.lang.String XFORGE_ATTR_FUNCTION
           
static java.lang.String XFORGE_ATTR_LIBRARY
           
 
Fields inherited from class org.bibop.xml.xforge.AbstractElement
contentHandler, lexicalHandler, parentPrefixesMonitor, po, saxEvents, xmlCompiler
 
Constructor Summary
IncludeElement(org.xml.sax.Attributes attrs, ProcessingOptions aPO)
          Build the object using the Attributes list
 
Method Summary
 void startElement(java.lang.String uri, java.lang.String loc, java.lang.String raw, org.xml.sax.Attributes a)
          Receive notification of the beginning of an element.
 void toSax()
          Creates the SAX events once processing has finished.
 
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, setContentHandler, setDocumentLocator, setLexicalHandler, setParent, setParentPrefixesMonitor, skippedEntity, start, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping
 
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.Element
setParent
 
Methods inherited from interface org.xml.sax.ContentHandler
characters, endDocument, endElement, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping
 
Methods inherited from interface org.xml.sax.ext.LexicalHandler
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity
 
Methods inherited from interface org.bibop.xml.XMLProducer
setConsumer, setContentHandler, setLexicalHandler
 
Methods inherited from interface org.bibop.xml.xforge.PrefixesMonitor
getActivePrefixes, setParentPrefixesMonitor
 

Field Detail

XFORGE_ATTR_LIBRARY

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

XFORGE_ATTR_FUNCTION

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

library

protected java.lang.String library

function

protected java.lang.String function

parser

protected org.xml.sax.XMLReader parser

libraryinputsource

protected org.xml.sax.InputSource libraryinputsource
Constructor Detail

IncludeElement

public IncludeElement(org.xml.sax.Attributes attrs,
                      ProcessingOptions aPO)
               throws IllegalElementException
Build the object using the Attributes list

Parameters:
attrs - the Attributes list
Throws:
IllegalElementException - Invalid x:forge element declaration
Method Detail

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
Specified by:
toSax in class AbstractElement
Throws:
org.xml.sax.SAXException

startElement

public void startElement(java.lang.String uri,
                         java.lang.String loc,
                         java.lang.String raw,
                         org.xml.sax.Attributes a)
                  throws org.xml.sax.SAXException
Description copied from class: AbstractElement
Receive notification of the beginning of an element.

Specified by:
startElement in interface org.xml.sax.ContentHandler
Overrides:
startElement in class AbstractElement
Parameters:
uri - The Namespace URI, or the empty string if the element has no Namespace URI or if Namespace processing is not being performed.
loc - The local name (without prefix), or the empty string if Namespace processing is not being performed.
raw - The raw XML 1.0 name (with prefix), or the empty string if raw names are not available.
a - The attributes attached to the element. If there are no attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException


Copyright 2003 Bibop Research International. All Rights Reserved.