[C2-devel] [JIRA][Carrot2] Commented: (CARROT-385) ValueList constraint and its editor.
Brought to you by:
dawidweiss,
stachoo
From: Dawid W. (JIRA) <daw...@cs...> - 2008-09-26 13:31:38
|
[ http://issues.carrot2.org/browse/CARROT-385?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=10884#action_10884 ] Dawid Weiss commented on CARROT-385: ------------------------------------ Still to do: - add hints for other components (boss, yahoo -- language parameter). > ValueList constraint and its editor. > ------------------------------------ > > Key: CARROT-385 > URL: http://issues.carrot2.org/browse/CARROT-385 > Project: Carrot2 > Issue Type: Improvement > Components: Eclipse browser, Filter components > Reporter: Dawid Weiss > Assignee: Dawid Weiss > Priority: Minor > Fix For: 3.0 > > > On several occasions I had unrestricted String attributes that could use a predefined set of values (hints). This could be realized as a constraint of the form: > @ValueList([? extends Enum<?>].class valueSet, Boolean strict) > public String attribute; > This constraint would check (in strict mode) if the given value has one of the enum values from valueSet. In non-strict mode, the constraint serves only to populate an editable combo box with possible value hints (specialized editor). -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.carrot2.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |