public class ElementMetadataHandler extends org.xml.sax.helpers.DefaultHandler
Constructor and Description |
---|
ElementMetadataHandler(String uri,
String localName,
Metadata metadata,
Property targetProperty) |
ElementMetadataHandler(String uri,
String localName,
Metadata metadata,
String name) |
Modifier and Type | Method and Description |
---|---|
protected void |
addMetadata(String value)
Adds the given metadata value.
|
void |
characters(char[] ch,
int start,
int length) |
void |
endElement(String uri,
String localName,
String name) |
void |
ignorableWhitespace(char[] ch,
int start,
int length) |
protected boolean |
isMatchingElement(String uri,
String localName) |
protected boolean |
isMatchingParentElement(String uri,
String localName) |
void |
startElement(String uri,
String localName,
String name,
Attributes attributes) |
endDocument, endPrefixMapping, error, fatalError, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
public ElementMetadataHandler(String uri, String localName, Metadata metadata, String name)
public void startElement(String uri, String localName, String name, Attributes attributes)
startElement
in interface ContentHandler
startElement
in class org.xml.sax.helpers.DefaultHandler
public void endElement(String uri, String localName, String name)
endElement
in interface ContentHandler
endElement
in class org.xml.sax.helpers.DefaultHandler
public void characters(char[] ch, int start, int length)
characters
in interface ContentHandler
characters
in class org.xml.sax.helpers.DefaultHandler
public void ignorableWhitespace(char[] ch, int start, int length)
ignorableWhitespace
in interface ContentHandler
ignorableWhitespace
in class org.xml.sax.helpers.DefaultHandler
protected void addMetadata(String value)
null
or empty. If the metadata entry already exists,
then the given value is appended to it with a comma as the separator.value
- metadata valueCopyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.