|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
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 ValidationResults
public boolean getHasWarnings()
false
getHasWarnings
in interface ValidationResults
public boolean getHasInfo()
false
getHasInfo
in interface ValidationResults
public int getMessageCount()
getMessageCount
in interface ValidationResults
public int getMessageCount(Severity severity)
getMessageCount
in interface ValidationResults
public int getMessageCount(String propertyName)
getMessageCount
in interface ValidationResults
public Set getMessages()
getMessages
in interface ValidationResults
public Set getMessages(Severity severity)
getMessages
in interface ValidationResults
public Set getMessages(String propertyName)
getMessages
in interface ValidationResults
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |