@Override public boolean ignoreEncoding() { return jacksonObj.value(); }
@Override public boolean ignoreDecoding() { return jacksonObj.value(); }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = _findAnnotation(a, JsonIgnore.class); if (ann != null) { return ann.value(); } if (_java7Helper != null) { Boolean b = _java7Helper.findTransient(a); if (b != null) { return b.booleanValue(); } } return false; }
/** * @param jsonIgnore * @return true if jsonIgnore.value() is true */ private boolean isJsonIgnored(JsonIgnore jsonIgnore) { return jsonIgnore != null && jsonIgnore.value(); }
/** * @param jsonIgnore * @return true if jsonIgnore.value() is true */ private boolean isJsonIgnored(JsonIgnore jsonIgnore) { return jsonIgnore != null && jsonIgnore.value(); }
private void readJsonAnnotations(DeployBeanProperty prop) { if (jacksonAnnotationsPresent) { com.fasterxml.jackson.annotation.JsonIgnore jsonIgnore = get(prop, com.fasterxml.jackson.annotation.JsonIgnore.class); if (jsonIgnore != null) { prop.setJsonSerialize(!jsonIgnore.value()); prop.setJsonDeserialize(!jsonIgnore.value()); } } Expose expose = get(prop, Expose.class); if (expose != null) { prop.setJsonSerialize(expose.serialize()); prop.setJsonDeserialize(expose.deserialize()); } JsonIgnore jsonIgnore = get(prop, JsonIgnore.class); if (jsonIgnore != null) { prop.setJsonSerialize(jsonIgnore.serialize()); prop.setJsonDeserialize(jsonIgnore.deserialize()); } if (get(prop, UnmappedJson.class) != null) { prop.setUnmappedJson(); } }
@Override public boolean ignoreDecoding() { return jacksonObj.value(); }
@Override public boolean ignoreEncoding() { return jacksonObj.value(); }
public boolean isIgnored(Element el) { if (IgnoreUtils.isIgnored(el)) { return true; } if (el instanceof PropertyElement && el.getAnnotation(JsonProperty.class) != null) { //support for jackson "split properties". return false; } return el.getAnnotation(JsonIgnore.class) != null && el.getAnnotation(JsonIgnore.class).value(); }
/** * @param descriptor * @return */ protected boolean ignoreProperty(PropertyDescriptor descriptor) { if (descriptor != null && descriptor.getReadMethod() != null) { //Jackson Support if (descriptor.getReadMethod().isAnnotationPresent(JsonIgnore.class)) { return descriptor.getReadMethod().getAnnotation(JsonIgnore.class).value(); } return false; } return true; } }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = _findAnnotation(a, JsonIgnore.class); return (ann != null && ann.value()); }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = _findAnnotation(a, JsonIgnore.class); return (ann != null && ann.value()); }
public boolean isIgnored(Element el) { if (IgnoreUtils.isIgnored(el)) { return true; } if (el instanceof PropertyElement && el.getAnnotation(JsonProperty.class) != null) { //support for jackson "split properties". return false; } return el.getAnnotation(JsonIgnore.class) != null && el.getAnnotation(JsonIgnore.class).value(); }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = a.getAnnotation(JsonIgnore.class); return (ann != null && ann.value()); }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = a.getAnnotation(JsonIgnore.class); return (ann != null && ann.value()); }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = _findAnnotation(a, JsonIgnore.class); if (ann != null) { return ann.value(); } if (_java7Helper != null) { Boolean b = _java7Helper.findTransient(a); if (b != null) { return b.booleanValue(); } } return false; }
protected boolean _isIgnorable(Annotated a) { JsonIgnore ann = _findAnnotation(a, JsonIgnore.class); if (ann != null) { return ann.value(); } if (_java7Helper != null) { Boolean b = _java7Helper.findTransient(a); if (b != null) { return b.booleanValue(); } } return false; }
private void readJsonAnnotations(DeployBeanProperty prop) { if (jacksonAnnotationsPresent) { com.fasterxml.jackson.annotation.JsonIgnore jsonIgnore = get(prop, com.fasterxml.jackson.annotation.JsonIgnore.class); if (jsonIgnore != null) { prop.setJsonSerialize(!jsonIgnore.value()); prop.setJsonDeserialize(!jsonIgnore.value()); } } Expose expose = get(prop, Expose.class); if (expose != null) { prop.setJsonSerialize(expose.serialize()); prop.setJsonDeserialize(expose.deserialize()); } JsonIgnore jsonIgnore = get(prop, JsonIgnore.class); if (jsonIgnore != null) { prop.setJsonSerialize(jsonIgnore.serialize()); prop.setJsonDeserialize(jsonIgnore.deserialize()); } if (get(prop, UnmappedJson.class) != null) { prop.setUnmappedJson(); } }
private void readJsonAnnotations(DeployBeanProperty prop) { if (jacksonAnnotationsPresent) { com.fasterxml.jackson.annotation.JsonIgnore jsonIgnore = get(prop, com.fasterxml.jackson.annotation.JsonIgnore.class); if (jsonIgnore != null) { prop.setJsonSerialize(!jsonIgnore.value()); prop.setJsonDeserialize(!jsonIgnore.value()); } } Expose expose = get(prop, Expose.class); if (expose != null) { prop.setJsonSerialize(expose.serialize()); prop.setJsonDeserialize(expose.deserialize()); } JsonIgnore jsonIgnore = get(prop, JsonIgnore.class); if (jsonIgnore != null) { prop.setJsonSerialize(jsonIgnore.serialize()); prop.setJsonDeserialize(jsonIgnore.deserialize()); } if (get(prop, UnmappedJson.class) != null) { prop.setUnmappedJson(); } }
private static boolean isPropertyIgnored( RebindConfiguration configuration, PropertyAccessors propertyAccessors, BeanInfo beanInfo, JType type, String propertyName ) { // we first check if the property is ignored Optional<JsonIgnore> jsonIgnore = propertyAccessors.getAnnotation( JsonIgnore.class ); if ( jsonIgnore.isPresent() && jsonIgnore.get().value() ) { return true; } // if type is ignored, we ignore the property if ( null != type.isClassOrInterface() ) { Optional<JsonIgnoreType> jsonIgnoreType = findFirstEncounteredAnnotationsOnAllHierarchy( configuration, type .isClassOrInterface(), JsonIgnoreType.class ); if ( jsonIgnoreType.isPresent() && jsonIgnoreType.get().value() ) { return true; } } // we check if it's not in the ignored properties return beanInfo.getIgnoredFields().contains( propertyName ); }