<?xml version="1.0" encoding="UTF-8"?> | |
<!-- | |
* Licensed to the Apache Software Foundation (ASF) under one | |
* or more contributor license agreements. See the NOTICE file | |
* distributed with this work for additional information | |
* regarding copyright ownership. The ASF licenses this file | |
* to you under the Apache License, Version 2.0 (the | |
* "License"); you may not use this file except in compliance | |
* with the License. You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, | |
* software distributed under the License is distributed on an | |
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | |
* KIND, either express or implied. See the License for the | |
* specific language governing permissions and limitations | |
* under the License. | |
--> | |
<!-- For testing only. --> | |
<casConsumerDescription xmlns="http://uima.apache.org/resourceSpecifier"> | |
<frameworkImplementation>org.apache.uima.java</frameworkImplementation> | |
<implementationName>org.apache.uima.resource.TestCasConsumer</implementationName> | |
<processingResourceMetaData> | |
<name>CAS Consumer for Testing UimaContext</name> | |
<description>For testing the UimaContext.</description> | |
<version>1.0</version> | |
<vendor>The Apache Software Foundation</vendor> | |
<!-- Configuration Parameter Definitions --> | |
<configurationParameters> | |
<configurationParameter> | |
<name>StringParam</name> | |
<description/> | |
<type>String</type> | |
</configurationParameter> | |
<configurationParameter> | |
<name>StringArrayParam</name> | |
<description/> | |
<type>String</type> | |
<multiValued>true</multiValued> | |
</configurationParameter> | |
<configurationParameter> | |
<name>IntegerParam</name> | |
<description/> | |
<type>Integer</type> | |
</configurationParameter> | |
<configurationParameter> | |
<name>IntegerArrayParam</name> | |
<description/> | |
<type>Integer</type> | |
<multiValued>true</multiValued> | |
</configurationParameter> | |
<configurationParameter> | |
<name>FloatParam</name> | |
<description/> | |
<type>Float</type> | |
</configurationParameter> | |
<configurationParameter> | |
<name>FloatArrayParam</name> | |
<description/> | |
<type>Float</type> | |
<multiValued>true</multiValued> | |
</configurationParameter> | |
</configurationParameters> | |
<!-- Values for the configuration parameters --> | |
<configurationParameterSettings> | |
<nameValuePair> | |
<name>StringParam</name> | |
<value> | |
<string>myString</string> | |
</value> | |
</nameValuePair> | |
<nameValuePair> | |
<name>StringArrayParam</name> | |
<value> | |
<array> | |
<string>one</string> | |
<string>two</string> | |
</array> | |
</value> | |
</nameValuePair> | |
<nameValuePair> | |
<name>IntegerParam</name> | |
<value> | |
<integer>42</integer> | |
</value> | |
</nameValuePair> | |
<nameValuePair> | |
<name>IntegerArrayParam</name> | |
<value> | |
<array> | |
<integer>1</integer> | |
<integer>2</integer> | |
<integer>3</integer> | |
</array> | |
</value> | |
</nameValuePair> | |
<nameValuePair> | |
<name>FloatParam</name> | |
<value> | |
<float>3.14</float> | |
</value> | |
</nameValuePair> | |
</configurationParameterSettings> | |
<!-- TypeSystem Definition --> | |
<typeSystemDescription> | |
<types/> | |
</typeSystemDescription> | |
<!-- Capabilities: Inputs and Outputs --> | |
<capabilities> | |
<capability> | |
</capability> | |
</capabilities> | |
</processingResourceMetaData> | |
<externalResourceDependencies> | |
<externalResourceDependency> | |
<key>TestFileResource</key> | |
<description/> | |
</externalResourceDependency> | |
<externalResourceDependency> | |
<key>TestFileLanguageResource</key> | |
<description/> | |
</externalResourceDependency> | |
<externalResourceDependency> | |
<key>TestResourceObject</key> | |
<description/> | |
<interfaceName>org.apache.uima.resource.impl.TestResourceInterface</interfaceName> | |
</externalResourceDependency> | |
<externalResourceDependency> | |
<key>TestLanguageResourceObject</key> | |
<description/> | |
<interfaceName>org.apache.uima.resource.impl.TestResourceInterface</interfaceName> | |
</externalResourceDependency> | |
<externalResourceDependency> | |
<key>OtherFileResource</key> | |
<description/> | |
</externalResourceDependency> | |
<externalResourceDependency> | |
<key>AdditionalResource</key> | |
<description/> | |
<interfaceName>org.apache.uima.resource.impl.TestResourceInterface</interfaceName> | |
<optional>true</optional> | |
</externalResourceDependency> | |
</externalResourceDependencies> | |
<resourceManagerConfiguration> | |
<externalResources> | |
<externalResource> | |
<name>MyFileResource</name> | |
<description/> | |
<fileResourceSpecifier> | |
<fileUrl>file:testDataFile.dat</fileUrl> | |
</fileResourceSpecifier> | |
</externalResource> | |
<externalResource> | |
<name>MyFileLanguageResource</name> | |
<description/> | |
<fileLanguageResourceSpecifier> | |
<fileUrlPrefix>file:FileLanguageResource_implTest_data_</fileUrlPrefix> | |
<fileUrlSuffix>.dat</fileUrlSuffix> | |
</fileLanguageResourceSpecifier> | |
</externalResource> | |
<externalResource> | |
<name>MyResourceObject</name> | |
<description/> | |
<fileResourceSpecifier> | |
<fileUrl>file:testDataFile.dat</fileUrl> | |
</fileResourceSpecifier> | |
<implementationName> | |
org.apache.uima.resource.impl.TestResourceInterface_impl</implementationName> | |
</externalResource> | |
<externalResource> | |
<name>MyLanguageResourceObject</name> | |
<description/> | |
<fileLanguageResourceSpecifier> | |
<fileUrlPrefix>file:FileLanguageResource_implTest_data_</fileUrlPrefix> | |
<fileUrlSuffix>.dat</fileUrlSuffix> | |
</fileLanguageResourceSpecifier> | |
<implementationName> | |
org.apache.uima.resource.impl.TestResourceInterface_impl</implementationName> | |
</externalResource> | |
<externalResource> | |
<name>MyOtherFileResource</name> | |
<description/> | |
<fileResourceSpecifier> | |
<fileUrl>Test.dat</fileUrl> | |
</fileResourceSpecifier> | |
</externalResource> | |
</externalResources> | |
<externalResourceBindings> | |
<externalResourceBinding> | |
<key>TestFileResource</key> | |
<resourceName>MyFileResource</resourceName> | |
</externalResourceBinding> | |
<externalResourceBinding> | |
<key>TestFileLanguageResource</key> | |
<resourceName>MyFileLanguageResource</resourceName> | |
</externalResourceBinding> | |
<externalResourceBinding> | |
<key>TestResourceObject</key> | |
<resourceName>MyResourceObject</resourceName> | |
</externalResourceBinding> | |
<externalResourceBinding> | |
<key>TestLanguageResourceObject</key> | |
<resourceName>MyLanguageResourceObject</resourceName> | |
</externalResourceBinding> | |
<externalResourceBinding> | |
<key>OtherFileResource</key> | |
<resourceName>MyOtherFileResource</resourceName> | |
</externalResourceBinding> | |
</externalResourceBindings> | |
</resourceManagerConfiguration> | |
</casConsumerDescription> |