You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@uima.apache.org by "Richard Eckart de Castilho (JIRA)" <de...@uima.apache.org> on 2013/03/30 20:11:16 UTC

[jira] [Resolved] (UIMA-2780) Initialize multi-value parameters with a single value

     [ https://issues.apache.org/jira/browse/UIMA-2780?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Richard Eckart de Castilho resolved UIMA-2780.
----------------------------------------------

    Resolution: Fixed
    
> Initialize multi-value parameters with a single value
> -----------------------------------------------------
>
>                 Key: UIMA-2780
>                 URL: https://issues.apache.org/jira/browse/UIMA-2780
>             Project: UIMA
>          Issue Type: Improvement
>          Components: uimaFIT
>            Reporter: Richard Eckart de Castilho
>            Assignee: Richard Eckart de Castilho
>             Fix For: 2.0.0uimaFIT
>
>
> It should be possible to set a multi-value parameter to a single value without having to wrap the value in a collection or array.
> Current:
> {noformat}
> AnalysisEngine engine = AnalysisEngineFactory.createPrimitive(ParameterizedAE.class,
>   ParameterizedAE.PARAM_STRING_9, new String[] { "singleelementarray" });
> {noformat}
> Desired:
> {noformat}
> AnalysisEngine engine = AnalysisEngineFactory.createPrimitive(ParameterizedAE.class,
>   ParameterizedAE.PARAM_STRING_9, "singleelementarray");
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira