jInfer

cz.cuni.mff.ksi.jinfer.basicigg.xml
Class XMLProcessor

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

public class XMLProcessor
extends Object
implements Processor<Element>

Implementation of Processor providing logic for IG retrieval from XML documents.


Constructor Summary
XMLProcessor()
           
 
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 f)
          Returns the List of type defined for this processor which represents the input.
 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

XMLProcessor

public XMLProcessor()
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 f)
Description copied from interface: Processor
Returns the List of type defined for this processor which represents the input.

Specified by:
process in interface Processor<Element>
Parameters:
f - Input of any arbitrary type.
Returns:
Rules contained within. Empty list if there are no rules or an error occurs.

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