Package 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

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `boolean` | `acceptIRI​(org.eclipse.rdf4j.model.IRI uri)` | Checks if the rule can be applied on the given document IRI.
    `String` | `getName()` |
    `void` | `process​(Document in, org.apache.any23.extractor.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:
        `true` if applied, `false` otherwise.

    - #### process

          void process​(Document in,
                       org.apache.any23.extractor.ExtractionResult out)

      Processes this extraction rule on the given document.
      Parameters:
        `in` - input document to be processed.
        `out` - output result writer.