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


@Target(value=TYPE)
@Retention(value=RUNTIME)
public @interface ValidateCompositeDate

Validator for dates that are specified using multiple fields on a form, such as having seperate text fields for day, month and year.


Required Element Summary
 DateUtil.CompositeDatePart[] dateParts
          The fields that contain the parts of the date to be validated, and what kind of part they contain.
 
Optional Element Summary
 java.lang.String errorCode
          The property key for the message that should be displayed when the date fails validation.
 java.lang.String invalidDatePartErrorCode
           
 int[] steps
          The steps in a multi-step form that this validator run in.
 

Element Detail

dateParts

public abstract DateUtil.CompositeDatePart[] dateParts
The fields that contain the parts of the date to be validated, and what kind of part they contain.

errorCode

public abstract java.lang.String errorCode
The property key for the message that should be displayed when the date fails validation.

Default:
""

invalidDatePartErrorCode

public abstract java.lang.String invalidDatePartErrorCode
Default:
""

steps

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

Default:
{}


Copyright © 2008. All Rights Reserved.