@Target(value={ANNOTATION_TYPE,CONSTRUCTOR,FIELD,METHOD}) @Retention(value=RUNTIME) public @interface JsonApplyView
An example annotation would be:
@JsonApplyView(BasicView.class) public MyValue value;which specifies that the property annotated (and nested values reach through it) would be processed using View identified by
BasicView.class.
It is also possible to disable View processing for given property by:
@JsonApplyView(JsonApplyView.NONE.class) public MyValue fullValue;which similarly applies to properties reachable via
fullValue.
Note: initially processing only covers serialization.
| Modifier and Type | Required Element and Description |
|---|---|
Class<?> |
value
View that should be used to process annotated property, if any;
special value
JsonApplyView.NONE indicates that no View
should used. |
public abstract Class<?> value
JsonApplyView.NONE indicates that no View
should used.Copyright © 2008–2026 FasterXML. All rights reserved.