org.bibop.xml.xforge
Class DeclareElement

java.lang.Object
  |
  +--org.bibop.xml.xforge.AbstractElement
        |
        +--org.bibop.xml.xforge.DeclareElement
All Implemented Interfaces:
org.xml.sax.ContentHandler, Element, org.xml.sax.ext.LexicalHandler, PrefixesMonitor, XMLConsumer, XMLProducer
Direct Known Subclasses:
DeclareNodeElement, DeclareNumberElement, DeclareStringElement

public abstract class DeclareElement
extends AbstractElement

Variable Declaration

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
private static java.lang.String DEFAULT_SERIALIZER
           
private  int serializertype
           
private static java.lang.String TEXT_SERIALIZER
           
protected  java.lang.String varname
           
static java.lang.String XFORGE_ATTR_SERIALIZER
           
static java.lang.String XFORGE_ATTR_VARNAME
           
private static java.lang.String XML_SERIALIZER
           
 
Fields inherited from class org.bibop.xml.xforge.AbstractElement
contentHandler, lexicalHandler, parentPrefixesMonitor, po, saxEvents, xmlCompiler
 
Constructor Summary
DeclareElement(org.xml.sax.Attributes attrs, ProcessingOptions aPO)
          Build the object using the Attributes list
 
Method Summary
protected abstract  java.lang.Object getVariableInstance()
           
protected  java.lang.Object setGenericClassValue(java.lang.Object obj)
           
protected  XForgeClass setXForgeClassValue(XForgeClass xfc)
           
 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, setContentHandler, setDocumentLocator, setLexicalHandler, setParent, 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

XFORGE_ATTR_VARNAME

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

varname

protected java.lang.String varname

XFORGE_ATTR_SERIALIZER

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

XML_SERIALIZER

private static final java.lang.String XML_SERIALIZER
See Also:
Constant Field Values

TEXT_SERIALIZER

private static final java.lang.String TEXT_SERIALIZER
See Also:
Constant Field Values

DEFAULT_SERIALIZER

private static final java.lang.String DEFAULT_SERIALIZER
See Also:
Constant Field Values

serializertype

private int serializertype
Constructor Detail

DeclareElement

public DeclareElement(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 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

setXForgeClassValue

protected XForgeClass setXForgeClassValue(XForgeClass xfc)
                                   throws org.xml.sax.SAXException
org.xml.sax.SAXException

setGenericClassValue

protected java.lang.Object setGenericClassValue(java.lang.Object obj)
                                         throws org.xml.sax.SAXException
org.xml.sax.SAXException

getVariableInstance

protected abstract java.lang.Object getVariableInstance()
                                                 throws XForgeException
XForgeException


Copyright © 2003 Bibop Research International. All Rights Reserved.