Package de.julielab.jcore.reader.xmi
Class XmiCollectionReader
- java.lang.Object
-
- org.apache.uima.resource.Resource_ImplBase
-
- org.apache.uima.resource.ConfigurableResource_ImplBase
-
- org.apache.uima.collection.CollectionReader_ImplBase
-
- de.julielab.jcore.reader.xmi.XmiCollectionReader
-
- All Implemented Interfaces:
org.apache.uima.collection.base_cpm.BaseCollectionReader,org.apache.uima.collection.CollectionReader,org.apache.uima.resource.ConfigurableResource,org.apache.uima.resource.Resource
public class XmiCollectionReader extends org.apache.uima.collection.CollectionReader_ImplBaseA simple collection reader that reads CASes in XMI format from a directory in the filesystem.
-
-
Field Summary
Fields Modifier and Type Field Description static StringPARAM_INPUTDIRName of configuration parameter that must be set to the path of a directory containing the XMI files.static StringPARAM_RECURSIVEName of configuration parameter which indicates if subdirectories (recursively) of PARAM_INPUTDIR are to be searched for XMI files as well.
-
Constructor Summary
Constructors Constructor Description XmiCollectionReader()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()voidgetNext(org.apache.uima.cas.CAS aCAS)org.apache.uima.util.Progress[]getProgress()booleanhasNext()voidinitialize()-
Methods inherited from class org.apache.uima.collection.CollectionReader_ImplBase
destroy, getCasInitializer, getProcessingResourceMetaData, initialize, isConsuming, reconfigure, setCasInitializer, typeSystemInit
-
Methods inherited from class org.apache.uima.resource.ConfigurableResource_ImplBase
getConfigParameterValue, getConfigParameterValue, setConfigParameterValue, setConfigParameterValue
-
Methods inherited from class org.apache.uima.resource.Resource_ImplBase
getCasManager, getLogger, getMetaData, getRelativePathResolver, getResourceManager, getUimaContext, getUimaContextAdmin, setLogger, setMetaData
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
-
-
Field Detail
-
PARAM_INPUTDIR
public static final String PARAM_INPUTDIR
Name of configuration parameter that must be set to the path of a directory containing the XMI files.- See Also:
- Constant Field Values
-
PARAM_RECURSIVE
public static final String PARAM_RECURSIVE
Name of configuration parameter which indicates if subdirectories (recursively) of PARAM_INPUTDIR are to be searched for XMI files as well.- See Also:
- Constant Field Values
-
-
Method Detail
-
initialize
public void initialize() throws org.apache.uima.resource.ResourceInitializationException- Overrides:
initializein classorg.apache.uima.collection.CollectionReader_ImplBase- Throws:
org.apache.uima.resource.ResourceInitializationException- See Also:
com.ibm.uima.collection.CollectionReader_ImplBase#initialize()
-
hasNext
public boolean hasNext()
- See Also:
com.ibm.uima.collection.CollectionReader#hasNext()
-
getNext
public void getNext(org.apache.uima.cas.CAS aCAS) throws IOException, org.apache.uima.collection.CollectionException- Throws:
IOExceptionorg.apache.uima.collection.CollectionException- See Also:
com.ibm.uima.collection.CollectionReader#getNext(com.ibm.uima.cas.CAS)
-
close
public void close() throws IOException- Throws:
IOException- See Also:
com.ibm.uima.collection.base_cpm.BaseCollectionReader#close()
-
getProgress
public org.apache.uima.util.Progress[] getProgress()
- See Also:
com.ibm.uima.collection.base_cpm.BaseCollectionReader#getProgress()
-
-