public interface ContentValidator<T extends Content>
Modifier and Type | Field and Description |
---|---|
static String |
ASSERT_NONE_MESSAGE |
static String |
ASSERT_ONE_MESSAGE |
static String |
ASSERT_ONE_OR_LESS_MESSAGE |
static String |
ASSERT_ONE_OR_MORE_MESSAGE |
Modifier and Type | Method and Description |
---|---|
default void |
assertNone(String name,
List<T> content,
boolean warn) |
default void |
assertOne(String name,
List<T> content,
boolean warn) |
default void |
assertOneOrLess(String name,
List<T> content,
boolean warn) |
default void |
assertOneOrMore(String name,
List<T> content,
boolean warn) |
static final String ASSERT_NONE_MESSAGE
static final String ASSERT_ONE_OR_LESS_MESSAGE
static final String ASSERT_ONE_MESSAGE
static final String ASSERT_ONE_OR_MORE_MESSAGE
default void assertNone(String name, List<T> content, boolean warn) throws ValidationException
ValidationException
default void assertOne(String name, List<T> content, boolean warn) throws ValidationException
ValidationException
default void assertOneOrLess(String name, List<T> content, boolean warn) throws ValidationException
ValidationException
default void assertOneOrMore(String name, List<T> content, boolean warn) throws ValidationException
ValidationException