[
https://issues.jboss.org/browse/WFCORE-2721?page=com.atlassian.jira.plugi...
]
Jeff Mesnil commented on WFCORE-2721:
-------------------------------------
You're right, we can already do that with WFCORE-2651 even if the syntax is a bit more
verbose:
{code}
new EnumValidator<>(Foo.class, EnumSet.complementOf(EnumSet.of(Foo.A, Foo.B))
{code}
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)