1 package org.pojomatic.annotations;
2
3 /**
4 * A policy for determining which class members are automatically detected as properties. This
5 * policy is set class-wide using {@link AutoProperty}.
6 */
7 public enum AutoDetectPolicy {
8 /**
9 * Auto-detect fields of the class as properties
10 */
11 FIELD,
12
13 /**
14 * Auto-detect accessor methods of the class as properties using the JavaBean conventions
15 * (i.e. getX and isX).
16 */
17 METHOD,
18
19 /**
20 * Do not auto-detect properties for the class. This is be useful to specify
21 * a different {@link PojomaticPolicy} in {@link AutoProperty} without enabling
22 * property auto-detection.
23 */
24 NONE
25 }