net.sourceforge.annovalidator.builtin.validators
Annotation Type ValidateMatchingField


@Target(value=FIELD)
@Retention(value=RUNTIME)
public @interface ValidateMatchingField

Validates that the annotated field matches the field specified in matchingFieldName.


Required Element Summary
 java.lang.String matchingFieldName
          The name of the Field that the annotated Field must match.
 
Optional Element Summary
 java.lang.String errorCode
          A custom error code used for one specific field.
 int[] steps
          The steps in a multi-step form that this validator run in.
 

Element Detail

matchingFieldName

public abstract java.lang.String matchingFieldName
The name of the Field that the annotated Field must match.

steps

public abstract int[] steps
The steps in a multi-step form that this validator run in.

Default:
{}

errorCode

public abstract java.lang.String errorCode
A custom error code used for one specific field.

Default:
""


Copyright © 2008. All Rights Reserved.