You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@isis.apache.org by "Daniel Keir Haywood (Jira)" <ji...@apache.org> on 2021/07/20 07:51:00 UTC
[jira] [Updated] (ISIS-2744) 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 ]
Daniel Keir Haywood updated ISIS-2744:
--------------------------------------
Summary: Add new "optionalX" supporting method for parameters so that its optionality can be toggled (was: Add new supporting method for parameters so that it can optionally be marked as mandatory.)
> 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: New Feature
> Affects Versions: 2.0.0-M5
> Reporter: Daniel Keir Haywood
> Priority: Minor
> Fix For: 2.0.0
>
>
> 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.3.4#803005)