org.test4j.datafilling.annotations
注释类型 FillList


@Target(value={FIELD,PARAMETER})
@Retention(value=RUNTIME)
public @interface FillList


可选元素摘要
 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 size
          The number of elements to create for the collection
 

size

public abstract int size
The number of elements to create for the collection

默认值:
1

collectionElementStrategy

public abstract Class<? extends AttributeStrategy> collectionElementStrategy
The strategy that will populate the annotated attribute.

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.

返回:
The strategy that will populate the annotated attribute
默认值:
org.test4j.datafilling.strategy.EmptyStrategy.class

mapKeyStrategy

public abstract Class<? extends AttributeStrategy> mapKeyStrategy
The strategy that will populate a map key on an attribute of type Map.

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.

返回:
The strategy that will populate a map key on an attribute of type Map.
默认值:
org.test4j.datafilling.strategy.EmptyStrategy.class

mapElementStrategy

public abstract Class<? extends AttributeStrategy<?>> mapElementStrategy
The strategy that will populate a map element on an attribute of type Map.

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.

返回:
The strategy that will populate a map element on an attribute of type Map.
默认值:
org.test4j.datafilling.strategy.EmptyStrategy.class

comment

public abstract String comment
It allows clients to specify a comment on this annotation

默认值:
""


Copyright © 2013. All rights reserved.