[ 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)