Package org.apache.tapestry5.annotations

## Annotation Type Property

-     @Target(FIELD)
      @Documented
      @Retention(RUNTIME)
      @UseWith({COMPONENT,MIXIN,PAGE})
      public @interface Property

  Annotation for fields for which accessor methods (getters and setters) should be created. This can help when defining the kind of placeholder properties often used in components, though the disadvantage is that you can't access the fields in a unit test, and you may get compiler warnings about unused private variables. The annotation will not overwrite an existing getter or setter method; if you put a Property annotation on a field that already has a getter or a setter you will see a runtime exception.

- - ### Optional Element Summary

    Optional Elements
    Modifier and Type | Optional Element | Description
    --- | --- | ---
    `boolean` | `read` | Whether to create a readable property (i.e., generate a getter method).
    `boolean` | `write` | Whether to create a writeable property (i.e., generate a setter method).

- - ### Element Detail

    - #### read

          boolean read

      Whether to create a readable property (i.e., generate a getter method).
      Default:
        true

  - - #### write

          boolean write

      Whether to create a writeable property (i.e., generate a setter method).
      Default:
        true