Package webwork.view.xslt.SAXAdapter
Class XMLReaderAdapter
java.lang.Object
webwork.view.xslt.SAXAdapter.XMLReaderAdapter
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
-
Constructor Summary
ConstructorsConstructorDescriptionXMLReaderAdapter(XMLWalker walker, Object object) XMLReaderAdapter(XMLWalker walker, Object object, String root) -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetFeature(String featureId) intgetProperty(String name) SAX Reader/Locator Dummy Implementationvoidparse()voidvoidparse(InputSource source) voidsetContentHandler(ContentHandler handler) voidsetDTDHandler(DTDHandler handler) voidsetEntityResolver(EntityResolver resolver) voidsetErrorHandler(ErrorHandler handler) voidsetFeature(String featureId, boolean on) voidvoidsetProperty(String propertyId, Object property) void
-
Constructor Details
-
XMLReaderAdapter
-
XMLReaderAdapter
-
-
Method Details
-
parse
- Throws:
IOExceptionSAXException
-
getPublicId
SAX Reader/Locator Dummy Implementation- Specified by:
getPublicIdin interfaceLocator
-
getSystemId
- Specified by:
getSystemIdin interfaceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumberin interfaceLocator
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumberin interfaceLocator
-
setEntityResolver
- Specified by:
setEntityResolverin interfaceXMLReader
-
getEntityResolver
- Specified by:
getEntityResolverin interfaceXMLReader
-
setDTDHandler
- Specified by:
setDTDHandlerin interfaceXMLReader
-
getDTDHandler
- Specified by:
getDTDHandlerin interfaceXMLReader
-
setContentHandler
- Specified by:
setContentHandlerin interfaceXMLReader
-
getContentHandler
- Specified by:
getContentHandlerin interfaceXMLReader
-
setErrorHandler
- Specified by:
setErrorHandlerin interfaceXMLReader
-
getErrorHandler
- Specified by:
getErrorHandlerin interfaceXMLReader
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
IOExceptionSAXException
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
IOExceptionSAXException
-
setObject
-
setRoot
-
getFeature
- Specified by:
getFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedException
-
setFeature
public void setFeature(String featureId, boolean on) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
getProperty
- Specified by:
getPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedException
-
setProperty
public void setProperty(String propertyId, Object property) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-