|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.springmodules.validation.bean.context.DefaultValidationContext
public class DefaultValidationContext
A simple and default implemenation of the ValidationContext
interface.
Constructor Summary | |
---|---|
DefaultValidationContext(String token)
Construsts a new DefaultValidationContext with a given supported validation token. |
|
DefaultValidationContext(String[] tokens)
Construsts a new DefaultValidationContext with given supported validation tokens. |
Method Summary | |
---|---|
String[] |
getTokens()
|
boolean |
supportsTokens(String token)
|
boolean |
supportsTokens(String[] tokens)
Returns whether this validation context supports the given validation tokens. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultValidationContext(String token)
token
- The validation token supported by this context.public DefaultValidationContext(String[] tokens)
tokens
- The validation tokens supported by this context.Method Detail |
---|
public boolean supportsTokens(String token)
supportsTokens(String[])
public boolean supportsTokens(String[] tokens)
ValidationContext
supportsTokens
in interface ValidationContext
tokens
- The given validation tokens.
true
if this context supports the given validation tokens, false
otherwise.ValidationContext.supportsTokens(String[])
public String[] getTokens()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |