com.opensymphony.util
Class XMLReaderAdapter
java.lang.Object
com.opensymphony.util.XMLReaderAdapter
- All Implemented Interfaces:
- org.xml.sax.Locator, org.xml.sax.XMLReader
- public class XMLReaderAdapter
- extends 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.
- Version:
- $Revision: 1.1.1.1 $
- Author:
- Victor Salaman
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
XMLReaderAdapter
public XMLReaderAdapter(Object object)
XMLReaderAdapter
public XMLReaderAdapter(Object object,
String root)
getColumnNumber
public int getColumnNumber()
- Specified by:
getColumnNumber
in interface org.xml.sax.Locator
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
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
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
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
setFeature
public void setFeature(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
getFeature
public boolean getFeature(String featureId)
throws org.xml.sax.SAXNotRecognizedException
- Specified by:
getFeature
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
getLineNumber
public int getLineNumber()
- Specified by:
getLineNumber
in interface org.xml.sax.Locator
setObject
public void setObject(Object object)
setProperty
public void setProperty(String propertyId,
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
getProperty
public Object getProperty(String name)
throws org.xml.sax.SAXNotRecognizedException
- Specified by:
getProperty
in interface org.xml.sax.XMLReader
- Throws:
org.xml.sax.SAXNotRecognizedException
getPublicId
public String getPublicId()
- Specified by:
getPublicId
in interface org.xml.sax.Locator
setRoot
public void setRoot(String root)
getSystemId
public String getSystemId()
- Specified by:
getSystemId
in interface org.xml.sax.Locator
parse
public void parse(org.xml.sax.InputSource source)
throws IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
- Throws:
IOException
org.xml.sax.SAXException
parse
public void parse(String s)
throws IOException,
org.xml.sax.SAXException
- Specified by:
parse
in interface org.xml.sax.XMLReader
- Throws:
IOException
org.xml.sax.SAXException
parse
public void parse()
throws IOException,
org.xml.sax.SAXException
- Throws:
IOException
org.xml.sax.SAXException