Beispiel #1
0
 @Override
 public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) {
   // jackphel Aug 17 2012 : this can definitely more more exact.
   visitor.expectObjectFormat(typeHint);
 }
 public void acceptJsonFormatVisitor(
     JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType)
     throws JsonMappingException {
   if (paramJsonFormatVisitorWrapper == null) {}
   for (; ; ) {
     return;
     JsonObjectFormatVisitor localJsonObjectFormatVisitor =
         paramJsonFormatVisitorWrapper.expectObjectFormat(paramJavaType);
     if (localJsonObjectFormatVisitor != null) {
       Object localObject3 = paramJavaType.containedType(1);
       Object localObject2 = this._valueSerializer;
       Object localObject1 = localObject2;
       if (localObject2 == null) {
         localObject1 = localObject2;
         if (localObject3 != null) {
           localObject1 =
               paramJsonFormatVisitorWrapper
                   .getProvider()
                   .findValueSerializer((JavaType) localObject3, this._property);
         }
       }
       localObject2 = localObject3;
       if (localObject3 == null) {
         localObject2 = paramJsonFormatVisitorWrapper.getProvider().constructType(Object.class);
       }
       Object localObject4 = this._keyEnums;
       localObject3 = localObject4;
       if (localObject4 == null) {
         localObject3 = paramJavaType.containedType(0);
         if (localObject3 == null) {
           throw new IllegalStateException(
               "Can not resolve Enum type of EnumMap: " + paramJavaType);
         }
         localObject3 =
             paramJsonFormatVisitorWrapper
                 .getProvider()
                 .findValueSerializer((JavaType) localObject3, this._property);
         if (!(localObject3 instanceof EnumSerializer)) {
           throw new IllegalStateException(
               "Can not resolve Enum type of EnumMap: " + paramJavaType);
         }
         localObject3 = ((EnumSerializer) localObject3).getEnumValues();
       }
       localObject3 = ((EnumValues) localObject3).internalMap().entrySet().iterator();
       while (((Iterator) localObject3).hasNext()) {
         Map.Entry localEntry = (Map.Entry) ((Iterator) localObject3).next();
         localObject4 = ((SerializableString) localEntry.getValue()).getValue();
         paramJavaType = (JavaType) localObject1;
         if (localObject1 == null) {
           paramJavaType =
               paramJsonFormatVisitorWrapper
                   .getProvider()
                   .findValueSerializer(localEntry.getKey().getClass(), this._property);
         }
         localJsonObjectFormatVisitor.property(
             (String) localObject4, paramJavaType, (JavaType) localObject2);
         localObject1 = paramJavaType;
       }
     }
   }
 }