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


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

Defines constraints on a collection property.

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

Optional Element Summary
 int max
          defines maximum valid number of collection items.
 int min
          defines minimum valid number of collection items.
 

min

public abstract int min
defines minimum valid number of collection items. The default value of 0 means no constraint.

Default:
0

max

public abstract int max
defines maximum valid number of collection items. The default value of 0 means no constraint.

Default:
0


Copyright © 2008. All Rights Reserved.