public class Driver extends Object implements Locator, XMLReader, Attributes
Modifier and Type | Field and Description |
---|---|
protected static String |
APACHE_DYNAMIC_VALIDATION_FEATURE |
protected static String |
APACHE_SCHEMA_VALIDATION_FEATURE |
protected ContentHandler |
contentHandler |
protected static String |
DECLARATION_HANDLER_PROPERTY |
protected ErrorHandler |
errorHandler |
protected static String |
LEXICAL_HANDLER_PROPERTY |
protected static String |
NAMESPACE_PREFIXES_FEATURE |
protected static String |
NAMESPACES_FEATURE |
protected org.codehaus.plexus.util.xml.pull.XmlPullParser |
pp |
protected String |
systemId |
protected static String |
VALIDATION_FEATURE |
Constructor and Description |
---|
Driver() |
protected static final String DECLARATION_HANDLER_PROPERTY
protected static final String LEXICAL_HANDLER_PROPERTY
protected static final String NAMESPACES_FEATURE
protected static final String NAMESPACE_PREFIXES_FEATURE
protected static final String VALIDATION_FEATURE
protected static final String APACHE_SCHEMA_VALIDATION_FEATURE
protected static final String APACHE_DYNAMIC_VALIDATION_FEATURE
protected ContentHandler contentHandler
protected ErrorHandler errorHandler
protected String systemId
protected org.codehaus.plexus.util.xml.pull.XmlPullParser pp
public Driver() throws org.codehaus.plexus.util.xml.pull.XmlPullParserException
org.codehaus.plexus.util.xml.pull.XmlPullParserException
public int getLength()
getLength
in interface Attributes
public String getURI(int index)
getURI
in interface Attributes
public String getLocalName(int index)
getLocalName
in interface Attributes
public String getQName(int index)
getQName
in interface Attributes
public String getType(int index)
getType
in interface Attributes
public String getValue(int index)
getValue
in interface Attributes
public int getIndex(String uri, String localName)
getIndex
in interface Attributes
public int getIndex(String qName)
getIndex
in interface Attributes
public String getType(String uri, String localName)
getType
in interface Attributes
public String getType(String qName)
getType
in interface Attributes
public String getValue(String uri, String localName)
getValue
in interface Attributes
public String getValue(String qName)
getValue
in interface Attributes
public String getPublicId()
getPublicId
in interface Locator
public String getSystemId()
getSystemId
in interface Locator
public int getLineNumber()
getLineNumber
in interface Locator
public int getColumnNumber()
getColumnNumber
in interface Locator
public boolean getFeature(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setFeature(String name, boolean value) throws SAXNotRecognizedException, SAXNotSupportedException
setFeature
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public Object getProperty(String name) throws SAXNotRecognizedException, SAXNotSupportedException
getProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setProperty(String name, Object value) throws SAXNotRecognizedException, SAXNotSupportedException
setProperty
in interface XMLReader
SAXNotRecognizedException
SAXNotSupportedException
public void setEntityResolver(EntityResolver resolver)
setEntityResolver
in interface XMLReader
public EntityResolver getEntityResolver()
getEntityResolver
in interface XMLReader
public void setDTDHandler(DTDHandler handler)
setDTDHandler
in interface XMLReader
public DTDHandler getDTDHandler()
getDTDHandler
in interface XMLReader
public void setContentHandler(ContentHandler handler)
setContentHandler
in interface XMLReader
public ContentHandler getContentHandler()
getContentHandler
in interface XMLReader
public void setErrorHandler(ErrorHandler handler)
setErrorHandler
in interface XMLReader
public ErrorHandler getErrorHandler()
getErrorHandler
in interface XMLReader
public void parse(InputSource source) throws SAXException, IOException
parse
in interface XMLReader
SAXException
IOException
public void parse(String systemId) throws SAXException, IOException
parse
in interface XMLReader
SAXException
IOException
public void parseSubTree(org.codehaus.plexus.util.xml.pull.XmlPullParser pp) throws SAXException, IOException
SAXException
IOException
protected void startElement(String namespace, String localName, String qName) throws SAXException
startElement
on the ContentHandler
with this
driver object as the
Attributes
implementation. In default implementation
Attributes
object is valid only during this method call and may not
be stored. Sub-classes can overwrite this method to cache attributes.SAXException
Copyright © 2001-2016 Codehaus. All Rights Reserved.