Java 类org.codehaus.jackson.map.annotate.JsonDeserialize 实例源码

项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:GitHub    文件:Jackson1Annotator.java   
@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()));
    }
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:oauth-client-master    文件:Approval.java   
@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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:12306-android-Decompile    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:spring-greenhouse-clickstart    文件:SignupForm.java   
@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);
}
项目:gbif-api    文件:VerbatimNameUsage.java   
/**
 * 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;
}
项目:gbif-api    文件:VerbatimOccurrence.java   
/**
 * 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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:ingress-indonesia-dev    文件:JacksonAnnotationIntrospector.java   
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;
}
项目:jwala    文件:JpaMedia.java   
@JsonDeserialize(using = StringToPathDeserializer.class)
public void setLocalPath(final Path localPath) {
    this.localPath = localPath.toString();
}
项目:jwala    文件:JpaMedia.java   
@JsonDeserialize(using = StringToPathDeserializer.class)
public void setRemoteDir(final Path remoteDir) {
    this.remoteDir = remoteDir.toString();
}
项目:jwala    文件:JpaMedia.java   
@JsonDeserialize(using = StringToPathDeserializer.class)
public void setRootDir(final Path rootDir) {
    this.rootDir = rootDir.toString();
}
项目:jwala    文件:Media.java   
@JsonDeserialize(using = StringToPathDeserializer.class)
public void setLocalPath(Path localPath) {
    this.localPath = localPath;
}
项目:jwala    文件:Media.java   
@JsonDeserialize(using = StringToPathDeserializer.class)
public void setRemoteDir(Path remoteDir) {
    this.remoteDir = remoteDir;
}
项目:jwala    文件:Media.java   
@JsonDeserialize(using = StringToPathDeserializer.class)
public void setRootDir(Path rootDir) {
    this.rootDir = rootDir;
}
项目:taxonaut    文件:BoundingBoxMixIn.java   
@JsonDeserialize(using = BoundingBoxDeserializer.class)
BoundingBox getBoundingBox();
项目:Camel    文件:MSPTest.java   
@JsonProperty("MspField")
@JsonDeserialize(using = MultiSelectPicklistDeserializer.class)
public void setMspField(MSPEnum[] mspField) {
    this.MspField = mspField;
}
项目:Todo-Jersey-Spring-MyBatis    文件:Event.java   
@JsonDeserialize(using = CustomJsonDateDeserializer.class)
public void setStartTime(Date startTime) {
    this.startTime = startTime;
}
项目:Todo-Jersey-Spring-MyBatis    文件:Event.java   
@JsonDeserialize(using = CustomJsonDateDeserializer.class)
public void setDoneTime(Date doneTime) {
    this.doneTime = doneTime;
}
项目:modules    文件:CourseUnitDto.java   
@JsonDeserialize(using = CourseUnitDeserializer.class)
public void setUnits(List<CourseUnitDto> units) {
    this.units = units;
}