de.smartics.properties.tutorial.property.list
Interface ListPropertiesWithConstraints.ElementConstraints

Package class diagram package 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.


Nested Class Summary
 
Nested classes/interfaces inherited from interface de.smartics.properties.tutorial.property.list.ListPropertiesWithConstraints
ListPropertiesWithConstraints.ElementConstraints
 
Method Summary
 List<Integer> intList()
          A simple list of Integers with two to four elements.
 
Methods inherited from interface de.smartics.properties.tutorial.property.list.ListPropertiesWithConstraints
intListPropertyKey
 

Method Detail

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.