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

Package class diagram package ListPropertiesWithConstraints
All Known Subinterfaces:
ListPropertiesWithConstraints.ElementConstraints

@PropertySet(value="tutorial.property.list")
public interface ListPropertiesWithConstraints

This example shows how to add constraints to lists and list elements.


Nested Class Summary
static interface ListPropertiesWithConstraints.ElementConstraints
          The annotation at the nested interface that extends the interface that declares the list property, signals: Here are constraints on the list elements.
 
Method Summary
 List<Integer> intList()
          A simple list of Integers with two to four elements.
 de.smartics.properties.api.core.domain.PropertyKey intListPropertyKey()
           
 

Method Detail

intList

@PropertyElementType(value=java.lang.Integer.class)
@NotNull
@Size(min=2,
      max=4)
@PropertyLifecycle(access=READ_WRITE)
List<Integer> intList()
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.


intListPropertyKey

de.smartics.properties.api.core.domain.PropertyKey intListPropertyKey()


Copyright © 2012-2013 Kronseder & Reiner GmbH - smartics. All Rights Reserved.