|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.XMLFilterImpl
org.apache.commons.jelly.parser.DefaultNamespaceFilter
public class DefaultNamespaceFilter
XMLFilter that can provide a default namespace when one has not been declared by the XML document. Note: this class does not address the namespace of attributes.
| Field Summary | |
|---|---|
protected String |
uriDefault
|
| Constructor Summary | |
|---|---|
DefaultNamespaceFilter(String defaultNamespace,
XMLReader reader)
Filter for undefined an undefined namespace |
|
| Method Summary | |
|---|---|
void |
endElement(String namespaceURI,
String localName,
String qName)
All incoming empty URIs will be remapped to the default. |
void |
startElement(String uri,
String localName,
String qName,
Attributes atts)
All incoming empty URIs will be remapped to the default. |
void |
startPrefixMapping(String prefix,
String uri)
All incoming empty URIs will be remapped to the default. |
| Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
|---|
characters, endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, unparsedEntityDecl, warning |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected String uriDefault
| Constructor Detail |
|---|
public DefaultNamespaceFilter(String defaultNamespace,
XMLReader reader)
defaultNamespace - uri for the jelly namespacereader - XMLReader to filter| Method Detail |
|---|
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class org.xml.sax.helpers.XMLFilterImplprefix - incoming prefixuri - URI to check and potentially replace
SAXException
public void startElement(String uri,
String localName,
String qName,
Attributes atts)
throws SAXException
startElement in interface ContentHandlerstartElement in class org.xml.sax.helpers.XMLFilterImpluri - URI to check and potentially replacelocalName - qName - atts -
SAXException
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
endElement in interface ContentHandlerendElement in class org.xml.sax.helpers.XMLFilterImplnamespaceURI - URI to check and potentially replacelocalName - qName -
SAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||