Elexis API documentation
Version 2.1.6 as of December 11 2011

waelti.statistics.queries.annotations
Annotation Type SetProperty


@Retention(value=RUNTIME)
@Target(value=METHOD)
public @interface SetProperty

Marks a method as setter. Used by the view to determine which elements can be changed by the user. The index determines the order in which the setter methods will be invoked. This is only important for exception handling. If the validity of a setter value depends on another value (e.g. marking a starting and ending point for a time period where the end point has to be greater than the starting point) the index can be used to control the invocation order.


Required Element Summary
 java.lang.String value
          The name of this annotation.
 
Optional Element Summary
 int index
          Determines the order of invocation.
 

Element Detail

value

public abstract java.lang.String value
The name of this annotation. This has to match the value of a GetProperty annotation used to mark a getter method. If there is none, an NullPointerException will occur.

index

public abstract int index
Determines the order of invocation. Use this if a setter value's validity is dependent on another value. This has not to be necessarily the same value as in the GetProperty annotation. The default value of -1 ensures that methods without an index annotated will be invoked first since they do not depend on the other data they are not critical and can independently called.

Default:
-1

Elexis API documentation
Version 2.1.6 as of December 11 2011

Copyright 2005-2011 by Gerry Weirich, Elexis