jInfer

cz.cuni.mff.ksi.jinfer.basicigg.xpath
Class XPathProcessor

java.lang.Object
  extended by cz.cuni.mff.ksi.jinfer.basicigg.xpath.XPathProcessor
All Implemented Interfaces:
Processor<Element>

public class XPathProcessor
extends Object
implements Processor<Element>

Implementation of Processor providing logic for IG retrieval from XPath 1.0 queries.


Constructor Summary
XPathProcessor()
           
 
Method Summary
 String getExtension()
          Which extension can this processor process.
 FolderType getFolder()
          Which folder does this processor operate on.
 Class<?> getResultType()
          Get Class of the type this processor returns by process method within List.
 List<Element> process(InputStream s)
          Parses the file containing a list of XPath queries and returns the IG rules contained within.
 boolean processUndefined()
          Whether this processor can process also different extensions than that specified in Processor.getExtension().
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathProcessor

public XPathProcessor()
Method Detail

getExtension

public String getExtension()
Description copied from interface: Processor
Which extension can this processor process.

Specified by:
getExtension in interface Processor<Element>
Returns:
File extension this processor can process.

processUndefined

public boolean processUndefined()
Description copied from interface: Processor
Whether this processor can process also different extensions than that specified in Processor.getExtension().

Specified by:
processUndefined in interface Processor<Element>
Returns:
True if this processor can process files with extensions different from what Processor.getExtension() reports. False otherwise.

getFolder

public FolderType getFolder()
Description copied from interface: Processor
Which folder does this processor operate on.

Specified by:
getFolder in interface Processor<Element>
Returns:
Folder on which this processor operates.

process

public List<Element> process(InputStream s)
Parses the file containing a list of XPath queries and returns the IG rules contained within.

Specified by:
process in interface Processor<Element>
Parameters:
s - File containing a list of XPath queries. One query per line, lines beginning with "#" are ignored.
Returns:
List of IG rules retrieved from it.

getResultType

public Class<?> getResultType()
Description copied from interface: Processor
Get Class of the type this processor returns by process method within List.

Specified by:
getResultType in interface Processor<Element>
Returns:
Class of the type this processor returns by process method within List.

jInfer

Generated on Fri Dec 9 00:01:25 CET 2011