|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.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 java.lang.String |
uriDefault
|
Constructor Summary | |
---|---|
DefaultNamespaceFilter(java.lang.String defaultNamespace,
org.xml.sax.XMLReader reader)
Filter for undefined an undefined namespace |
Method Summary | |
---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName)
All incoming empty URIs will be remapped to the default. |
void |
startElement(java.lang.String uri,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts)
All incoming empty URIs will be remapped to the default. |
void |
startPrefixMapping(java.lang.String prefix,
java.lang.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 java.lang.String uriDefault
Constructor Detail |
---|
public DefaultNamespaceFilter(java.lang.String defaultNamespace, org.xml.sax.XMLReader reader)
defaultNamespace
- uri for the jelly namespacereader
- XMLReader to filterMethod Detail |
---|
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException
startPrefixMapping
in interface org.xml.sax.ContentHandler
startPrefixMapping
in class org.xml.sax.helpers.XMLFilterImpl
prefix
- incoming prefixuri
- URI to check and potentially replace
org.xml.sax.SAXException
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException
startElement
in interface org.xml.sax.ContentHandler
startElement
in class org.xml.sax.helpers.XMLFilterImpl
uri
- URI to check and potentially replacelocalName
- qName
- atts
-
org.xml.sax.SAXException
public void endElement(java.lang.String namespaceURI, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException
endElement
in interface org.xml.sax.ContentHandler
endElement
in class org.xml.sax.helpers.XMLFilterImpl
namespaceURI
- URI to check and potentially replacelocalName
- qName
-
org.xml.sax.SAXException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |