Package org.apache.struts2.util
Annotation Interface CreateIfNull
Sets the CreateIfNull for type conversion.
Annotation usage:
The CreateIfNull annotation must be applied at field or method level.
Annotation parameters:
Parameter | Required | Default | Description |
---|---|---|---|
value | no | false | The CreateIfNull property value. |
Example code:
@CreateIfNull( value = true ) private List<User> users;
- Author:
- Rainer Hermanns
-
Optional Element Summary
-
Element Details
-
value
boolean value- Returns:
- The CreateIfNull value. Defaults to true.
- Default:
- true
-