You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@uima.apache.org by Ar...@bka.bund.de on 2014/05/19 11:03:10 UTC
uimafit - String[] parameter in Resource_ImplBase
Hi!
I can't use a configuration parameter of type String[] in a class extending Resource_ImplBase. A cast exception is thrown. A simple String works fine. Arrays doesn't. Is it even possible to use an array of String as parameter with Resource_ImplBase?
Cheers
Armin
AW: uimafit - String[] parameter in Resource_ImplBase
Posted by Ar...@bka.bund.de.
Hi Richard,
I will try that and report back.
Thanks
Armin
-----Ursprüngliche Nachricht-----
Von: Richard Eckart de Castilho [mailto:rec@apache.org]
Gesendet: Montag, 19. Mai 2014 11:11
An: user@uima.apache.org
Betreff: Re: uimafit - String[] parameter in Resource_ImplBase
Hi Armin,
UIMA only supports simple String parameters on Resource_ImplBase. You can alternatively implement SharedResourceObject and then you can also use String[] and other types of parameters. There is some documentation on this in the uimaFIT manual [1].
-- Richard
[1] http://uima.apache.org/d/uimafit-current/tools.uimafit.book.html#d5e482
On 19.05.2014, at 11:03, <Ar...@bka.bund.de> <Ar...@bka.bund.de> wrote:
> Hi!
>
> I can't use a configuration parameter of type String[] in a class extending Resource_ImplBase. A cast exception is thrown. A simple String works fine. Arrays doesn't. Is it even possible to use an array of String as parameter with Resource_ImplBase?
>
> Cheers
> Armin
Re: uimafit - String[] parameter in Resource_ImplBase
Posted by Richard Eckart de Castilho <re...@apache.org>.
Hi Armin,
UIMA only supports simple String parameters on Resource_ImplBase. You can alternatively implement SharedResourceObject and then you can also use String[] and other types of parameters. There is some documentation on this in the uimaFIT manual [1].
-- Richard
[1] http://uima.apache.org/d/uimafit-current/tools.uimafit.book.html#d5e482
On 19.05.2014, at 11:03, <Ar...@bka.bund.de> <Ar...@bka.bund.de> wrote:
> Hi!
>
> I can't use a configuration parameter of type String[] in a class extending Resource_ImplBase. A cast exception is thrown. A simple String works fine. Arrays doesn't. Is it even possible to use an array of String as parameter with Resource_ImplBase?
>
> Cheers
> Armin