Package eu.bandm.tools.util2
Class NamespaceFilter
java.lang.Object
eu.bandm.tools.util.ContentProxy
eu.bandm.tools.util2.NamespaceFilter
- All Implemented Interfaces:
ContentHandler
Makes name space references explicit.
Is intended for use-once !
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionprotected String
protected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>>
protected String
protected String
Fields inherited from class eu.bandm.tools.util.ContentProxy
out
-
Constructor Summary
ConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected void
checkMapping
(String uri, String qname) void
endElement
(String uri, String localName, String qName) void
endPrefixMapping
(String prefix) protected void
Taken from bt, NamespaceNamevoid
startElement
(String uri, String localName, String qName, Attributes attrs) protected void
startMapping
(String uri, String prefix) void
startPrefixMapping
(String prefix, String uri) Methods inherited from class eu.bandm.tools.util.ContentProxy
characters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
prefix2prefix
-
prefix2uri
-
uri2prefix
-
msg
-
qname
-
prefix
-
localname
-
-
Constructor Details
-
NamespaceFilter
public NamespaceFilter(ContentHandler out, MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg)
-
-
Method Details
-
split
Taken from bt, NamespaceName -
startMapping
-
checkMapping
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classContentProxy
- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Overrides:
endPrefixMapping
in classContentProxy
- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classContentProxy
- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Overrides:
startPrefixMapping
in classContentProxy
- Throws:
SAXException
-