org.codehaus.jackson.annotate
Annotation Type JsonSetter


Deprecated. Use JsonProperty instead (deprecated since version 1.5)

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

Marker annotation that can be used to define a non-static, single-argument method to be used as a "setter" for a logical property as an alternative to recommended JsonProperty annotation (which was introduced in version 1.1).

Setter means that when a property with matching name is encountered in JSON content, this method will be used to set value of the property.


Optional Element Summary
 String value
          Deprecated. Optional default argument that defines logical property this method is used to modify ("set").
 

value

public abstract String value
Deprecated. 
Optional default argument that defines logical property this method is used to modify ("set").

Default:
""