Package org.apache.uima.fit.factory
Class CollectionReaderFactory
java.lang.Object
org.apache.uima.fit.factory.CollectionReaderFactory
-
Method Summary
Modifier and TypeMethodDescriptionstatic org.apache.uima.collection.CollectionReader
createCollectionReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReader
createCollectionReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReader
createCollectionReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) static org.apache.uima.collection.CollectionReader
createCollectionReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) static org.apache.uima.collection.CollectionReader
createCollectionReader
(String descriptorName, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReader
createCollectionReader
(org.apache.uima.collection.CollectionReaderDescription desc, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReaderDescription
createCollectionReaderDescriptionFromPath
(String descriptorPath, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReader
createCollectionReaderFromPath
(String descriptorPath, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) Deprecated.static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, Object... configurationData) static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues) static org.apache.uima.collection.CollectionReaderDescription
createDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, org.apache.uima.resource.ExternalResourceDescription> externalResources) static org.apache.uima.collection.CollectionReader
createReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters.static org.apache.uima.collection.CollectionReader
createReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters.static org.apache.uima.collection.CollectionReader
createReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) static org.apache.uima.collection.CollectionReader
createReader
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) static org.apache.uima.collection.CollectionReader
createReader
(String descriptorName, Object... configurationData) Get a CollectionReader from the name (Java-style, dotted) of an XML descriptor file, and a set of configuration parameters.static org.apache.uima.collection.CollectionReader
createReader
(org.apache.uima.collection.CollectionReaderDescription desc, Object... configurationData) This method creates a CollectionReader from a CollectionReaderDescription adding additional configuration parameter data as desiredstatic org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) A simple factory method for creating a CollectionReaderDescription with a given class, type system description, and configuration data.static org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) A simple factory method for creating a CollectionReaderDescription with a given class, type system description, and configuration datastatic org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) static org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) static org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, Object... configurationData) static org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues) static org.apache.uima.collection.CollectionReaderDescription
createReaderDescription
(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, org.apache.uima.resource.ExternalResourceDescription> externalResources) The factory method for creating CollectionReaderDescription objects for a given class, TypeSystemDescription, TypePriorities, capabilities, and configuration datastatic org.apache.uima.collection.CollectionReaderDescription
createReaderDescriptionFromPath
(String descriptorPath, Object... configurationData) Create a CollectionReader from an XML descriptor file and a set of configuration parameters.static org.apache.uima.collection.CollectionReader
createReaderFromPath
(String descriptorPath, Object... configurationData) Create a CollectionReader from an XML descriptor file and a set of configuration parameters.
-
Method Details
-
createReaderFromPath
public static org.apache.uima.collection.CollectionReader createReaderFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException, org.apache.uima.util.InvalidXMLException, IOException Create a CollectionReader from an XML descriptor file and a set of configuration parameters.- Parameters:
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created from the XML descriptor and the configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedorg.apache.uima.util.InvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be read
-
createCollectionReaderFromPath
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReaderFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException, org.apache.uima.util.InvalidXMLException, IOException Deprecated.Create a CollectionReader from an XML descriptor file and a set of configuration parameters.- Parameters:
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created from the XML descriptor and the configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedorg.apache.uima.util.InvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be read
-
createReaderDescriptionFromPath
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescriptionFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException Create a CollectionReader from an XML descriptor file and a set of configuration parameters.- Parameters:
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- the description created from the XML descriptor and the configuration parameters.
- Throws:
org.apache.uima.util.InvalidXMLException
- if the descriptor could not be created or if the component could not be instantiatedIOException
- if the descriptor could not be read
-
createCollectionReaderDescriptionFromPath
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createCollectionReaderDescriptionFromPath(String descriptorPath, Object... configurationData) throws org.apache.uima.util.InvalidXMLException, IOException Deprecated.Create a CollectionReader from an XML descriptor file and a set of configuration parameters.- Parameters:
descriptorPath
- The path to the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created from the XML descriptor and the configuration parameters.
- Throws:
org.apache.uima.util.InvalidXMLException
- if the descriptor could not be created or if the component could not be instantiatedIOException
- if the descriptor could not be read
-
createReader
public static org.apache.uima.collection.CollectionReader createReader(String descriptorName, Object... configurationData) throws IOException, org.apache.uima.resource.ResourceInitializationException, org.apache.uima.util.InvalidXMLException Get a CollectionReader from the name (Java-style, dotted) of an XML descriptor file, and a set of configuration parameters.- Parameters:
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The AnalysisEngine created from the XML descriptor and the configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedorg.apache.uima.util.InvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be read
-
createCollectionReader
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReader(String descriptorName, Object... configurationData) throws IOException, org.apache.uima.resource.ResourceInitializationException, org.apache.uima.util.InvalidXMLException Deprecated.Get a CollectionReader from the name (Java-style, dotted) of an XML descriptor file, and a set of configuration parameters.- Parameters:
descriptorName
- The fully qualified, Java-style, dotted name of the XML descriptor file.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The AnalysisEngine created from the XML descriptor and the configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be created or if the component could not be instantiatedorg.apache.uima.util.InvalidXMLException
- if the descriptor could not be createdIOException
- if the descriptor could not be read
-
createReader
public static org.apache.uima.collection.CollectionReader createReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
.- Parameters:
readerClass
- The class of the CollectionReader to be created.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createCollectionReader
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Deprecated.Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
.- Parameters:
readerClass
- The class of the CollectionReader to be created.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createReader
public static org.apache.uima.collection.CollectionReader createReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters.- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createCollectionReader
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Deprecated.Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters.- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createReader
@Deprecated public static org.apache.uima.collection.CollectionReader createReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters.- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createCollectionReader
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Get a CollectionReader from a CollectionReader class, a type system, and a set of configuration parameters.- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- Any additional configuration parameters to be set. These should be supplied as (name, value) pairs, so there should always be an even number of parameters.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createReader
public static org.apache.uima.collection.CollectionReader createReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createCollectionReader
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReader(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createReader
public static org.apache.uima.collection.CollectionReader createReader(org.apache.uima.collection.CollectionReaderDescription desc, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException This method creates a CollectionReader from a CollectionReaderDescription adding additional configuration parameter data as desired- Parameters:
desc
- a descriptorconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createCollectionReader
@Deprecated public static org.apache.uima.collection.CollectionReader createCollectionReader(org.apache.uima.collection.CollectionReaderDescription desc, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Deprecated.This method creates a CollectionReader from a CollectionReaderDescription adding additional configuration parameter data as desired- Parameters:
desc
- a descriptorconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- The CollectionReader created and initialized with the type system and configuration parameters.
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the component could not be initialized
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException A simple factory method for creating a CollectionReaderDescription with a given class, type system description, and configuration data. The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
. Type priorities are detected automatically usingTypePrioritiesFactory.createTypePriorities()
. Indexes are detected automatically usingFsIndexFactory.createFsIndexCollection()
.- Parameters:
readerClass
- The class of the CollectionReader to be created.configurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Deprecated.A simple factory method for creating a CollectionReaderDescription with a given class, type system description, and configuration data The type system is detected automatically usingTypeSystemDescriptionFactory.createTypeSystemDescription()
.- Parameters:
readerClass
- The class of the CollectionReader to be created.configurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException A simple factory method for creating a CollectionReaderDescription with a given class, type system description, and configuration data- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Deprecated.A simple factory method for creating a CollectionReaderDescription with a given class, type system description, and configuration data- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).configurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, String[] prioritizedTypeNames, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).prioritizedTypeNames
- the type names in order of their priority.configurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, Object... configurationData) throws org.apache.uima.resource.ResourceInitializationException Deprecated.- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationData
- configuration parameter data as name value pairs. Will override values already set in the description.- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws org.apache.uima.resource.ResourceInitializationException - Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parameters- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues) throws org.apache.uima.resource.ResourceInitializationException Deprecated.- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parameters- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReaderDescription
public static org.apache.uima.collection.CollectionReaderDescription createReaderDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, org.apache.uima.resource.ExternalResourceDescription> externalResources) throws org.apache.uima.resource.ResourceInitializationExceptionThe factory method for creating CollectionReaderDescription objects for a given class, TypeSystemDescription, TypePriorities, capabilities, and configuration data- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parametersexternalResources
- the external resources- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createDescription
@Deprecated public static org.apache.uima.collection.CollectionReaderDescription createDescription(Class<? extends org.apache.uima.collection.CollectionReader> readerClass, org.apache.uima.resource.metadata.TypeSystemDescription typeSystem, org.apache.uima.resource.metadata.TypePriorities typePriorities, org.apache.uima.resource.metadata.FsIndexCollection indexes, org.apache.uima.resource.metadata.Capability[] capabilities, org.apache.uima.resource.metadata.ConfigurationParameter[] configurationParameters, Object[] configurationValues, Map<String, org.apache.uima.resource.ExternalResourceDescription> externalResources) throws org.apache.uima.resource.ResourceInitializationExceptionDeprecated.The factory method for creating CollectionReaderDescription objects for a given class, TypeSystemDescription, TypePriorities, capabilities, and configuration data- Parameters:
readerClass
- The class of the CollectionReader to be created.typeSystem
- A description of the types used by the CollectionReader (may be null).typePriorities
- the type prioritiesindexes
- the index definitionscapabilities
- the input and output capabilitiesconfigurationParameters
- the configuration parametersconfigurationValues
- the configuration values associated with the parametersexternalResources
- the external resources- Returns:
- the description created from the default parameters specified in the class and the configuration parameters
- Throws:
org.apache.uima.resource.ResourceInitializationException
- if the descriptor could not be set up
-
createReader(Class, Object...)