|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||
@Target(value={FIELD,METHOD})
@Retention(value=RUNTIME)
@Documented
public @interface Property
Marks a property of a class to be used by Pojomatic
PojomaticPolicy| Optional Element Summary | |
|---|---|
java.lang.String |
name
The name used to identify the property in the standard toString representation. |
PojomaticPolicy |
policy
Which sets of Pojomatic operations (equals, hashCode and
toString) should use a property. |
public abstract PojomaticPolicy policy
Pojomatic operations (equals, hashCode and
toString) should use a property.
public abstract java.lang.String name
toString representation. If
empty, the following algorithm is used to determine the name. For a propertiy referenced by
field, the name of the field is used. For a property referenced by a method whose name is of
the form getSomeField, the name someField will be used. For a boolean property
referenced by a method whose name is of the form isSomeField, the name
someField will be used. For any other property referenced by a method, the name of
the method is used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT | |||||||||