org.apache.myfaces.extensions.validator.core.validation
Annotation Type TargetPropertyId
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface TargetPropertyId
To specify which property should be used as constraint source (instead of the default naming convention).
Compared to TargetProperty this annotation allows to use custom annotations to mark the target
(instead of the name of the property).
If needed, this annotation can be replaced by a custom annotation to keep the implementation independent of ExtVal.
(see targetPropertyIdAnnotation in ExtValCoreConfiguration)
- Since:
- r4
- Author:
- Gerhard Petracek
- See Also:
ConstraintSource
|
Required Element Summary |
Class<? extends Annotation> |
value
class of an annotation which has to be available at a property of the target as a type-safe marker. |
value
public abstract Class<? extends Annotation> value
- class of an annotation which has to be available at a property of the target as a type-safe marker.
the annotation marks the property which should be used as constraint-source.
- Returns:
- class of an annotation which has to exist at a property of the target-cass
Copyright © 2008-2010 The Apache Software Foundation. All Rights Reserved.