com.opensymphony.xwork2.util

## Annotation Type CreateIfNull

-     @Retention(value=RUNTIME)
       @Target(value={FIELD,METHOD})
      public @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

    Optional Elements
    Modifier and Type | Optional Element and Description
    --- | ---
    `boolean` | `value`

- - ### Element Detail

    - #### value

          public abstract boolean value

      Returns:
        The CreateIfNull value. Defaults to `true`.
      Default:
        true

Copyright © 2000–2024 Apache Software Foundation. All rights reserved.