de.smartics.properties.tutorial.property.list
Interface ListPropertiesWithConstraints.ElementConstraints
-
All Superinterfaces:
-
ListPropertiesWithConstraints
-
Enclosing interface:
-
ListPropertiesWithConstraints
-
@PropertyListElementConstraints
public static interface ListPropertiesWithConstraints.ElementConstraints
-
extends
ListPropertiesWithConstraints
The annotation at the nested interface that extends the interface that declares the list property, signals: Here are constraints on the list elements.
Each element is between 2 and 5.
Method Summary |
List<Integer> |
intList() A simple list of Integers with two to four elements. |
intList
@Min(value=2L)
@Max(value=5L)
List<Integer> intList()
-
Description copied from interface:
ListPropertiesWithConstraints
-
A simple list of Integers with two to four elements. The constraints added to the list are applied to the list as a whole.
The PropertyElementType
annotation provides the type of the elements to the runtime.
-
-
Specified by:
-
intList
in interface
ListPropertiesWithConstraints
-
Copyright © 2012-2013
Kronseder & Reiner GmbH - smartics. All Rights Reserved.