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