@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public boolean hasAsValueAnnotation(AnnotatedMethod am) { JsonValue ann = am.getAnnotation(JsonValue.class); // value of 'false' means disabled... return (ann != null && ann.value()); }
@SuppressWarnings("deprecation") @Override public String findGettablePropertyName(AnnotatedMethod am) { /* 22-May-2009, tatu: JsonProperty is the primary annotation * to check for */ JsonProperty pann = am.getAnnotation(JsonProperty.class); if (pann != null) { return pann.value(); } /* 22-May-2009, tatu: JsonGetter is deprecated as of 1.1 * but still supported */ JsonGetter ann = am.getAnnotation(JsonGetter.class); if (ann != null) { return ann.value(); } /* 22-May-2009, tatu: And finally, JsonSerialize implies * that there is a property, although doesn't define name */ // 09-Apr-2010, tatu: Ditto for JsonView if (am.hasAnnotation(JsonSerialize.class) || am.hasAnnotation(JsonView.class)) { return ""; } return null; }
JsonProperty pann = am.getAnnotation(JsonProperty.class); if (pann != null) { return pann.value(); JsonSetter ann = am.getAnnotation(JsonSetter.class); if (ann != null) { return ann.value();
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public boolean hasAsValueAnnotation(AnnotatedMethod am) { JsonValue ann = am.getAnnotation(JsonValue.class); // value of 'false' means disabled... return (ann != null && ann.value()); }
@SuppressWarnings("deprecation") @Override public String findGettablePropertyName(AnnotatedMethod am) { /* 22-May-2009, tatu: JsonProperty is the primary annotation * to check for */ JsonProperty pann = am.getAnnotation(JsonProperty.class); if (pann != null) { return pann.value(); } /* 22-May-2009, tatu: JsonGetter is deprecated as of 1.1 * but still supported */ JsonGetter ann = am.getAnnotation(JsonGetter.class); if (ann != null) { return ann.value(); } /* 22-May-2009, tatu: And finally, JsonSerialize implies * that there is a property, although doesn't define name */ // 09-Apr-2010, tatu: Ditto for JsonView if (am.hasAnnotation(JsonSerialize.class) || am.hasAnnotation(JsonView.class)) { return ""; } return null; }
JsonProperty pann = am.getAnnotation(JsonProperty.class); if (pann != null) { return pann.value(); JsonSetter ann = am.getAnnotation(JsonSetter.class); if (ann != null) { return ann.value();
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public <A extends Annotation> A getAnnotation(Class<A> acls) { return _annotated.getAnnotation(acls); }
@Override public boolean hasAsValueAnnotation(AnnotatedMethod am) { JsonValue ann = am.getAnnotation(JsonValue.class); // value of 'false' means disabled... return (ann != null && ann.value()); }
@Override public boolean hasAsValueAnnotation(AnnotatedMethod am) { JsonValue ann = am.getAnnotation(JsonValue.class); // value of 'false' means disabled... return (ann != null && ann.value()); }
@Override public boolean hasAsValueAnnotation(AnnotatedMethod am) { JsonValue ann = am.getAnnotation(JsonValue.class); // value of 'false' means disabled... return (ann != null && ann.value()); }
@Override public String nameForSetterMethod(MapperConfig<?> config, AnnotatedMethod method, String defaultName) { return translateWithAnnotation(method.getAnnotation(JsonProperty.class), defaultName); }
@Override public boolean hasAsValueAnnotation(AnnotatedMethod am) { JsonValue ann = am.getAnnotation(JsonValue.class); // value of 'false' means disabled... return (ann != null && ann.value()); }
@Override public String findSettablePropertyName(AnnotatedMethod am) { JacksonXmlProperty pann = am.getAnnotation(JacksonXmlProperty.class); if (pann != null) { return pann.localName(); } return super.findSettablePropertyName(am); }