public void acceptJsonFormatVisitor( JsonFormatVisitorWrapper paramJsonFormatVisitorWrapper, JavaType paramJavaType) throws JsonMappingException { JsonArrayFormatVisitor localJsonArrayFormatVisitor = paramJsonFormatVisitorWrapper.expectArrayFormat(paramJavaType); if (localJsonArrayFormatVisitor != null) { JavaType localJavaType = paramJsonFormatVisitorWrapper .getProvider() .getTypeFactory() .moreSpecificType(this._elementType, paramJavaType.getContentType()); if (localJavaType == null) { throw new JsonMappingException("Could not resolve type"); } JsonSerializer localJsonSerializer = this._elementSerializer; paramJavaType = localJsonSerializer; if (localJsonSerializer == null) { paramJavaType = paramJsonFormatVisitorWrapper .getProvider() .findValueSerializer(localJavaType, this._property); } localJsonArrayFormatVisitor.itemsFormat(paramJavaType, localJavaType); } }
public void acceptJsonFormatVisitor(JsonFormatVisitorWrapper visitor, JavaType typeHint) throws JsonMappingException { if (visitor != null) { JsonArrayFormatVisitor v2 = visitor.expectArrayFormat(typeHint); if (v2 != null) { v2.itemsFormat(JsonFormatTypes.STRING); } } }
protected void _acceptJsonFormatVisitor( JsonFormatVisitorWrapper visitor, JavaType typeHint, boolean asNumber) throws JsonMappingException { if (asNumber) { if (_usesArrays) { JsonArrayFormatVisitor v2 = visitor.expectArrayFormat(typeHint); if (v2 != null) { v2.itemsFormat(JsonFormatTypes.INTEGER); } } else { JsonIntegerFormatVisitor v2 = visitor.expectIntegerFormat(typeHint); if (v2 != null) { v2.numberType(JsonParser.NumberType.LONG); v2.format(JsonValueFormat.UTC_MILLISEC); } } } else { JsonStringFormatVisitor v2 = visitor.expectStringFormat(typeHint); if (v2 != null) { v2.format(JsonValueFormat.DATE_TIME); } } }
@Override protected void acceptContentVisitor(JsonArrayFormatVisitor visitor) throws JsonMappingException { visitor.itemsFormat(JsonFormatTypes.STRING); }