net.java.html.json
Annotation Type ComputedProperty


@Retention(value=SOURCE)
@Target(value=METHOD)
public @interface ComputedProperty

Can be used in classes annotated with Model annotation to define a derived property. Value of derived property is based on values of Property as enumerated by Model.properties().

The name of the derived property is the name of the method. The arguments of the method define the property names (from Model.properties() list) the value of property depends on.

Author:
Jaroslav Tulach



Copyright © 2013 API Design. All Rights Reserved.