webwork.view.xslt.SAXAdapter
Class XMLReaderAdapter
java.lang.Object
webwork.view.xslt.SAXAdapter.XMLReaderAdapter
- All Implemented Interfaces:
- org.xml.sax.Locator, org.xml.sax.XMLReader
- public class XMLReaderAdapter
- extends java.lang.Object
- implements org.xml.sax.Locator, org.xml.sax.XMLReader
XMLReaderAdapter converts a java bean to its xml representation. It does
this by simulating a SAX XMLReader which an xslt processor can use as
a SAXSource.
The actual work is done in XMLWalker as the interface XMLReader is stateful
in respect to the input source. So this class is actually a facade to the
stateless class @see XMLWalker
- Author:
- Philipp Meier
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReaderAdapter
public XMLReaderAdapter(XMLWalker walker,
java.lang.Object object)
XMLReaderAdapter
public XMLReaderAdapter(XMLWalker walker,
java.lang.Object object,
java.lang.String root)
parse
public void parse()
throws java.io.IOException,
org.xml.sax.SAXException
- Throws:
java.io.IOException
org.xml.sax.SAXException
getPublicId
public java.lang.String getPublicId()
- SAX Reader/Locator Dummy Implementation
- Specified by:
getPublicId
in interface org.xml.sax.Locator
getSystemId
public java.lang.String getSystemId()
- Specified by:
getSystemId
in interface org.xml.sax.Locator
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface org.xml.sax.Locator
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interface org.xml.sax.Locator
setEntityResolver
public void setEntityResolver(org.xml.sax.EntityResolver resolver)
- Specified by:
setEntityResolver
in interface org.xml.sax.XMLReader
getEntityResolver
public org.xml.sax.EntityResolver getEntityResolver()
- Specified by:
getEntityResolver
in interface org.xml.sax.XMLReader
setDTDHandler
public void setDTDHandler(org.xml.sax.DTDHandler handler)
- Specified by:
setDTDHandler
in interface org.xml.sax.XMLReader
getDTDHandler
public org.xml.sax.DTDHandler getDTDHandler()
- Specified by:
getDTDHandler
in interface org.xml.sax.XMLReader
setContentHandler
public void setContentHandler(org.xml.sax.ContentHandler handler)
- Specified by:
setContentHandler
in interface org.xml.sax.XMLReader
getContentHandler
public org.xml.sax.ContentHandler getContentHandler()
- Specified by:
getContentHandler
in interface org.xml.sax.XMLReader
setErrorHandler
public void setErrorHandler(org.xml.sax.ErrorHandler handler)
- Specified by:
setErrorHandler
in interface org.xml.sax.XMLReader
getErrorHandler
public org.xml.sax.ErrorHandler getErrorHandler()
- Specified by:
getErrorHandler
in interface org.xml.sax.XMLReader
parse
public void parse(org.xml.sax.InputSource source)
throws java.io.IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
- Throws:
java.io.IOException
org.xml.sax.SAXException
parse
public void parse(java.lang.String s)
throws java.io.IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
- Throws:
java.io.IOException
org.xml.sax.SAXException
setObject
public void setObject(java.lang.Object object)
setRoot
public void setRoot(java.lang.String root)
getFeature
public boolean getFeature(java.lang.String featureId)
throws org.xml.sax.SAXNotRecognizedException
- Specified by:
getFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
setFeature
public void setFeature(java.lang.String featureId,
boolean on)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
setFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
getProperty
public java.lang.Object getProperty(java.lang.String name)
throws org.xml.sax.SAXNotRecognizedException
- Specified by:
getProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
setProperty
public void setProperty(java.lang.String propertyId,
java.lang.Object property)
throws org.xml.sax.SAXNotRecognizedException,
org.xml.sax.SAXNotSupportedException
- Specified by:
setProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
org.xml.sax.SAXNotSupportedException
Copyright © 2001-2003 WebWork All Rights Reserved.