You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Andi Huber (Jira)" <ji...@apache.org> on 2022/04/29 16:03:00 UTC
[jira] [Updated] (ISIS-2744) [Wish] Add new "optionalX" supporting method for parameters so that its optionality can be toggled
[ https://issues.apache.org/jira/browse/ISIS-2744?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Andi Huber updated ISIS-2744:
-----------------------------
Summary: [Wish] Add new "optionalX" supporting method for parameters so that its optionality can be toggled (was: Add new "optionalX" supporting method for parameters so that its optionality can be toggled)
> [Wish] Add new "optionalX" supporting method for parameters so that its optionality can be toggled
> --------------------------------------------------------------------------------------------------
>
> Key: ISIS-2744
> URL: https://issues.apache.org/jira/browse/ISIS-2744
> Project: Isis
> Issue Type: Wish
> Components: Isis Applib (programming model)
> Affects Versions: 2.0.0-M5
> Reporter: Daniel Keir Haywood
> Priority: Minor
>
> We can of course validate using validateNXxx(), but the idea here is to toggle off or on the optionality constraint for N>0 parameters based on earlier parameters,
> eg:
> {code:java}
> public void act(SomeType type, String someParam) {
> }
> public boolean optional1Act(SomeType type) {
> if (type == SomeType.FOO || type == SomeType.BAR) return true;
> return false;
> } {code}
--
This message was sent by Atlassian Jira
(v8.20.7#820007)