org.bibop.xml.xforge
Class ParameterValueImpl

java.lang.Object
  |
  +--org.bibop.xml.xforge.ParameterValueImpl
All Implemented Interfaces:
ParameterValue, XMLProducer

public class ParameterValueImpl
extends java.lang.Object
implements ParameterValue

Interface for a parameter value

Version:
1.0
Author:
Alberto Garoffolo

Field Summary
protected  java.io.ByteArrayInputStream cachedEvents
           
protected  org.xml.sax.ContentHandler contentHandler
           
protected  org.xml.sax.ext.LexicalHandler lexicalHandler
           
private  ProcessingOptions po
           
private static java.lang.String TEXT_SERIALIZER_CLASS
           
private static java.lang.String XML_SERIALIZER_CLASS
           
 
Constructor Summary
ParameterValueImpl(java.io.ByteArrayInputStream saxEvents, ProcessingOptions aPO)
           
 
Method Summary
 java.lang.String getText()
          Get a text serialized version of the parameter value
 java.lang.String getXML()
          Get a xml serialized version of the parameter value
protected  java.lang.String serialize(java.lang.String serializerclass)
           
 void setConsumer(XMLConsumer xmlConsumer)
          Sets the xmlconsumer that will receive our SAX events
 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 toSax()
          Creates the SAX events once processing has finished.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contentHandler

protected org.xml.sax.ContentHandler contentHandler

lexicalHandler

protected org.xml.sax.ext.LexicalHandler lexicalHandler

cachedEvents

protected java.io.ByteArrayInputStream cachedEvents

po

private ProcessingOptions po

XML_SERIALIZER_CLASS

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

TEXT_SERIALIZER_CLASS

private static final java.lang.String TEXT_SERIALIZER_CLASS
See Also:
Constant Field Values
Constructor Detail

ParameterValueImpl

public ParameterValueImpl(java.io.ByteArrayInputStream saxEvents,
                          ProcessingOptions aPO)
                   throws XForgeException
Method Detail

setConsumer

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

Specified by:
setConsumer in interface XMLProducer
Parameters:
xmlConsumer -
Throws:
XForgeException
org.xml.sax.SAXException

setContentHandler

public void setContentHandler(org.xml.sax.ContentHandler cHandler)
                       throws org.xml.sax.SAXException
Description copied from interface: XMLProducer
Set the ContentHandler that will receive XML data.

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

setLexicalHandler

public void setLexicalHandler(org.xml.sax.ext.LexicalHandler lHandler)
                       throws org.xml.sax.SAXException
Description copied from interface: XMLProducer
Set the LexicalHandler that will receive XML data.

Specified by:
setLexicalHandler in interface XMLProducer
org.xml.sax.SAXException

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

getText

public java.lang.String getText()
                         throws org.xml.sax.SAXException
Get a text serialized version of the parameter value

Specified by:
getText in interface ParameterValue
Throws:
SAXEXception
org.xml.sax.SAXException

getXML

public java.lang.String getXML()
                        throws org.xml.sax.SAXException
Get a xml serialized version of the parameter value

Specified by:
getXML in interface ParameterValue
Throws:
SAXEXception
org.xml.sax.SAXException

serialize

protected java.lang.String serialize(java.lang.String serializerclass)
                              throws org.xml.sax.SAXException
org.xml.sax.SAXException

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2003 Bibop Research International. All Rights Reserved.