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 String
protected static final String
protected ContentHandler
protected static final String
protected ErrorHandler
protected static final String
protected static final String
protected static final String
protected static final String
protected org.codehaus.plexus.util.xml.pull.XmlPullParser
protected String
protected static final String
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
getFeature
(String name) int
int
int
int
getLocalName
(int index) getProperty
(String name) getQName
(int index) getType
(int index) getURI
(int index) getValue
(int index) void
void
parse
(InputSource source) void
parseSubTree
(org.codehaus.plexus.util.xml.pull.XmlPullParser pp) void
setContentHandler
(ContentHandler handler) void
setDTDHandler
(DTDHandler handler) void
setEntityResolver
(EntityResolver resolver) void
setErrorHandler
(ErrorHandler handler) void
setFeature
(String name, boolean value) void
setProperty
(String name, Object value) protected void
startElement
(String namespace, String localName, String qName) CallsContentHandler.startElement
on theContentHandler
withthis
driver object as theAttributes
implementation.
-
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:
getLength
in interfaceAttributes
-
getURI
- Specified by:
getURI
in interfaceAttributes
-
getLocalName
- Specified by:
getLocalName
in interfaceAttributes
-
getQName
- Specified by:
getQName
in interfaceAttributes
-
getType
- Specified by:
getType
in interfaceAttributes
-
getValue
- Specified by:
getValue
in interfaceAttributes
-
getIndex
- Specified by:
getIndex
in interfaceAttributes
-
getIndex
- Specified by:
getIndex
in interfaceAttributes
-
getType
- Specified by:
getType
in interfaceAttributes
-
getType
- Specified by:
getType
in interfaceAttributes
-
getValue
- Specified by:
getValue
in interfaceAttributes
-
getValue
- Specified by:
getValue
in interfaceAttributes
-
getPublicId
- Specified by:
getPublicId
in interfaceLocator
-
getSystemId
- Specified by:
getSystemId
in interfaceLocator
-
getLineNumber
public int getLineNumber()- Specified by:
getLineNumber
in interfaceLocator
-
getColumnNumber
public int getColumnNumber()- Specified by:
getColumnNumber
in interfaceLocator
-
getFeature
- Specified by:
getFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setFeature
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setFeature
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
getProperty
- Specified by:
getProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setProperty
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException - Specified by:
setProperty
in interfaceXMLReader
- Throws:
SAXNotRecognizedException
SAXNotSupportedException
-
setEntityResolver
- Specified by:
setEntityResolver
in interfaceXMLReader
-
getEntityResolver
- Specified by:
getEntityResolver
in interfaceXMLReader
-
setDTDHandler
- Specified by:
setDTDHandler
in interfaceXMLReader
-
getDTDHandler
- Specified by:
getDTDHandler
in interfaceXMLReader
-
setContentHandler
- Specified by:
setContentHandler
in interfaceXMLReader
-
getContentHandler
- Specified by:
getContentHandler
in interfaceXMLReader
-
setErrorHandler
- Specified by:
setErrorHandler
in interfaceXMLReader
-
getErrorHandler
- Specified by:
getErrorHandler
in interfaceXMLReader
-
parse
- Specified by:
parse
in interfaceXMLReader
- Throws:
SAXException
IOException
-
parse
- Specified by:
parse
in interfaceXMLReader
- Throws:
SAXException
IOException
-
parseSubTree
public void parseSubTree(org.codehaus.plexus.util.xml.pull.XmlPullParser pp) throws SAXException, IOException - Throws:
SAXException
IOException
-
startElement
CallsContentHandler.startElement
on theContentHandler
withthis
driver object as theAttributes
implementation. In default implementationAttributes
object 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.
-