org.apache.myfaces.extensions.validator.core.validation.strategy
Interface IdentifiableValidationStrategy
- All Superinterfaces:
- ValidationStrategy
- All Known Implementing Classes:
- AbstractVirtualValidationStrategy, BeanValidationVirtualValidationStrategy
public interface IdentifiableValidationStrategy
- extends ValidationStrategy
if an adapter (ValidationStrategy only used for component initialization) is used for several constraints, this
interface allows to detect the type of current constraint.
It's needed for constraint mappings which don't follow the original approach of ExtVal (e.g. bv)
- Since:
- x.x.3
- Author:
- Gerhard Petracek
ID_PREFIX
static final String ID_PREFIX
- Separator which should be used by a meta-data transformer factory to create an unambiguous key that consists of
the name of the
ValidationStrategy
and the id provided by getId()
which allows to select the correct
MetaDataTransformer
implementation
if an adapter ValidationStrategy
is
responsible for multiple constraints.
- See Also:
- Constant Field Values
getId
String getId()
- Returns the unique part for the key which is used to select the correct
MetaDataTransformer
if the
ValidationStrategy
is
responsible for multiple constraints.
- Returns:
- Unique String to map the current instance of an adapter
ValidationStrategy
.
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.