public class Validations
extends java.lang.Object
Constructor and Description |
---|
Validations() |
Validations(java.util.ResourceBundle bundle) |
Modifier and Type | Method and Description |
---|---|
Validations |
and(java.util.List<Message> errors)
Adds a list of errors to the error list.
|
Validations |
and(Message error)
Adds a single error message to the error list.
|
java.util.List<Message> |
getErrors()
Returns the list of errors.
|
java.util.List<Message> |
getErrors(java.util.ResourceBundle bundle)
Returns the list of errors, using given resource bundle.
|
java.util.List<Message> |
getErrors(com.google.common.base.Supplier<java.util.ResourceBundle> bundle)
Returns the list of errors, using given resource bundle.
|
protected I18nParam |
i18n(java.lang.String key) |
boolean |
that(boolean assertion,
I18nParam category,
java.lang.String reason,
java.lang.Object... messageParameters) |
boolean |
that(boolean assertion,
java.lang.String category,
java.lang.String reason,
java.lang.Object... messageParameters) |
<T> boolean |
that(T id,
org.hamcrest.Matcher<? super T> matcher) |
<T> boolean |
that(T id,
org.hamcrest.Matcher<? super T> matcher,
I18nParam category) |
<T> boolean |
that(T actual,
org.hamcrest.Matcher<? super T> matcher,
I18nParam category,
java.lang.String reason,
java.lang.Object... messageParameters) |
<T> boolean |
that(T id,
org.hamcrest.Matcher<? super T> matcher,
java.lang.String category) |
<T> boolean |
that(T actual,
org.hamcrest.Matcher<? super T> matcher,
java.lang.String category,
java.lang.String reason,
java.lang.Object... messageParameters) |
public Validations(java.util.ResourceBundle bundle)
public Validations()
public <T> boolean that(T id, org.hamcrest.Matcher<? super T> matcher)
public <T> boolean that(T id, org.hamcrest.Matcher<? super T> matcher, java.lang.String category)
public <T> boolean that(T id, org.hamcrest.Matcher<? super T> matcher, I18nParam category)
public <T> boolean that(T actual, org.hamcrest.Matcher<? super T> matcher, java.lang.String category, java.lang.String reason, java.lang.Object... messageParameters)
public <T> boolean that(T actual, org.hamcrest.Matcher<? super T> matcher, I18nParam category, java.lang.String reason, java.lang.Object... messageParameters)
public boolean that(boolean assertion, java.lang.String category, java.lang.String reason, java.lang.Object... messageParameters)
public boolean that(boolean assertion, I18nParam category, java.lang.String reason, java.lang.Object... messageParameters)
protected I18nParam i18n(java.lang.String key)
public java.util.List<Message> getErrors()
public java.util.List<Message> getErrors(java.util.ResourceBundle bundle)
public java.util.List<Message> getErrors(com.google.common.base.Supplier<java.util.ResourceBundle> bundle)
public Validations and(java.util.List<Message> errors)
public Validations and(Message error)
Copyright © 2013 Caelum. All Rights Reserved.