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/06/16 14:25:00 UTC

[jira] [Created] (ISIS-2744) Add new supporting method for parameters so that it can optionally be marked as mandatory.

Daniel Keir Haywood created ISIS-2744:
-----------------------------------------

             Summary: Add new supporting method for parameters so that it can optionally be marked as mandatory.
                 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
             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)