Class Driver
java.lang.Object
org.codehaus.plexus.metadata.merge.Driver
- All Implemented Interfaces:
Attributes,Locator,XMLReader
SAX2 Driver that pulls events from XmlPullParser
and comverts them into SAX2 callbacks.
- Author:
- Aleksander Slominski
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static final Stringprotected static final Stringprotected ContentHandlerprotected static final Stringprotected ErrorHandlerprotected static final Stringprotected static final Stringprotected static final Stringprotected static final Stringprotected org.codehaus.plexus.util.xml.pull.XmlPullParserprotected Stringprotected static final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintbooleangetFeature(String name) intintintintgetLocalName(int index) getProperty(String name) getQName(int index) getType(int index) getURI(int index) getValue(int index) voidvoidparse(InputSource source) voidparseSubTree(org.codehaus.plexus.util.xml.pull.XmlPullParser pp) voidsetContentHandler(ContentHandler handler) voidsetDTDHandler(DTDHandler handler) voidsetEntityResolver(EntityResolver resolver) voidsetErrorHandler(ErrorHandler handler) voidsetFeature(String name, boolean value) voidsetProperty(String name, Object value) protected voidstartElement(String namespace, String localName, String qName) CallsContentHandler.startElementon theContentHandlerwiththisdriver object as theAttributesimplementation.
-
Field Details
-
EXTERNAL_GENERAL_ENTITIES_PROPERTY
- See Also:
-
DECLARATION_HANDLER_PROPERTY
- See Also:
-
LEXICAL_HANDLER_PROPERTY
- See Also:
-
NAMESPACES_FEATURE
- See Also:
-
NAMESPACE_PREFIXES_FEATURE
- See Also:
-
VALIDATION_FEATURE
- See Also:
-
APACHE_SCHEMA_VALIDATION_FEATURE
- See Also:
-
APACHE_DYNAMIC_VALIDATION_FEATURE
- See Also:
-
contentHandler
-
errorHandler
-
systemId
-
pp
protected org.codehaus.plexus.util.xml.pull.XmlPullParser pp
-
-
Constructor Details
-
Driver
public Driver() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException- Throws:
org.codehaus.plexus.util.xml.pull.XmlPullParserException
-
-
Method Details
-
getLength
public int getLength()- Specified by:
getLengthin interfaceAttributes
-
getURI
- Specified by:
getURIin interfaceAttributes
-
getLocalName
- Specified by:
getLocalNamein interfaceAttributes
-
getQName
- Specified by:
getQNamein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getIndex
- Specified by:
getIndexin interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getType
- Specified by:
getTypein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getValue
- Specified by:
getValuein interfaceAttributes
-
getPublicId
- 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
-
getFeature
- Specified by:
getFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeaturein interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
getProperty
- Specified by:
getPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setPropertyin interfaceXMLReader- Throws:
SAXNotRecognizedExceptionSAXNotSupportedException
-
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:
SAXExceptionIOException
-
parse
- Specified by:
parsein interfaceXMLReader- Throws:
SAXExceptionIOException
-
parseSubTree
public void parseSubTree(org.codehaus.plexus.util.xml.pull.XmlPullParser pp) throws SAXException, IOException - Throws:
SAXExceptionIOException
-
startElement
CallsContentHandler.startElementon theContentHandlerwiththisdriver object as theAttributesimplementation. In default implementationAttributesobject is valid only during this method call and may not be stored. Sub-classes can overwrite this method to cache attributes.- Parameters:
namespace- The namespace.localName- The localname.qName- The qName.- Throws:
SAXException- in case of an error.
-