[jboss-jira] [JBoss JIRA] (WFCORE-2721) Add EnumValidator with disallowed values

Jeff Mesnil (JIRA) issues at jboss.org
Tue Apr 25 09:32:00 EDT 2017


    [ https://issues.jboss.org/browse/WFCORE-2721?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13397732#comment-13397732 ] 

Jeff Mesnil edited comment on WFCORE-2721 at 4/25/17 9:31 AM:
--------------------------------------------------------------

The EnumValidator is already able to specify disallowed values by leveraging EnumSet#complementOf


was (Author: jmesnil):
The EnumValidator is alreadyable to specify disallowed values by leveraging EnumSet#complementOf

> Add EnumValidator with disallowed values
> ----------------------------------------
>
>                 Key: WFCORE-2721
>                 URL: https://issues.jboss.org/browse/WFCORE-2721
>             Project: WildFly Core
>          Issue Type: Enhancement
>          Components: Domain Management
>    Affects Versions: 3.0.0.Beta16
>            Reporter: Jeff Mesnil
>            Assignee: Brian Stansberry
>            Priority: Minor
>
> When some Enum values are not allowed by some operation, the attribute definition must explicitly state all the allowed values.
> It'd be better if an EnumValidator constructor was added with *disallowed values* so that any other values would be implicitely accepted.



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)


More information about the jboss-jira mailing list