@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
@Override public ReferenceProperty findReferenceType(AnnotatedMember member) { JsonManagedReference ref1 = member.getAnnotation(JsonManagedReference.class); if (ref1 != null) { return AnnotationIntrospector.ReferenceProperty.managed(ref1.value()); } JsonBackReference ref2 = member.getAnnotation(JsonBackReference.class); if (ref2 != null) { return AnnotationIntrospector.ReferenceProperty.back(ref2.value()); } return null; }
@Override public Object findInjectableValueId(AnnotatedMember m) { JacksonInject ann = m.getAnnotation(JacksonInject.class); if (ann == null) { return null; } /* Empty String means that we should use name of declared * value class. */ String id = ann.value(); if (id.length() == 0) { // slight complication; for setters, type if (!(m instanceof AnnotatedMethod)) { return m.getRawType().getName(); } AnnotatedMethod am = (AnnotatedMethod) m; if (am.getParameterCount() == 0) { return m.getRawType().getName(); } return am.getParameterClass(0).getName(); } return id; }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
@Override public ReferenceProperty findReferenceType(AnnotatedMember member) { JsonManagedReference ref1 = member.getAnnotation(JsonManagedReference.class); if (ref1 != null) { return AnnotationIntrospector.ReferenceProperty.managed(ref1.value()); } JsonBackReference ref2 = member.getAnnotation(JsonBackReference.class); if (ref2 != null) { return AnnotationIntrospector.ReferenceProperty.back(ref2.value()); } return null; }
@Override public Object findInjectableValueId(AnnotatedMember m) { JacksonInject ann = m.getAnnotation(JacksonInject.class); if (ann == null) { return null; } /* Empty String means that we should use name of declared * value class. */ String id = ann.value(); if (id.length() == 0) { // slight complication; for setters, type if (!(m instanceof AnnotatedMethod)) { return m.getRawType().getName(); } AnnotatedMethod am = (AnnotatedMethod) m; if (am.getParameterCount() == 0) { return m.getRawType().getName(); } return am.getParameterClass(0).getName(); } return id; }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _member.getAnnotation(acls); }
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
@Override public Boolean shouldUnwrapProperty(AnnotatedMember member) { JsonUnwrapped ann = member.getAnnotation(JsonUnwrapped.class); // if not enabled, just means annotation is not enabled; not necessarily // that unwrapping should not be done (relevant when using chained introspectors) return (ann != null && ann.enabled()) ? Boolean.TRUE : null; }
@Override public ReferenceProperty findReferenceType(AnnotatedMember member) { JsonManagedReference ref1 = member.getAnnotation(JsonManagedReference.class); if (ref1 != null) { return AnnotationIntrospector.ReferenceProperty.managed(ref1.value()); } JsonBackReference ref2 = member.getAnnotation(JsonBackReference.class); if (ref2 != null) { return AnnotationIntrospector.ReferenceProperty.back(ref2.value()); } return null; }
@Override public ReferenceProperty findReferenceType(AnnotatedMember member) { JsonManagedReference ref1 = member.getAnnotation(JsonManagedReference.class); if (ref1 != null) { return AnnotationIntrospector.ReferenceProperty.managed(ref1.value()); } JsonBackReference ref2 = member.getAnnotation(JsonBackReference.class); if (ref2 != null) { return AnnotationIntrospector.ReferenceProperty.back(ref2.value()); } return null; }
@Override public ReferenceProperty findReferenceType(AnnotatedMember member) { JsonManagedReference ref1 = member.getAnnotation(JsonManagedReference.class); if (ref1 != null) { return AnnotationIntrospector.ReferenceProperty.managed(ref1.value()); } JsonBackReference ref2 = member.getAnnotation(JsonBackReference.class); if (ref2 != null) { return AnnotationIntrospector.ReferenceProperty.back(ref2.value()); } return null; }