public class XmlSaxEventHandlerImpl extends AbstractSaxEventHandler
Metacards. By default, handles all
elements defined in the xmlToMetacard These defaults can be
overridden by passing a different Map in XmlSaxEventHandlerImpl#setXmlToMetacard(Map) | Modifier | Constructor and Description |
|---|---|
protected |
XmlSaxEventHandlerImpl() |
protected |
XmlSaxEventHandlerImpl(Map<String,String> xmlToMetacardMap) |
| Modifier and Type | Method and Description |
|---|---|
void |
characters(char[] ch,
int start,
int length)
Takes in a sax event from
SaxEventHandlerDelegate and adds the characters
to textDataOfElement |
void |
endElement(String namespaceURI,
String localName,
String qName)
Takes in a sax event from
SaxEventHandlerDelegate. |
List<Attribute> |
getAttributes() |
Set<AttributeDescriptor> |
getSupportedAttributeDescriptors()
Get all the possible attribute types that can be returned by this factory's handler
|
void |
startDocument() |
void |
startElement(String uri,
String localName,
String qName,
Attributes attributes)
Takes in a sax event from
SaxEventHandlerDelegate, and if it is in the
xmlToMetacardMapping, begin reading it. |
endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startPrefixMappingpublic List<Attribute> getAttributes()
public Set<AttributeDescriptor> getSupportedAttributeDescriptors()
SaxEventHandlerpublic void startDocument()
startDocument in interface ContentHandlerstartDocument in class AbstractSaxEventHandlerpublic void startElement(String uri, String localName, String qName, Attributes attributes)
SaxEventHandlerDelegate, and if it is in the
xmlToMetacardMapping, begin reading it.uri - the URI that is passed in by SaxEventHandlerDelegatelocalName - the localName that is passed in by SaxEventHandlerDelegateqName - the qName that is passed in by SaxEventHandlerDelegateattributes - the attributes that are passed in by SaxEventHandlerDelegatepublic void endElement(String namespaceURI, String localName, String qName)
SaxEventHandlerDelegate. If the element is in the
xmlToElementMapping, add it to the attributes listnamespaceURI - the namespaceURI that is passed in by SaxEventHandlerDelegatelocalName - the localName that is passed in by SaxEventHandlerDelegateqName - the qName that is passed in by SaxEventHandlerDelegatepublic void characters(char[] ch,
int start,
int length)
SaxEventHandlerDelegate and adds the characters
to textDataOfElementch - the ch that is passed in by SaxEventHandlerDelegatestart - the start that is passed in by SaxEventHandlerDelegatelength - the length that is passed in by SaxEventHandlerDelegateThis work is licensed under a Creative Commons Attribution 4.0 International License.