You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2014/02/17 17:35:06 UTC
svn commit: r1569049 -
/uima/uimafit/trunk/uimafit-docbook/src/docbook/tools.uimafit.externalresources.xml
Author: rec
Date: Mon Feb 17 16:35:06 2014
New Revision: 1569049
URL: http://svn.apache.org/r1569049
Log:
[UIMA-3591] Multi-values parameter does not accept single value when @ConfigurationParameter is not present
Modified:
uima/uimafit/trunk/uimafit-docbook/src/docbook/tools.uimafit.externalresources.xml
Modified: uima/uimafit/trunk/uimafit-docbook/src/docbook/tools.uimafit.externalresources.xml
URL: http://svn.apache.org/viewvc/uima/uimafit/trunk/uimafit-docbook/src/docbook/tools.uimafit.externalresources.xml?rev=1569049&r1=1569048&r2=1569049&view=diff
==============================================================================
--- uima/uimafit/trunk/uimafit-docbook/src/docbook/tools.uimafit.externalresources.xml (original)
+++ uima/uimafit/trunk/uimafit-docbook/src/docbook/tools.uimafit.externalresources.xml Mon Feb 17 16:35:06 2014
@@ -80,6 +80,18 @@ createDependencyAndBind(tokenizer, UimaU
easily. However, OpenNLP declares parameters centrally in <classname>UimaUtil</classname>.
Thus, the example above is correct, although unconvential.</para>
</note>
+ <note>
+ <para>Note that uimaFIT is unable to perform type-coercion on parameters if a descriptor
+ is created from a class that does not contain <classname>@ConfigurationParameter</classname>
+ annotations, such as the OpenNLP <classname>Tokenizer</classname>. Such a descriptor does
+ not contain any parameter declarations! However, it is
+ still possible to configure such a component using uimaFIT by passing exactly the expected
+ types as parameter values. Thus, we need use the <methodname>getName()</methodname> method
+ to get the class name as a string, instead of simply passing the class itself. Also, setting
+ multi-valued parameter from a list or single value does not work here. Multi-values parameters
+ must be passed as an array of the required type. Only the default UIMA types are possible:
+ <type>String</type>, <type>boolean</type>, <type>int</type>, and <type>float</type>.</para>
+ </note>
</section>
<section>
<title>uimaFIT-aware components</title>