Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 12 additions & 4 deletions src/main/java/com/fasterxml/jackson/annotation/JsonApplyView.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,15 @@
* @JsonApplyView(BasicView.class)
* public MyValue value;
*</pre>
* which would specify that property annotated would be processed
* using View identified by {@code BasicView.class}.
* which specifies that the property annotated (and nested values reach through it)
* would be processed using View identified by {@code BasicView.class}.
*<p>
* It is also possible to disable View processing for given property by:
*<pre>
* &#064;JsonApplyView(JsonApplyView.NONE.class)
* public MyValue fullValue;
*</pre>
* which similarly applies to properties reachable via {@code fullValue}.
*<p>
* Note: initially processing only covers serialization.
*
Expand All @@ -32,10 +39,11 @@
* special value {@link JsonApplyView.NONE} indicates that no View
* should used.
*/
public Class<?> value() default NONE.class;
public Class<?> value();

/**
* Special view indicating no views should be used for processing annotated property.
* Special view indicating no views should be used for processing annotated property:
* usually implemented by setting "Active View" to {@code null} value.
*/
static public interface NONE {}
}