org.apache.slide.extractor
Class SimpleXmlExtractor
java.lang.Object
org.apache.slide.extractor.AbstractPropertyExtractor
org.apache.slide.extractor.SimpleXmlExtractor
- All Implemented Interfaces:
- Configurable, Extractor, PropertyExtractor
- public class SimpleXmlExtractor
- extends AbstractPropertyExtractor
- implements Configurable
The SimpleXmlExtractor class
Constructor Summary |
SimpleXmlExtractor(java.lang.String uri,
java.lang.String contentType,
java.lang.String namespace)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
instructions
protected java.util.List instructions
SimpleXmlExtractor
public SimpleXmlExtractor(java.lang.String uri,
java.lang.String contentType,
java.lang.String namespace)
extract
public java.util.Map extract(java.io.InputStream content)
throws ExtractorException
- Description copied from interface:
PropertyExtractor
- Will be called before content and properties are stored
?Gets extracted property value from the resource, for example "author"
?for a word doc, ...
- Specified by:
extract
in interface PropertyExtractor
- Specified by:
extract
in class AbstractPropertyExtractor
- Throws:
ExtractorException
configure
public void configure(Configuration configuration)
throws ConfigurationException
- Specified by:
configure
in interface Configurable
- Throws:
ConfigurationException
filter
protected java.lang.Object filter(java.util.List nodeList,
SimpleXmlExtractor.Instruction instruction)
throws ExtractorException
- Allow subclasses to apply filtering to property values before they are written.
Returning null signals that the extractor ignors this value.
- Returns:
- the property value to be set,
null if to be ignored.
- Throws:
ExtractorException
addInstruction
protected void addInstruction(SimpleXmlExtractor.Instruction instruction)
createInstruction
protected SimpleXmlExtractor.Instruction createInstruction(Configuration instruction)
throws ConfigurationException
- Throws:
ConfigurationException