Methods Summary |
---|
public org.apache.xerces.xs.AttributePSVI | getAttributePSVI(int index)
return ((PSVIProvider)xmlReader).getAttributePSVI(index);
|
public org.apache.xerces.xs.AttributePSVI | getAttributePSVIByName(java.lang.String uri, java.lang.String localname)
return ((PSVIProvider)xmlReader).getAttributePSVIByName(uri, localname);
|
public org.apache.xerces.xs.ElementPSVI | getElementPSVI()
return ((PSVIProvider)xmlReader).getElementPSVI();
|
public org.xml.sax.Parser | getParser()
// Xerces2 AbstractSAXParser implements SAX1 Parser
// assert(xmlReader instanceof Parser);
return (Parser) xmlReader;
|
public java.lang.Object | getProperty(java.lang.String name)returns the particular property requested for in the underlying
implementation of org.xml.sax.XMLReader.
return xmlReader.getProperty(name);
|
public javax.xml.validation.Schema | getSchema()
return grammar;
|
public org.xml.sax.XMLReader | getXMLReader()Returns the XMLReader that is encapsulated by the implementation of
this class.
return xmlReader;
|
public boolean | isNamespaceAware()
try {
return xmlReader.getFeature(NAMESPACES_FEATURE);
}
catch (SAXException x) {
throw new IllegalStateException(x.getMessage());
}
|
public boolean | isValidating()
try {
return xmlReader.getFeature(VALIDATION_FEATURE);
}
catch (SAXException x) {
throw new IllegalStateException(x.getMessage());
}
|
public boolean | isXIncludeAware()Gets the XInclude processing mode for this parser
try {
return xmlReader.getFeature(XINCLUDE_FEATURE);
}
catch (SAXException exc) {
return false;
}
|
public void | parse(org.xml.sax.InputSource is, org.xml.sax.helpers.DefaultHandler dh)
if (is == null) {
throw new IllegalArgumentException();
}
if (dh != null) {
xmlReader.setContentHandler(dh);
xmlReader.setEntityResolver(dh);
xmlReader.setErrorHandler(dh);
xmlReader.setDTDHandler(dh);
xmlReader.setDocumentHandler(null);
}
xmlReader.parse(is);
|
public void | parse(org.xml.sax.InputSource is, org.xml.sax.HandlerBase hb)
if (is == null) {
throw new IllegalArgumentException();
}
if (hb != null) {
xmlReader.setDocumentHandler(hb);
xmlReader.setEntityResolver(hb);
xmlReader.setErrorHandler(hb);
xmlReader.setDTDHandler(hb);
xmlReader.setContentHandler(null);
}
xmlReader.parse(is);
|
public void | reset()
try {
/** Restore initial values of features and properties. **/
xmlReader.restoreInitState();
}
catch (SAXException exc) {
// This should never happen. We only store recognized
// features and properties in the hash maps. For now
// just ignore it.
}
/** Restore various handlers. **/
xmlReader.setContentHandler(null);
xmlReader.setDTDHandler(null);
if (xmlReader.getErrorHandler() != fInitErrorHandler) {
xmlReader.setErrorHandler(fInitErrorHandler);
}
if (xmlReader.getEntityResolver() != fInitEntityResolver) {
xmlReader.setEntityResolver(fInitEntityResolver);
}
|
private void | setFeatures(java.util.Hashtable features)Set any features of our XMLReader based on any features set on the
SAXParserFactory.
XXX Does not handle possible conflicts between SAX feature names and
JAXP specific feature names, eg. SAXParserFactory.isValidating()
if (features != null) {
for (Enumeration e = features.keys(); e.hasMoreElements();) {
String feature = (String)e.nextElement();
boolean value = ((Boolean)features.get(feature)).booleanValue();
xmlReader.setFeature0(feature, value);
}
}
|
public void | setProperty(java.lang.String name, java.lang.Object value)Sets the particular property in the underlying implementation of
org.xml.sax.XMLReader.
xmlReader.setProperty(name, value);
|