public class ElementMappingContentHandler extends ContentHandlerDecorator
QName
s using
a Map
. Not mappable elements are not forwarded.
Attributes may also be mapped (for each element different using
a Map
for attributes), not mappable attributes are not
forwarded. The default is to not map any attributes and therefore do
not forward any of them.Modifier and Type | Class and Description |
---|---|
static class |
ElementMappingContentHandler.TargetElement |
Constructor and Description |
---|
ElementMappingContentHandler(org.xml.sax.ContentHandler handler,
java.util.Map<javax.xml.namespace.QName,ElementMappingContentHandler.TargetElement> mappings) |
Modifier and Type | Method and Description |
---|---|
void |
endElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName) |
void |
startElement(java.lang.String namespaceURI,
java.lang.String localName,
java.lang.String qName,
org.xml.sax.Attributes atts) |
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, toString
public ElementMappingContentHandler(org.xml.sax.ContentHandler handler, java.util.Map<javax.xml.namespace.QName,ElementMappingContentHandler.TargetElement> mappings)
public void startElement(java.lang.String namespaceURI, 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 ContentHandlerDecorator
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 ContentHandlerDecorator
org.xml.sax.SAXException
Copyright © 2010 - 2020 Adobe. All Rights Reserved