@Documented @Target(value={FIELD,PARAMETER}) @Retention(value=RUNTIME) public @interface PodamCollection
Please note that this annotation can be used with all types of container elements, including arrays.
The minimum number of elements is
PodamConstants.ANNOTATION_COLLECTION_DEFAULT_NBR_ELEMENTS
Modifier and Type | Optional Element and Description |
---|---|
Class<? extends AttributeStrategy<?>> |
collectionElementStrategy
The strategy that will populate the annotated attribute.
|
String |
comment
It allows clients to specify a comment on this annotation
|
Class<? extends AttributeStrategy<?>> |
mapElementStrategy
The strategy that will populate a map element on an attribute of type
Map.
|
Class<? extends AttributeStrategy<?>> |
mapKeyStrategy
The strategy that will populate a map key on an attribute of type Map.
|
int |
nbrElements
The number of elements to create for the collection
|
public abstract int nbrElements
public abstract Class<? extends AttributeStrategy<?>> collectionElementStrategy
The default, in order to make the strategy actually optional is
type Object. At runtime, only if both the value of this annotation and
the collection element type are Objects, then the collection will be set
with type Object
, otherwise the collection element type will win.
public abstract Class<? extends AttributeStrategy<?>> mapKeyStrategy
The default, in order to make the strategy actually optional is
type Object. At runtime, only if both the value of this annotation and
the collection element type are Objects, then the collection will be set
with type Object
, otherwise the collection element type will win.
public abstract Class<? extends AttributeStrategy<?>> mapElementStrategy
The default, in order to make the strategy actually optional is
type Object. At runtime, only if both the value of this annotation and
the collection element type are Objects, then the collection will be set
with type Object
, otherwise the collection element type will win.
public abstract String comment
Copyright © 2013. All rights reserved.