public Class<?> findDeserializationContentType(Annotated paramAnnotated, JavaType paramJavaType, String paramString) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); Class localClass; if (localJsonDeserialize != null) { localClass = localJsonDeserialize.contentAs(); if (localClass == NoClass.class); } do { return localClass; JsonContentClass localJsonContentClass = (JsonContentClass)paramAnnotated.getAnnotation(JsonContentClass.class); if (localJsonContentClass == null) break; localClass = localJsonContentClass.value(); } while (localClass != NoClass.class); return null; }
public Class<?> findDeserializationKeyType(Annotated paramAnnotated, JavaType paramJavaType, String paramString) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); Class localClass; if (localJsonDeserialize != null) { localClass = localJsonDeserialize.keyAs(); if (localClass == NoClass.class); } do { return localClass; JsonKeyClass localJsonKeyClass = (JsonKeyClass)paramAnnotated.getAnnotation(JsonKeyClass.class); if (localJsonKeyClass == null) break; localClass = localJsonKeyClass.value(); } while (localClass != NoClass.class); return null; }
public Class<?> findDeserializationType(Annotated paramAnnotated, JavaType paramJavaType, String paramString) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); Class localClass; if (localJsonDeserialize != null) { localClass = localJsonDeserialize.as(); if (localClass == NoClass.class); } do { return localClass; JsonClass localJsonClass = (JsonClass)paramAnnotated.getAnnotation(JsonClass.class); if (localJsonClass == null) break; localClass = localJsonClass.value(); } while (localClass != NoClass.class); return null; }
@Override public void propertyField(JFieldVar field, JDefinedClass clazz, String propertyName, JsonNode propertyNode) { field.annotate(JsonProperty.class).param("value", propertyName); if (field.type().erasure().equals(field.type().owner().ref(Set.class))) { field.annotate(JsonDeserialize.class).param("as", LinkedHashSet.class); } if (propertyNode.has("javaJsonView")) { field.annotate(JsonView.class).param( "value", field.type().owner().ref(propertyNode.get("javaJsonView").asText())); } }
public Class<? extends JsonDeserializer<?>> findContentDeserializer(Annotated paramAnnotated) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.contentUsing(); if (localClass != JsonDeserializer.None.class) return localClass; } return null; }
public String findDeserializablePropertyName(AnnotatedField paramAnnotatedField) { JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedField.getAnnotation(JsonProperty.class); if (localJsonProperty != null) return localJsonProperty.value(); if ((paramAnnotatedField.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedField.hasAnnotation(JsonView.class))) return ""; return null; }
public Class<? extends JsonDeserializer<?>> findDeserializer(Annotated paramAnnotated, BeanProperty paramBeanProperty) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.using(); if (localClass != JsonDeserializer.None.class) return localClass; } return null; }
public Class<? extends KeyDeserializer> findKeyDeserializer(Annotated paramAnnotated) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.keyUsing(); if (localClass != KeyDeserializer.None.class) return localClass; } return null; }
public String findSettablePropertyName(AnnotatedMethod paramAnnotatedMethod) { JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class); if (localJsonProperty != null) return localJsonProperty.value(); JsonSetter localJsonSetter = (JsonSetter)paramAnnotatedMethod.getAnnotation(JsonSetter.class); if (localJsonSetter != null) return localJsonSetter.value(); if ((paramAnnotatedMethod.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class))) return ""; return null; }
@JsonDeserialize(using = JsonDateDeserializer.class) public void setExpiresAt(Date expiresAt) { if (expiresAt == null) { Calendar thirtyMinFromNow = Calendar.getInstance(); thirtyMinFromNow.add(Calendar.MINUTE, 30); expiresAt = thirtyMinFromNow.getTime(); } this.expiresAt = expiresAt; }
@JsonProperty("birthdate") @JsonDeserialize(using=SignupFormDeserializers.BirthdateDeserializer.class) protected void setBirthdate(List<Integer> birthdateFields) { this.month = birthdateFields.get(0); this.day = birthdateFields.get(1); this.year = birthdateFields.get(2); }
/** * A map of extension records, holding all verbatim extension terms. */ @NotNull @JsonSerialize(keyUsing = ExtensionSerializer.class, contentUsing = TermMapListSerializer.class) @JsonDeserialize(keyUsing = ExtensionKeyDeserializer.class, contentUsing = TermMapListDeserializer.class) public Map<Extension, List<Map<Term, String>>> getExtensions() { return extensions; }
/** * A map holding all verbatim extension terms. */ @NotNull @JsonSerialize(keyUsing = ExtensionSerializer.class, contentUsing = TermMapListSerializer.class) @JsonDeserialize(keyUsing = ExtensionKeyDeserializer.class, contentUsing = TermMapListDeserializer.class) public Map<Extension, List<Map<Term, String>>> getExtensions() { return extensions; }
public String findDeserializablePropertyName(AnnotatedField paramAnnotatedField) { JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedField.getAnnotation(JsonProperty.class); if (localJsonProperty != null) return localJsonProperty.value(); if ((paramAnnotatedField.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedField.hasAnnotation(JsonView.class)) || (paramAnnotatedField.hasAnnotation(JsonBackReference.class)) || (paramAnnotatedField.hasAnnotation(JsonManagedReference.class))) return ""; return null; }
public Class<?> findDeserializationContentType(Annotated paramAnnotated, JavaType paramJavaType, String paramString) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.contentAs(); if (localClass != NoClass.class) return localClass; } return null; }
public Class<?> findDeserializationKeyType(Annotated paramAnnotated, JavaType paramJavaType, String paramString) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.keyAs(); if (localClass != NoClass.class) return localClass; } return null; }
public Class<?> findDeserializationType(Annotated paramAnnotated, JavaType paramJavaType, String paramString) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.as(); if (localClass != NoClass.class) return localClass; } return null; }
public Class<? extends JsonDeserializer<?>> findDeserializer(Annotated paramAnnotated) { JsonDeserialize localJsonDeserialize = (JsonDeserialize)paramAnnotated.getAnnotation(JsonDeserialize.class); if (localJsonDeserialize != null) { Class localClass = localJsonDeserialize.using(); if (localClass != JsonDeserializer.None.class) return localClass; } return null; }
public String findSettablePropertyName(AnnotatedMethod paramAnnotatedMethod) { JsonProperty localJsonProperty = (JsonProperty)paramAnnotatedMethod.getAnnotation(JsonProperty.class); if (localJsonProperty != null) return localJsonProperty.value(); JsonSetter localJsonSetter = (JsonSetter)paramAnnotatedMethod.getAnnotation(JsonSetter.class); if (localJsonSetter != null) return localJsonSetter.value(); if ((paramAnnotatedMethod.hasAnnotation(JsonDeserialize.class)) || (paramAnnotatedMethod.hasAnnotation(JsonView.class)) || (paramAnnotatedMethod.hasAnnotation(JsonBackReference.class)) || (paramAnnotatedMethod.hasAnnotation(JsonManagedReference.class))) return ""; return null; }
@JsonDeserialize(using = StringToPathDeserializer.class) public void setLocalPath(final Path localPath) { this.localPath = localPath.toString(); }
@JsonDeserialize(using = StringToPathDeserializer.class) public void setRemoteDir(final Path remoteDir) { this.remoteDir = remoteDir.toString(); }
@JsonDeserialize(using = StringToPathDeserializer.class) public void setRootDir(final Path rootDir) { this.rootDir = rootDir.toString(); }
@JsonDeserialize(using = StringToPathDeserializer.class) public void setLocalPath(Path localPath) { this.localPath = localPath; }
@JsonDeserialize(using = StringToPathDeserializer.class) public void setRemoteDir(Path remoteDir) { this.remoteDir = remoteDir; }
@JsonDeserialize(using = StringToPathDeserializer.class) public void setRootDir(Path rootDir) { this.rootDir = rootDir; }
@JsonDeserialize(using = BoundingBoxDeserializer.class) BoundingBox getBoundingBox();
@JsonProperty("MspField") @JsonDeserialize(using = MultiSelectPicklistDeserializer.class) public void setMspField(MSPEnum[] mspField) { this.MspField = mspField; }
@JsonDeserialize(using = CustomJsonDateDeserializer.class) public void setStartTime(Date startTime) { this.startTime = startTime; }
@JsonDeserialize(using = CustomJsonDateDeserializer.class) public void setDoneTime(Date doneTime) { this.doneTime = doneTime; }
@JsonDeserialize(using = CourseUnitDeserializer.class) public void setUnits(List<CourseUnitDto> units) { this.units = units; }