org.apache.any23.extractor.xpath
Interface XPathExtractionRule

All Known Subinterfaces:
TemplateXPathExtractionRule
All Known Implementing Classes:
TemplateXPathExtractionRuleImpl

public interface XPathExtractionRule

Defines an extraction rule for the XPathExtractor.

Author:
Michele Mostarda (mostarda@fbk.eu)

Method Summary
 boolean acceptURI(org.openrdf.model.URI uri)
          Checks if the rule can be applied on the given document URI.
 String getName()
           
 void process(Document in, ExtractionResult out)
          Processes this extraction rule on the given document.
 

Method Detail

getName

String getName()
Returns:
the human readable rule name.

acceptURI

boolean acceptURI(org.openrdf.model.URI uri)
Checks if the rule can be applied on the given document URI.

Parameters:
uri - input document URI.
Returns:
true if applied, false otherwise.

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.


Copyright © 2010-2012 The Apache Software Foundation. All Rights Reserved.