|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.springframework.binding.validation.support.EmptyValidationResults
public class EmptyValidationResults
An implementation of ValidationResults that contains no results.
| Field Summary | |
|---|---|
static ValidationResults |
INSTANCE
The singleton instance of this class. |
| Constructor Summary | |
|---|---|
protected |
EmptyValidationResults()
|
| Method Summary | |
|---|---|
boolean |
getHasErrors()
Always returns false |
boolean |
getHasInfo()
Always returns false |
boolean |
getHasWarnings()
Always returns false |
int |
getMessageCount()
Always returns 0 |
int |
getMessageCount(Severity severity)
Always returns 0 |
int |
getMessageCount(String propertyName)
Always returns 0 |
Set |
getMessages()
Always returns an empty list. |
Set |
getMessages(Severity severity)
Always returns an empty list. |
Set |
getMessages(String propertyName)
Always returns an empty list. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final ValidationResults INSTANCE
| Constructor Detail |
|---|
protected EmptyValidationResults()
| Method Detail |
|---|
public boolean getHasErrors()
false
getHasErrors in interface ValidationResultspublic boolean getHasWarnings()
false
getHasWarnings in interface ValidationResultspublic boolean getHasInfo()
false
getHasInfo in interface ValidationResultspublic int getMessageCount()
getMessageCount in interface ValidationResultspublic int getMessageCount(Severity severity)
getMessageCount in interface ValidationResultspublic int getMessageCount(String propertyName)
getMessageCount in interface ValidationResultspublic Set getMessages()
getMessages in interface ValidationResultspublic Set getMessages(Severity severity)
getMessages in interface ValidationResultspublic Set getMessages(String propertyName)
getMessages in interface ValidationResultspublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||