net.sourceforge.stripes.validation
Interface ValidationMetadataProvider

All Superinterfaces:
ConfigurableComponent
All Known Implementing Classes:
DefaultValidationMetadataProvider

public interface ValidationMetadataProvider
extends ConfigurableComponent

Provides a globally accessible source of validation metadata for properties and nested properties of ActionBean classes.

Since:
Stripes 1.5
Author:
Ben Gunter

Method Summary
 Map<String,ValidationMetadata> getValidationMetadata(Class<?> beanType)
          Get a map of property names to ValidationMetadata for the given ActionBean class.
 ValidationMetadata getValidationMetadata(Class<?> beanType, ParameterName property)
          Get the validation metadata associated with the named property of the given ActionBean class.
 
Methods inherited from interface net.sourceforge.stripes.config.ConfigurableComponent
init
 

Method Detail

getValidationMetadata

Map<String,ValidationMetadata> getValidationMetadata(Class<?> beanType)
Get a map of property names to ValidationMetadata for the given ActionBean class.

Parameters:
beanType - any class
Returns:
A map of property names to ValidationMetadata. If no validation information is present for the given class, then an empty map will be returned.

getValidationMetadata

ValidationMetadata getValidationMetadata(Class<?> beanType,
                                         ParameterName property)
Get the validation metadata associated with the named property of the given ActionBean class.

Parameters:
beanType - any class
property - a (possibly nested) property of beanType
Returns:
A ValidationMetadata object, if there is one associated with the property. If the property is not to be validated, then null.


? Copyright 2005-2006, Stripes Development Team.