1 package com.fasterxml.jackson.annotation; 2 3 import java.lang.annotation.ElementType; 4 import java.lang.annotation.Retention; 5 import java.lang.annotation.RetentionPolicy; 6 import java.lang.annotation.Target; 7 8 /** 9 * Marker annotation that indicates that all properties of annotated 10 * type are to be ignored during serialization and deserialization. 11 *<p> 12 * Note: annotation does have boolean 'value' property (which defaults 13 * to 'true'), so that it is actually possible to override value 14 * using mix-in annotations. 15 */ 16 @Target({ElementType.ANNOTATION_TYPE, ElementType.TYPE}) 17 @Retention(RetentionPolicy.RUNTIME) 18 @JacksonAnnotation 19 public @interface JsonIgnoreType 20 { 21 /** 22 * Optional argument that defines whether this annotation is active 23 * or not. The only use for value 'false' if for overriding purposes 24 * (which is not needed often); most likely it is needed for use 25 * with "mix-in annotations" ("annotation overrides"). 26 * For most cases, however, default value of "true" is just fine 27 * and should be omitted. 28 */ value()29 boolean value() default true; 30 31 } 32