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
FieldsModifier and TypeFieldDescriptionprotected Stringprotected MessageReceiver<SimpleMessage<XMLDocumentIdentifier>>protected Stringprotected StringFields inherited from class eu.bandm.tools.util.ContentProxy
out -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcheckMapping(String uri, String qname) voidendElement(String uri, String localName, String qName) voidendPrefixMapping(String prefix) protected voidTaken from bt, NamespaceNamevoidstartElement(String uri, String localName, String qName, Attributes attrs) protected voidstartMapping(String uri, String prefix) voidstartPrefixMapping(String prefix, String uri) Methods inherited from class eu.bandm.tools.util.ContentProxy
characters, endDocument, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocumentMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods 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:
endElementin interfaceContentHandler- Overrides:
endElementin classContentProxy- Throws:
SAXException
-
endPrefixMapping
- Specified by:
endPrefixMappingin interfaceContentHandler- Overrides:
endPrefixMappingin classContentProxy- Throws:
SAXException
-
startElement
public void startElement(String uri, String localName, String qName, Attributes attrs) throws SAXException - Specified by:
startElementin interfaceContentHandler- Overrides:
startElementin classContentProxy- Throws:
SAXException
-
startPrefixMapping
- Specified by:
startPrefixMappingin interfaceContentHandler- Overrides:
startPrefixMappingin classContentProxy- Throws:
SAXException
-