de.danielbechler.diff.annotation
Annotation Type ObjectDiffProperty


@Retention(value=RUNTIME)
@Target(value=METHOD)
@Inherited
public @interface ObjectDiffProperty

Annotation to be used on property getters in order to configure if and how they should be treated during object comparison.

Author:
Daniel Bechler

Optional Element Summary
 String[] categories
          Categories will be passed along with the object node and can be used for advanced filtering of specific property groups.
 boolean equalsOnly
          Causes the Differs to compare the object by using the Object.equals(Object) method instead of introspection.
 boolean ignore
          Causes the Differs to skip the marked property and all its children.
 

ignore

public abstract boolean ignore
Causes the Differs to skip the marked property and all its children.

Returns:
true if the property should be ignored.
Default:
false

equalsOnly

public abstract boolean equalsOnly
Causes the Differs to compare the object by using the Object.equals(Object) method instead of introspection.

Returns:
true if the property should be compared via Object.equals(Object).
Default:
false

categories

public abstract String[] categories
Categories will be passed along with the object node and can be used for advanced filtering of specific property groups.

Returns:
The categories for this property.
Default:
{}


Copyright © 2012. All Rights Reserved.