|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.codehaus.jackson.map.AnnotationIntrospector
org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospector
public class JacksonAnnotationIntrospector
AnnotationIntrospector implementation that handles standard
Jackson annotations.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.codehaus.jackson.map.AnnotationIntrospector |
|---|
AnnotationIntrospector.Pair |
| Constructor Summary | |
|---|---|
JacksonAnnotationIntrospector()
|
|
| Method Summary | |
|---|---|
Boolean |
findCachability(AnnotatedClass ac)
Method that checks whether specified class has annotations that indicate that it is (or is not) cachable. |
Boolean |
findCreatorAutoDetection(AnnotatedClass ac)
Method for checking whether there is a class annotation that indicates whether creator-method auto detection should be enabled. |
String |
findDeserializablePropertyName(AnnotatedField af)
Method for checking whether given member field represent a deserializable logical property; and if so, returns the name of that property. |
Class<?> |
findDeserializationContentType(Annotated am)
Method for accessing additional narrowing type definition that a method can have, to define more specific content type to use; content refers to Map values and Collection/array elements. |
Class<?> |
findDeserializationKeyType(Annotated am)
Method for accessing additional narrowing type definition that a method can have, to define more specific key type to use. |
Class<?> |
findDeserializationType(Annotated am)
Method for accessing annotated type definition that a method can have, to be used as the type for serialization instead of the runtime type. |
Class<? extends JsonDeserializer<?>> |
findDeserializer(Annotated a)
Method for getting a deserializer definition on specified method or field. |
String |
findEnumValue(Enum<?> value)
Method for determining the String value to use for serializing given enumeration entry; used when serializing enumerations as Strings (the standard method). |
Boolean |
findFieldAutoDetection(AnnotatedClass ac)
Method for checking whether there is a class annotation that indicates whether field auto detection should be enabled. |
String |
findGettablePropertyName(AnnotatedMethod am)
Method for checking whether given method has an annotation that suggests property name associated with method that may be a "getter". |
Boolean |
findGetterAutoDetection(AnnotatedClass ac)
Method for checking whether there is a class annotation that indicates whether getter-method auto detection should be enabled. |
String |
findSerializablePropertyName(AnnotatedField af)
Method for checking whether given member field represent a serializable logical property; and if so, returns the name of that property. |
JsonSerialize.Inclusion |
findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue)
Method for checking whether given annotated entity (class, method, field) defines which Bean/Map properties are to be included in serialization. |
Class<?> |
findSerializationType(Annotated am)
Method for accessing annotated type definition that a method can have, to be used as the type for serialization instead of the runtime type. |
Class<? extends JsonSerializer<?>> |
findSerializer(Annotated a)
Method for getting a serializer definition on specified method or field. |
String |
findSettablePropertyName(AnnotatedMethod am)
Method for checking whether given method has an annotation that suggests property name associated with method that may be a "setter". |
Boolean |
findSetterAutoDetection(AnnotatedClass ac)
Method for checking whether there is a class annotation that indicates whether setter-method auto detection should be enabled. |
boolean |
hasAnySetterAnnotation(AnnotatedMethod am)
Method for checking whether given method has an annotation that suggests that the method is to serve as "any setter"; method to be used for setting values of any properties for which no dedicated setter method is found. |
boolean |
hasAsValueAnnotation(AnnotatedMethod am)
Method for checking whether given method has an annotation that suggests that the return value of annotated method should be used as "the value" of the object instance; usually serialized as a primitive value such as String or number. |
boolean |
hasCreatorAnnotation(AnnotatedMethod am)
Method for checking whether given method has an annotation that suggests that the method is a "creator" (aka factory) method to be used for construct new instances of deserialized values. |
boolean |
isHandled(Annotation ann)
Method called by framework to determine whether given annotation is handled by this introspector. |
boolean |
isIgnorableField(AnnotatedField f)
Method for checking whether there is an annotation that indicates that given field should be ignored for all operations (serialization, deserialization). |
boolean |
isIgnorableMethod(AnnotatedMethod m)
Method for checking whether there is an annotation that indicates that given method should be ignored for all operations (serialization, deserialization). |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public JacksonAnnotationIntrospector()
| Method Detail |
|---|
public boolean isHandled(Annotation ann)
AnnotationIntrospector
isHandled in class AnnotationIntrospectorpublic Boolean findCachability(AnnotatedClass ac)
AnnotationIntrospectorCurrently only used with deserializers, to determine whether provider should cache instances, and if no annotations are found, assumes non-cachable instances.
findCachability in class AnnotationIntrospectorpublic Boolean findFieldAutoDetection(AnnotatedClass ac)
AnnotationIntrospector
findFieldAutoDetection in class AnnotationIntrospectorpublic boolean isIgnorableMethod(AnnotatedMethod m)
AnnotationIntrospector
isIgnorableMethod in class AnnotationIntrospectorpublic boolean isIgnorableField(AnnotatedField f)
AnnotationIntrospector
isIgnorableField in class AnnotationIntrospectorpublic Class<? extends JsonSerializer<?>> findSerializer(Annotated a)
AnnotationIntrospectorJsonSerializer) or Class (of type
Class); if value of different
type is returned, a runtime exception may be thrown by caller.
findSerializer in class AnnotationIntrospectorpublic Class<?> findSerializationType(Annotated am)
AnnotationIntrospector
findSerializationType in class AnnotationIntrospector
public JsonSerialize.Inclusion findSerializationInclusion(Annotated a,
JsonSerialize.Inclusion defValue)
AnnotationIntrospector
findSerializationInclusion in class AnnotationIntrospectorpublic Boolean findGetterAutoDetection(AnnotatedClass ac)
AnnotationIntrospector
findGetterAutoDetection in class AnnotationIntrospectorpublic String findGettablePropertyName(AnnotatedMethod am)
AnnotationIntrospector
findGettablePropertyName in class AnnotationIntrospectorpublic boolean hasAsValueAnnotation(AnnotatedMethod am)
AnnotationIntrospector
hasAsValueAnnotation in class AnnotationIntrospectorpublic String findEnumValue(Enum<?> value)
AnnotationIntrospector
findEnumValue in class AnnotationIntrospectorpublic String findSerializablePropertyName(AnnotatedField af)
AnnotationIntrospector
findSerializablePropertyName in class AnnotationIntrospectorpublic Class<? extends JsonDeserializer<?>> findDeserializer(Annotated a)
AnnotationIntrospectorJsonDeserializer) or Class (of type
Class); if value of different
type is returned, a runtime exception may be thrown by caller.
findDeserializer in class AnnotationIntrospectorpublic Class<?> findDeserializationType(Annotated am)
AnnotationIntrospector
findDeserializationType in class AnnotationIntrospectorpublic Class<?> findDeserializationKeyType(Annotated am)
AnnotationIntrospectorMap types.
findDeserializationKeyType in class AnnotationIntrospectorpublic Class<?> findDeserializationContentType(Annotated am)
AnnotationIntrospector
findDeserializationContentType in class AnnotationIntrospectorpublic Boolean findCreatorAutoDetection(AnnotatedClass ac)
AnnotationIntrospector
findCreatorAutoDetection in class AnnotationIntrospectorpublic Boolean findSetterAutoDetection(AnnotatedClass ac)
AnnotationIntrospector
findSetterAutoDetection in class AnnotationIntrospectorpublic String findSettablePropertyName(AnnotatedMethod am)
AnnotationIntrospector
findSettablePropertyName in class AnnotationIntrospectorpublic boolean hasAnySetterAnnotation(AnnotatedMethod am)
AnnotationIntrospector
hasAnySetterAnnotation in class AnnotationIntrospectorpublic boolean hasCreatorAnnotation(AnnotatedMethod am)
AnnotationIntrospector
hasCreatorAnnotation in class AnnotationIntrospectorpublic String findDeserializablePropertyName(AnnotatedField af)
AnnotationIntrospector
findDeserializablePropertyName in class AnnotationIntrospector
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||