org.springmodules.validation.bean.context
Class ExtendingValidationContext

java.lang.Object
  extended by org.springmodules.validation.bean.context.DefaultValidationContext
      extended by org.springmodules.validation.bean.context.ExtendingValidationContext
All Implemented Interfaces:
ValidationContext

public class ExtendingValidationContext
extends DefaultValidationContext

Author:
Uri Boness

Constructor Summary
ExtendingValidationContext(String[] tokens, ValidationContext extendedContext)
           
ExtendingValidationContext(String token, ValidationContext extendedContext)
           
 
Method Summary
 boolean supportsTokens(String[] tokens)
          Returns whether this validation context supports the given validation tokens.
 
Methods inherited from class org.springmodules.validation.bean.context.DefaultValidationContext
getTokens, supportsTokens
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExtendingValidationContext

public ExtendingValidationContext(String token,
                                  ValidationContext extendedContext)

ExtendingValidationContext

public ExtendingValidationContext(String[] tokens,
                                  ValidationContext extendedContext)
Method Detail

supportsTokens

public boolean supportsTokens(String[] tokens)
Description copied from interface: ValidationContext
Returns whether this validation context supports the given validation tokens.

Specified by:
supportsTokens in interface ValidationContext
Overrides:
supportsTokens in class DefaultValidationContext
Parameters:
tokens - The given validation tokens.
Returns:
true if this context supports the given validation tokens, false otherwise.
See Also:
ValidationContext.supportsTokens(String[])


Copyright © 2009. All Rights Reserved.