Package org.apache.any23.extractor.xpath
Interface XPathExtractionRule
- 
- All Known Subinterfaces:
 TemplateXPathExtractionRule
- All Known Implementing Classes:
 TemplateXPathExtractionRuleImpl
public interface XPathExtractionRuleDefines an extraction rule for theXPathExtractor.- Author:
 - Michele Mostarda (mostarda@fbk.eu)
 
 
- 
- 
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanacceptIRI(org.eclipse.rdf4j.model.IRI uri)Checks if the rule can be applied on the given document IRI.StringgetName()voidprocess(Document in, ExtractionResult out)Processes this extraction rule on the given document. 
 - 
 
- 
- 
Method Detail
- 
getName
String getName()
- Returns:
 - the human readable rule name.
 
 
- 
acceptIRI
boolean acceptIRI(org.eclipse.rdf4j.model.IRI uri)
Checks if the rule can be applied on the given document IRI.- Parameters:
 uri- input document IRI.- Returns:
 trueif applied,falseotherwise.
 
- 
process
void process(Document in, ExtractionResult out)
Processes this extraction rule on the given document.- Parameters:
 in- input document to be processed.out- output result writer.
 
 - 
 
 -