com.abra.j2xb.annotations.xmlAnnotations
Annotation Type MOValidationString


@Target(value={METHOD,PARAMETER})
@Retention(value=RUNTIME)
public @interface MOValidationString

Defines constraints for string properties.

Since:
JDK1.5
Version:
1.0, Dec 10, 2007
Author:
Yoav Abrahami
See Also:
MOProperty

Optional Element Summary
 int maxLength
          defines the maximum length in characters of a string value.
 int minLength
          defines the minimum length in characters of a string value.
 java.lang.String[] patterns
          defines regular expression patterns that the string values must match at least one of.
 

minLength

public abstract int minLength
defines the minimum length in characters of a string value. Default value of 0 means no constraint.

Default:
0

maxLength

public abstract int maxLength
defines the maximum length in characters of a string value. Default value of 0 means no constraint.

Default:
0

patterns

public abstract java.lang.String[] patterns
defines regular expression patterns that the string values must match at least one of.

Default:
{}


Copyright © 2008. All Rights Reserved.