|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
@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 |
---|
@PropertyElementType(value=java.lang.Integer.class) @NotNull @Size(min=2, max=4) @PropertyLifecycle(access=READ_WRITE) List<Integer> intList()
The PropertyElementType
annotation provides the type of the elements to the runtime.
de.smartics.properties.api.core.domain.PropertyKey intListPropertyKey()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |