org.slim3.struts.annotation
Annotation Type DateType


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="date")
public @interface DateType

An annotation to validate if the value is a date.

Since:
3.0
Author:
higa

Optional Element Summary
 Arg arg0
          The first argument.
 String datePattern
          The date pattern.
 String datePatternStrict
          The strict date pattern.
 Msg msg
          The message.
 String[] targets
          Specifies the execute method names which are validation targets.
 

datePattern

public abstract String datePattern
The date pattern.

Default:
""

datePatternStrict

public abstract String datePatternStrict
The strict date pattern.

Default:
""

msg

public abstract Msg msg
The message.

Default:
@org.slim3.struts.annotation.Msg(key="errors.date")

arg0

public abstract Arg arg0
The first argument.

Default:
@org.slim3.struts.annotation.Arg(key="")

targets

public abstract String[] targets
Specifies the execute method names which are validation targets.

Default:
{}


Copyright © 2008-2009 The Slim3 project. All Rights Reserved.