org.slim3.struts.annotation
Annotation Type UrlType


@Retention(value=RUNTIME)
@Target(value=FIELD)
@Documented
@Validator(value="url")
public @interface UrlType

An annotation to validate if the value is a url.

Since:
3.0
Author:
higa

Optional Element Summary
 boolean allow2slashes
          Whether to allow double slashes.
 boolean allowallschemes
          Whether to allow all schemes.
 Arg arg0
          The first argument.
 Msg msg
          The message.
 boolean nofragments
          Whether the value is no fragments.
 String schemes
          The allowed schemes.
 String[] targets
          Specifies the execute method names which are validation targets.
 

allowallschemes

public abstract boolean allowallschemes
Whether to allow all schemes.

Default:
false

allow2slashes

public abstract boolean allow2slashes
Whether to allow double slashes.

Default:
false

nofragments

public abstract boolean nofragments
Whether the value is no fragments.

Default:
false

schemes

public abstract String schemes
The allowed schemes.

Default:
"http,https,ftp"

msg

public abstract Msg msg
The message.

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

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.