calabash-android 0.4.7.pre6 → 0.4.7.pre7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/calabash-android/helpers.rb +7 -15
- data/lib/calabash-android/lib/TestServer.apk +0 -0
- data/lib/calabash-android/version.rb +1 -1
- data/test-server/build.xml +2 -2
- data/test-server/instrumentation-backend/.classpath +0 -3
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/HttpServer.java +1 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/wait/WaitForProgress.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/actions/webview/QueryHelper.java +1 -2
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/json/JSONUtils.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/QueryResult.java +1 -1
- data/test-server/instrumentation-backend/src/sh/calaba/instrumentationbackend/query/ast/UIQueryUtils.java +203 -222
- data/test-server/instrumentation-backend/src/sh/calaba/org/apache/http/entity/mime/version.properties +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variant.java +413 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Base64Variants.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/FormatSchema.java +29 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonEncoding.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonFactory.java +937 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerationException.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonGenerator.java +1197 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonLocation.java +141 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonNode.java +879 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParseException.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonParser.java +1434 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonProcessingException.java +80 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonStreamContext.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/JsonToken.java +161 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/ObjectCodec.java +157 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/PrettyPrinter.java +166 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/SerializableString.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Version.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/Versioned.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JacksonAnnotation.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnyGetter.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAnySetter.java +24 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonAutoDetect.java +148 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonBackReference.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonCreator.java +19 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonGetter.java +35 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnore.java +57 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreProperties.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonIgnoreType.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonManagedReference.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonMethod.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonProperty.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonPropertyOrder.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonRawValue.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSetter.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonSubTypes.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeInfo.java +236 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonTypeName.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonUnwrapped.java +76 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonValue.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/JsonWriteNullProperties.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/annotate/package-info.java +16 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatDetector.java +176 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/DataFormatMatcher.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/InputAccessor.java +130 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/MatchStrength.java +64 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/format/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ByteSourceBootstrapper.java +518 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/DefaultPrettyPrinter.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Indenter.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonGeneratorBase.java +570 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonNumericParserBase.java +20 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserBase.java +1067 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonParserMinimalBase.java +539 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonReadContext.java +188 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/JsonWriteContext.java +178 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParser.java +1815 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/ReaderBasedParserBase.java +228 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/StreamBasedParserBase.java +197 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8Generator.java +1757 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/Utf8StreamParser.java +2966 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/WriterBasedGenerator.java +1815 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/impl/package-info.java +6 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/BaseReader.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/CharacterEscapes.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/IOContext.java +239 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/InputDecorator.java +67 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/JsonStringEncoder.java +408 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/MergedStream.java +145 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberInput.java +303 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/NumberOutput.java +398 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/OutputDecorator.java +40 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SegmentedStringWriter.java +104 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/SerializedString.java +114 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF32Reader.java +214 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/UTF8Writer.java +387 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/io/package.html +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AbstractTypeResolver.java +63 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/AnnotationIntrospector.java +1485 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanDescription.java +171 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanProperty.java +123 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/BeanPropertyDefinition.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ClassIntrospector.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualDeserializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualKeyDeserializer.java +33 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ContextualSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationConfig.java +926 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationContext.java +262 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializationProblemHandler.java +56 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerFactory.java +356 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/DeserializerProvider.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Deserializers.java +339 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/HandlerInstantiator.java +115 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/InjectableValues.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonDeserializer.java +166 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonMappingException.java +335 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializable.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializableWithType.java +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/JsonSerializer.java +138 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializer.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/KeyDeserializers.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MapperConfig.java +1154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingIterator.java +190 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/MappingJsonFactory.java +81 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Module.java +255 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectMapper.java +2885 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectReader.java +958 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ObjectWriter.java +554 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/PropertyNamingStrategy.java +258 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableDeserializer.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ResolvableSerializer.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/RuntimeJsonMappingException.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializationConfig.java +1041 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerFactory.java +198 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/SerializerProvider.java +552 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/Serializers.java +137 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeDeserializer.java +118 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/TypeSerializer.java +164 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonInject.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JacksonStdImpl.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonCachable.java +32 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonDeserialize.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonFilter.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonRootName.java +29 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonSerialize.java +216 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeIdResolver.java +35 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonTypeResolver.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonValueInstantiator.java +26 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/JsonView.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/NoClass.java +19 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/annotate/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/AbstractDeserializer.java +102 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializer.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ArrayDeserializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BasicDeserializerFactory.java +894 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializer.java +1537 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerBuilder.java +277 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerFactory.java +1474 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/BeanDeserializerModifier.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CollectionDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ContainerDeserializer.java +14 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/CustomDeserializerFactory.java +227 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/DateDeserializer.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumDeserializer.java +15 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/EnumResolver.java +17 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/FromStringDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/JsonNodeDeserializer.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/MapDeserializer.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableAnyProperty.java +177 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/SettableBeanProperty.java +827 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializationContext.java +326 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializer.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializerProvider.java +494 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdDeserializers.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializer.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdKeyDeserializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/StdScalarDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ThrowableDeserializer.java +13 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/UntypedObjectDeserializer.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiator.java +280 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/ValueInstantiators.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/BeanPropertyMap.java +257 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorCollector.java +141 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/CreatorProperty.java +152 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ExternalTypeHandler.java +173 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyBasedCreator.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValue.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/PropertyValueBuffer.java +102 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/UnwrappedPropertyHandler.java +41 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/ValueInjector.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/impl/package-info.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicBooleanDeserializer.java +22 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/AtomicReferenceDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CalendarDeserializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ClassDeserializer.java +49 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/CollectionDeserializer.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ContainerDeserializerBase.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/DateDeserializer.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumDeserializer.java +139 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumMapDeserializer.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/EnumSetDeserializer.java +89 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/FromStringDeserializer.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JavaTypeDeserializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/JsonNodeDeserializer.java +314 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/MapDeserializer.java +412 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ObjectArrayDeserializer.java +201 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/PrimitiveArrayDeserializers.java +583 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdDeserializer.java +1136 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializer.java +340 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdKeyDeserializers.java +108 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdScalarDeserializer.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StdValueInstantiator.java +392 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringCollectionDeserializer.java +227 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/StringDeserializer.java +55 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/ThrowableDeserializer.java +164 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TimestampDeserializer.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/TokenBufferDeserializer.java +36 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/UntypedObjectDeserializer.java +248 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/deser/std/package-info.java +15 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/exc/UnrecognizedPropertyException.java +75 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/DOMDeserializer.java +65 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/OptionalHandlerFactory.java +217 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ext/package-info.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/Annotated.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedClass.java +980 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedConstructor.java +143 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedField.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMember.java +56 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethod.java +188 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedMethodMap.java +85 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedParameter.java +191 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotatedWithParams.java +195 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/AnnotationMap.java +101 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicBeanDescription.java +615 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/BasicClassIntrospector.java +364 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/JacksonAnnotationIntrospector.java +813 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MemberKey.java +83 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/MethodFilter.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/NopAnnotationIntrospector.java +209 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertiesCollector.java +713 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/POJOPropertyBuilder.java +648 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/VisibilityChecker.java +424 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/introspect/package-info.java +12 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/NamedType.java +53 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/SubtypeResolver.java +39 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeIdResolver.java +74 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/TypeResolverBuilder.java +151 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeDeserializer.java +126 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsArrayTypeSerializer.java +110 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeDeserializer.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsExternalTypeSerializer.java +129 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeDeserializer.java +191 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsPropertyTypeSerializer.java +69 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeDeserializer.java +103 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/AsWrapperTypeSerializer.java +121 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/ClassNameIdResolver.java +138 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/MinimalClassNameIdResolver.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdSubtypeResolver.java +151 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/StdTypeResolverBuilder.java +202 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeDeserializerBase.java +154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeIdResolverBase.java +37 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeNameIdResolver.java +154 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/TypeSerializerBase.java +31 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/impl/package-info.java +9 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/jsontype/package-info.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleAbstractTypeResolver.java +86 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleDeserializers.java +130 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleKeyDeserializers.java +59 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleModule.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleSerializers.java +206 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/SimpleValueInstantiators.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/module/package-info.java +16 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/package-info.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/AnyGetterWriter.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ArraySerializers.java +7 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BasicSerializerFactory.java +806 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyFilter.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanPropertyWriter.java +512 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializer.java +126 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerBuilder.java +140 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerFactory.java +780 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/BeanSerializerModifier.java +95 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ContainerSerializers.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/CustomSerializerFactory.java +293 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/EnumSerializer.java +17 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilterProvider.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/FilteredBeanPropertyWriter.java +96 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/JdkSerializers.java +11 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/MapSerializer.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/PropertyBuilder.java +372 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ScalarSerializerBase.java +18 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/SerializerBase.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdKeySerializer.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializerProvider.java +852 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/StdSerializers.java +372 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/ToStringSerializer.java +14 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/FailingSerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/JsonSerializerMap.java +93 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/PropertySerializerMap.java +231 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/ReadOnlyClassToSerializerMap.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SerializerCache.java +304 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleBeanPropertyFilter.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/SimpleFilterProvider.java +114 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnknownSerializer.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanPropertyWriter.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/UnwrappingBeanSerializer.java +76 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/impl/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/AsArraySerializerBase.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/BeanSerializerBase.java +340 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CalendarSerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/CollectionSerializer.java +113 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ContainerSerializerBase.java +51 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/DateSerializer.java +42 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumMapSerializer.java +218 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSerializer.java +84 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/EnumSetSerializer.java +47 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IndexedStringListSerializer.java +116 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/InetAddressSerializer.java +51 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/IterableSerializer.java +63 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/JsonValueSerializer.java +233 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/MapSerializer.java +422 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NonTypedScalarSerializerBase.java +34 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/NullSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ObjectArraySerializer.java +281 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/RawSerializer.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ScalarSerializerBase.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableSerializer.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializableWithTypeSerializer.java +90 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/SerializerBase.java +184 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StaticListSerializerBase.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdArraySerializers.java +476 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdContainerSerializers.java +249 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdJdkSerializers.java +195 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializer.java +43 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StdKeySerializers.java +95 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringCollectionSerializer.java +119 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/StringSerializer.java +36 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TimeZoneSerializer.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/ToStringSerializer.java +73 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/ser/std/TokenBufferSerializer.java +66 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ArrayType.java +260 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/ClassKey.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionLikeType.java +204 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/CollectionType.java +94 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/HierarchicType.java +88 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapLikeType.java +265 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/MapType.java +146 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/SimpleType.java +250 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBase.java +148 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeBindings.java +351 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeFactory.java +1165 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeModifier.java +38 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/TypeParser.java +134 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/type/package-info.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Annotations.java +23 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ArrayBuilders.java +293 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/BeanUtil.java +260 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ClassUtil.java +645 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Comparators.java +48 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumResolver.java +108 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/EnumValues.java +82 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601DateFormat.java +52 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ISO8601Utils.java +230 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONPObject.java +105 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/JSONWrappedObject.java +117 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LRUMap.java +28 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/LinkedNode.java +45 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Named.java +10 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/ObjectBuffer.java +257 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/PrimitiveArrayBuilder.java +180 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/Provider.java +21 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/RootNameLookup.java +54 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/StdDateFormat.java +348 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/map/util/package-info.java +4 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ArrayNode.java +758 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BaseJsonNode.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BigIntegerNode.java +104 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BinaryNode.java +136 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/BooleanNode.java +84 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ContainerNode.java +185 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DecimalNode.java +96 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/DoubleNode.java +106 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/IntNode.java +122 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/JsonNodeFactory.java +222 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/LongNode.java +99 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/MissingNode.java +97 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NodeCursor.java +222 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NullNode.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NumericNode.java +72 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ObjectNode.java +696 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/POJONode.java +145 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TextNode.java +299 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/TreeTraversingParser.java +383 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ValueNode.java +58 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/package-info.java +30 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSchema.java +82 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/JsonSerializableSchema.java +46 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/SchemaAware.java +25 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/schema/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/BytesToNameCanonicalizer.java +969 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/CharsToNameCanonicalizer.java +578 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name.java +50 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name1.java +44 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name2.java +40 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/Name3.java +39 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/NameN.java +68 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/sym/package-info.java +5 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/JavaType.java +503 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/TypeReference.java +60 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/type/package-info.java +8 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/BufferRecycler.java +109 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/ByteArrayBuilder.java +294 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/CharTypes.java +237 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/DefaultPrettyPrinter.java +282 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/InternCache.java +49 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonGeneratorDelegate.java +273 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserDelegate.java +251 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/JsonParserSequence.java +150 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/MinimalPrettyPrinter.java +152 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TextBuffer.java +707 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/TokenBuffer.java +1233 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/VersionUtil.java +79 -0
- data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/util/package-info.java +4 -0
- metadata +409 -5
- data/test-server/instrumentation-backend/libs/jackson-annotations-2.2.0-rc2-20130418.042013-1.jar +0 -0
- data/test-server/instrumentation-backend/libs/jackson-core-2.2.0-rc2-20130420.041001-2.jar +0 -0
- data/test-server/instrumentation-backend/libs/jackson-databind-2.2.0-rc2-20130422.041053-3.jar +0 -0
@@ -0,0 +1,37 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import sh.calaba.org.codehaus.jackson.map.JsonDeserializer;
|
4
|
+
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
5
|
+
|
6
|
+
/**
|
7
|
+
* Intermediate base deserializer class that adds more shared accessor
|
8
|
+
* so that other classes can access information about contained (value)
|
9
|
+
* types
|
10
|
+
*
|
11
|
+
* @since 1.9 (renamed from 'sh.calaba.org.codehaus.jackson.map.deser.ContainerDeserializer')
|
12
|
+
*/
|
13
|
+
public abstract class ContainerDeserializerBase<T>
|
14
|
+
extends StdDeserializer<T>
|
15
|
+
{
|
16
|
+
protected ContainerDeserializerBase(Class<?> selfType)
|
17
|
+
{
|
18
|
+
super(selfType);
|
19
|
+
}
|
20
|
+
|
21
|
+
/*
|
22
|
+
/**********************************************************
|
23
|
+
/* Extended API
|
24
|
+
/**********************************************************
|
25
|
+
*/
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Accessor for declared type of contained value elements; either exact
|
29
|
+
* type, or one of its supertypes.
|
30
|
+
*/
|
31
|
+
public abstract JavaType getContentType();
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Accesor for deserializer use for deserializing content values.
|
35
|
+
*/
|
36
|
+
public abstract JsonDeserializer<Object> getContentDeserializer();
|
37
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.util.Date;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
9
|
+
|
10
|
+
/**
|
11
|
+
* Simple deserializer for handling {@link java.util.Date} values.
|
12
|
+
*<p>
|
13
|
+
* One way to customize Date formats accepted is to override method
|
14
|
+
* {@link DeserializationContext#parseDate} that this basic
|
15
|
+
* deserializer calls.
|
16
|
+
*
|
17
|
+
* @since 1.9 (moved from higher-level package)
|
18
|
+
*/
|
19
|
+
public class DateDeserializer
|
20
|
+
extends StdScalarDeserializer<Date>
|
21
|
+
{
|
22
|
+
public DateDeserializer() { super(Date.class); }
|
23
|
+
|
24
|
+
@Override
|
25
|
+
public java.util.Date deserialize(JsonParser jp, DeserializationContext ctxt)
|
26
|
+
throws IOException, JsonProcessingException
|
27
|
+
{
|
28
|
+
return _parseDate(jp, ctxt);
|
29
|
+
}
|
30
|
+
}
|
@@ -0,0 +1,139 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.lang.reflect.Method;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.JsonToken;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationConfig;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.JsonDeserializer;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.annotate.JsonCachable;
|
13
|
+
import sh.calaba.org.codehaus.jackson.map.introspect.AnnotatedMethod;
|
14
|
+
import sh.calaba.org.codehaus.jackson.map.util.ClassUtil;
|
15
|
+
import sh.calaba.org.codehaus.jackson.map.util.EnumResolver;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Deserializer class that can deserialize instances of
|
19
|
+
* specified Enum class from Strings and Integers.
|
20
|
+
*
|
21
|
+
* @since 1.9 (moved from higher-level package)
|
22
|
+
*/
|
23
|
+
@JsonCachable
|
24
|
+
public class EnumDeserializer
|
25
|
+
extends StdScalarDeserializer<Enum<?>>
|
26
|
+
{
|
27
|
+
protected final EnumResolver<?> _resolver;
|
28
|
+
|
29
|
+
public EnumDeserializer(EnumResolver<?> res)
|
30
|
+
{
|
31
|
+
super(Enum.class);
|
32
|
+
_resolver = res;
|
33
|
+
}
|
34
|
+
|
35
|
+
/**
|
36
|
+
* Factory method used when Enum instances are to be deserialized
|
37
|
+
* using a creator (static factory method)
|
38
|
+
*
|
39
|
+
* @return Deserializer based on given factory method, if type was suitable;
|
40
|
+
* null if type can not be used
|
41
|
+
*
|
42
|
+
* @since 1.6
|
43
|
+
*/
|
44
|
+
public static JsonDeserializer<?> deserializerForCreator(DeserializationConfig config,
|
45
|
+
Class<?> enumClass, AnnotatedMethod factory)
|
46
|
+
{
|
47
|
+
// note: caller has verified there's just one arg; but we must verify its type
|
48
|
+
if (factory.getParameterType(0) != String.class) {
|
49
|
+
throw new IllegalArgumentException("Parameter #0 type for factory method ("+factory+") not suitable, must be java.lang.String");
|
50
|
+
}
|
51
|
+
if (config.isEnabled(DeserializationConfig.Feature.CAN_OVERRIDE_ACCESS_MODIFIERS)) {
|
52
|
+
ClassUtil.checkAndFixAccess(factory.getMember());
|
53
|
+
}
|
54
|
+
return new FactoryBasedDeserializer(enumClass, factory);
|
55
|
+
}
|
56
|
+
|
57
|
+
/*
|
58
|
+
/**********************************************************
|
59
|
+
/* Default JsonDeserializer implementation
|
60
|
+
/**********************************************************
|
61
|
+
*/
|
62
|
+
|
63
|
+
@Override
|
64
|
+
public Enum<?> deserialize(JsonParser jp, DeserializationContext ctxt)
|
65
|
+
throws IOException, JsonProcessingException
|
66
|
+
{
|
67
|
+
JsonToken curr = jp.getCurrentToken();
|
68
|
+
|
69
|
+
// Usually should just get string value; but in some cases FIELD_NAME (enum as key)
|
70
|
+
if (curr == JsonToken.VALUE_STRING || curr == JsonToken.FIELD_NAME) {
|
71
|
+
String name = jp.getText();
|
72
|
+
Enum<?> result = _resolver.findEnum(name);
|
73
|
+
if (result == null) {
|
74
|
+
throw ctxt.weirdStringException(_resolver.getEnumClass(), "value not one of declared Enum instance names");
|
75
|
+
}
|
76
|
+
return result;
|
77
|
+
}
|
78
|
+
// But let's consider int acceptable as well (if within ordinal range)
|
79
|
+
if (curr == JsonToken.VALUE_NUMBER_INT) {
|
80
|
+
/* ... unless told not to do that. :-)
|
81
|
+
* (as per [JACKSON-412]
|
82
|
+
*/
|
83
|
+
if (ctxt.isEnabled(DeserializationConfig.Feature.FAIL_ON_NUMBERS_FOR_ENUMS)) {
|
84
|
+
throw ctxt.mappingException("Not allowed to deserialize Enum value out of JSON number (disable DeserializationConfig.Feature.FAIL_ON_NUMBERS_FOR_ENUMS to allow)");
|
85
|
+
}
|
86
|
+
|
87
|
+
int index = jp.getIntValue();
|
88
|
+
Enum<?> result = _resolver.getEnum(index);
|
89
|
+
if (result == null) {
|
90
|
+
throw ctxt.weirdNumberException(_resolver.getEnumClass(), "index value outside legal index range [0.."+_resolver.lastValidIndex()+"]");
|
91
|
+
}
|
92
|
+
return result;
|
93
|
+
}
|
94
|
+
throw ctxt.mappingException(_resolver.getEnumClass());
|
95
|
+
}
|
96
|
+
|
97
|
+
/*
|
98
|
+
/**********************************************************
|
99
|
+
/* Default JsonDeserializer implementation
|
100
|
+
/**********************************************************
|
101
|
+
*/
|
102
|
+
|
103
|
+
/**
|
104
|
+
* Deserializer that uses a single-String static factory method
|
105
|
+
* for locating Enum values by String id.
|
106
|
+
*/
|
107
|
+
protected static class FactoryBasedDeserializer
|
108
|
+
extends StdScalarDeserializer<Object>
|
109
|
+
{
|
110
|
+
protected final Class<?> _enumClass;
|
111
|
+
protected final Method _factory;
|
112
|
+
|
113
|
+
public FactoryBasedDeserializer(Class<?> cls, AnnotatedMethod f)
|
114
|
+
{
|
115
|
+
super(Enum.class);
|
116
|
+
_enumClass = cls;
|
117
|
+
_factory = f.getAnnotated();
|
118
|
+
}
|
119
|
+
|
120
|
+
@Override
|
121
|
+
public Object deserialize(JsonParser jp, DeserializationContext ctxt)
|
122
|
+
throws IOException, JsonProcessingException
|
123
|
+
{
|
124
|
+
JsonToken curr = jp.getCurrentToken();
|
125
|
+
|
126
|
+
// Usually should just get string value:
|
127
|
+
if (curr != JsonToken.VALUE_STRING && curr != JsonToken.FIELD_NAME) {
|
128
|
+
throw ctxt.mappingException(_enumClass);
|
129
|
+
}
|
130
|
+
String value = jp.getText();
|
131
|
+
try {
|
132
|
+
return _factory.invoke(_enumClass, value);
|
133
|
+
} catch (Exception e) {
|
134
|
+
ClassUtil.unwrapAndThrowAsIAE(e);
|
135
|
+
}
|
136
|
+
return null;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.util.*;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.JsonToken;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.JsonDeserializer;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.TypeDeserializer;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.deser.std.StdDeserializer;
|
13
|
+
import sh.calaba.org.codehaus.jackson.map.util.EnumResolver;
|
14
|
+
|
15
|
+
/**
|
16
|
+
*
|
17
|
+
* <p>
|
18
|
+
* Note: casting within this class is all messed up -- just could not figure out a way
|
19
|
+
* to properly deal with recursive definition of "EnumMap<K extends Enum<K>, V>
|
20
|
+
*
|
21
|
+
* @author tsaloranta
|
22
|
+
*
|
23
|
+
* @since 1.9 (renamed from 'sh.calaba.org.codehaus.jackson.map.deser.EnumMapDeserializer')
|
24
|
+
*/
|
25
|
+
@SuppressWarnings({ "unchecked", "rawtypes" })
|
26
|
+
public class EnumMapDeserializer
|
27
|
+
extends StdDeserializer<EnumMap<?,?>>
|
28
|
+
{
|
29
|
+
protected final Class<?> _enumClass;
|
30
|
+
|
31
|
+
protected final JsonDeserializer<Enum<?>> _keyDeserializer;
|
32
|
+
|
33
|
+
protected final JsonDeserializer<Object> _valueDeserializer;
|
34
|
+
|
35
|
+
@Deprecated
|
36
|
+
public EnumMapDeserializer(EnumResolver<?> enumRes, JsonDeserializer<Object> valueDeser)
|
37
|
+
{
|
38
|
+
this(enumRes.getEnumClass(), new EnumDeserializer(enumRes), valueDeser);
|
39
|
+
}
|
40
|
+
|
41
|
+
public EnumMapDeserializer(Class<?> enumClass, JsonDeserializer<?> keyDeserializer,
|
42
|
+
JsonDeserializer<Object> valueDeser)
|
43
|
+
{
|
44
|
+
super(EnumMap.class);
|
45
|
+
_enumClass = enumClass;
|
46
|
+
_keyDeserializer = (JsonDeserializer<Enum<?>>) keyDeserializer;
|
47
|
+
_valueDeserializer = valueDeser;
|
48
|
+
}
|
49
|
+
|
50
|
+
@Override
|
51
|
+
public EnumMap<?,?> deserialize(JsonParser jp, DeserializationContext ctxt)
|
52
|
+
throws IOException, JsonProcessingException
|
53
|
+
{
|
54
|
+
// Ok: must point to START_OBJECT
|
55
|
+
if (jp.getCurrentToken() != JsonToken.START_OBJECT) {
|
56
|
+
throw ctxt.mappingException(EnumMap.class);
|
57
|
+
}
|
58
|
+
EnumMap result = constructMap();
|
59
|
+
|
60
|
+
while ((jp.nextToken()) != JsonToken.END_OBJECT) {
|
61
|
+
Enum<?> key = _keyDeserializer.deserialize(jp, ctxt);
|
62
|
+
if (key == null) {
|
63
|
+
throw ctxt.weirdStringException(_enumClass, "value not one of declared Enum instance names");
|
64
|
+
}
|
65
|
+
// And then the value...
|
66
|
+
JsonToken t = jp.nextToken();
|
67
|
+
/* note: MUST check for nulls separately: deserializers will
|
68
|
+
* not handle them (and maybe fail or return bogus data)
|
69
|
+
*/
|
70
|
+
Object value = (t == JsonToken.VALUE_NULL) ?
|
71
|
+
null : _valueDeserializer.deserialize(jp, ctxt);
|
72
|
+
result.put(key, value);
|
73
|
+
}
|
74
|
+
return result;
|
75
|
+
}
|
76
|
+
|
77
|
+
@Override
|
78
|
+
public Object deserializeWithType(JsonParser jp, DeserializationContext ctxt,
|
79
|
+
TypeDeserializer typeDeserializer)
|
80
|
+
throws IOException, JsonProcessingException
|
81
|
+
{
|
82
|
+
// In future could check current token... for now this should be enough:
|
83
|
+
return typeDeserializer.deserializeTypedFromObject(jp, ctxt);
|
84
|
+
}
|
85
|
+
|
86
|
+
private EnumMap<?,?> constructMap()
|
87
|
+
{
|
88
|
+
return new EnumMap(_enumClass);
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.util.*;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.JsonToken;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.JsonDeserializer;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.TypeDeserializer;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.util.EnumResolver;
|
13
|
+
|
14
|
+
/**
|
15
|
+
*
|
16
|
+
* <p>
|
17
|
+
* Note: casting within this class is all messed up -- just could not figure out a way
|
18
|
+
* to properly deal with recursive definition of "EnumSet<K extends Enum<K>, V>
|
19
|
+
*
|
20
|
+
* @author tsaloranta
|
21
|
+
*
|
22
|
+
* @since 1.9 (moved from higher-level package)
|
23
|
+
*/
|
24
|
+
@SuppressWarnings("rawtypes")
|
25
|
+
public class EnumSetDeserializer
|
26
|
+
extends StdDeserializer<EnumSet<?>>
|
27
|
+
{
|
28
|
+
protected final Class<Enum> _enumClass;
|
29
|
+
|
30
|
+
protected final JsonDeserializer<Enum<?>> _enumDeserializer;
|
31
|
+
|
32
|
+
@SuppressWarnings("unchecked" )
|
33
|
+
public EnumSetDeserializer(EnumResolver enumRes)
|
34
|
+
{
|
35
|
+
// fugly, but what we can we do...
|
36
|
+
this((Class<Enum>) ((Class<?>) enumRes.getEnumClass()),
|
37
|
+
new EnumDeserializer(enumRes));
|
38
|
+
}
|
39
|
+
|
40
|
+
@SuppressWarnings("unchecked" )
|
41
|
+
public EnumSetDeserializer(Class<?> enumClass, JsonDeserializer<?> deser)
|
42
|
+
{
|
43
|
+
super(EnumSet.class);
|
44
|
+
_enumClass = (Class<Enum>) enumClass;
|
45
|
+
_enumDeserializer = (JsonDeserializer<Enum<?>>) deser;
|
46
|
+
}
|
47
|
+
|
48
|
+
@SuppressWarnings("unchecked")
|
49
|
+
@Override
|
50
|
+
public EnumSet<?> deserialize(JsonParser jp, DeserializationContext ctxt)
|
51
|
+
throws IOException, JsonProcessingException
|
52
|
+
{
|
53
|
+
// Ok: must point to START_ARRAY (or equivalent)
|
54
|
+
if (!jp.isExpectedStartArrayToken()) {
|
55
|
+
throw ctxt.mappingException(EnumSet.class);
|
56
|
+
}
|
57
|
+
EnumSet result = constructSet();
|
58
|
+
JsonToken t;
|
59
|
+
|
60
|
+
while ((t = jp.nextToken()) != JsonToken.END_ARRAY) {
|
61
|
+
/* What to do with nulls? Fail or ignore? Fail, for now
|
62
|
+
* (note: would fail if we passed it to EnumDeserializer, too,
|
63
|
+
* but in general nulls should never be passed to non-container
|
64
|
+
* deserializers)
|
65
|
+
*/
|
66
|
+
if (t == JsonToken.VALUE_NULL) {
|
67
|
+
throw ctxt.mappingException(_enumClass);
|
68
|
+
}
|
69
|
+
Enum<?> value = _enumDeserializer.deserialize(jp, ctxt);
|
70
|
+
result.add(value);
|
71
|
+
}
|
72
|
+
return result;
|
73
|
+
}
|
74
|
+
|
75
|
+
@Override
|
76
|
+
public Object deserializeWithType(JsonParser jp, DeserializationContext ctxt,
|
77
|
+
TypeDeserializer typeDeserializer)
|
78
|
+
throws IOException, JsonProcessingException
|
79
|
+
{
|
80
|
+
return typeDeserializer.deserializeTypedFromArray(jp, ctxt);
|
81
|
+
}
|
82
|
+
|
83
|
+
@SuppressWarnings("unchecked")
|
84
|
+
private EnumSet constructSet()
|
85
|
+
{
|
86
|
+
// superbly ugly... but apparently necessary
|
87
|
+
return EnumSet.noneOf(_enumClass);
|
88
|
+
}
|
89
|
+
}
|
@@ -0,0 +1,265 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.*;
|
4
|
+
import java.net.InetAddress;
|
5
|
+
import java.net.URI;
|
6
|
+
import java.net.URL;
|
7
|
+
import java.nio.charset.Charset;
|
8
|
+
import java.util.*;
|
9
|
+
import java.util.regex.Pattern;
|
10
|
+
|
11
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
12
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
13
|
+
import sh.calaba.org.codehaus.jackson.JsonToken;
|
14
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationContext;
|
15
|
+
|
16
|
+
/**
|
17
|
+
* Base class for simple deserializer which only accept JSON String
|
18
|
+
* values as the source.
|
19
|
+
*
|
20
|
+
* @since 1.9 (moved from higher-level package)
|
21
|
+
*/
|
22
|
+
public abstract class FromStringDeserializer<T>
|
23
|
+
extends StdScalarDeserializer<T>
|
24
|
+
{
|
25
|
+
protected FromStringDeserializer(Class<?> vc) {
|
26
|
+
super(vc);
|
27
|
+
}
|
28
|
+
|
29
|
+
public static Iterable<FromStringDeserializer<?>>all()
|
30
|
+
{
|
31
|
+
ArrayList<FromStringDeserializer<?>> all = new ArrayList<FromStringDeserializer<?>>();
|
32
|
+
|
33
|
+
all.add(new UUIDDeserializer());
|
34
|
+
all.add(new URLDeserializer());
|
35
|
+
all.add(new URIDeserializer());
|
36
|
+
all.add(new CurrencyDeserializer());
|
37
|
+
all.add(new PatternDeserializer());
|
38
|
+
// since 1.7:
|
39
|
+
all.add(new LocaleDeserializer());
|
40
|
+
// 1.8:
|
41
|
+
all.add(new InetAddressDeserializer());
|
42
|
+
all.add(new TimeZoneDeserializer());
|
43
|
+
// 1.9
|
44
|
+
all.add(new CharsetDeserializer());
|
45
|
+
|
46
|
+
return all;
|
47
|
+
}
|
48
|
+
|
49
|
+
@SuppressWarnings("unchecked")
|
50
|
+
@Override
|
51
|
+
public final T deserialize(JsonParser jp, DeserializationContext ctxt)
|
52
|
+
throws IOException, JsonProcessingException
|
53
|
+
{
|
54
|
+
if (jp.getCurrentToken() == JsonToken.VALUE_STRING) {
|
55
|
+
String text = jp.getText().trim();
|
56
|
+
// 15-Oct-2010, tatu: Empty String usually means null, so
|
57
|
+
if (text.length() == 0) {
|
58
|
+
return null;
|
59
|
+
}
|
60
|
+
try {
|
61
|
+
T result = _deserialize(text, ctxt);
|
62
|
+
if (result != null) {
|
63
|
+
return result;
|
64
|
+
}
|
65
|
+
} catch (IllegalArgumentException iae) {
|
66
|
+
// nothing to do here, yet? We'll fail anyway
|
67
|
+
}
|
68
|
+
throw ctxt.weirdStringException(_valueClass, "not a valid textual representation");
|
69
|
+
}
|
70
|
+
if (jp.getCurrentToken() == JsonToken.VALUE_EMBEDDED_OBJECT) {
|
71
|
+
// Trivial cases; null to null, instance of type itself returned as is
|
72
|
+
Object ob = jp.getEmbeddedObject();
|
73
|
+
if (ob == null) {
|
74
|
+
return null;
|
75
|
+
}
|
76
|
+
if (_valueClass.isAssignableFrom(ob.getClass())) {
|
77
|
+
return (T) ob;
|
78
|
+
}
|
79
|
+
return _deserializeEmbedded(ob, ctxt);
|
80
|
+
}
|
81
|
+
throw ctxt.mappingException(_valueClass);
|
82
|
+
}
|
83
|
+
|
84
|
+
protected abstract T _deserialize(String value, DeserializationContext ctxt)
|
85
|
+
throws IOException, JsonProcessingException;
|
86
|
+
|
87
|
+
protected T _deserializeEmbedded(Object ob, DeserializationContext ctxt)
|
88
|
+
throws IOException, JsonProcessingException
|
89
|
+
{
|
90
|
+
// default impl: error out
|
91
|
+
throw ctxt.mappingException("Don't know how to convert embedded Object of type "
|
92
|
+
+ob.getClass().getName()+" into "+_valueClass.getName());
|
93
|
+
}
|
94
|
+
|
95
|
+
/*
|
96
|
+
/**********************************************************
|
97
|
+
/* Then concrete implementations
|
98
|
+
/**********************************************************
|
99
|
+
*/
|
100
|
+
|
101
|
+
public static class UUIDDeserializer
|
102
|
+
extends FromStringDeserializer<UUID>
|
103
|
+
{
|
104
|
+
public UUIDDeserializer() { super(UUID.class); }
|
105
|
+
|
106
|
+
@Override
|
107
|
+
protected UUID _deserialize(String value, DeserializationContext ctxt)
|
108
|
+
throws IOException, JsonProcessingException
|
109
|
+
{
|
110
|
+
return UUID.fromString(value);
|
111
|
+
}
|
112
|
+
|
113
|
+
@Override
|
114
|
+
protected UUID _deserializeEmbedded(Object ob, DeserializationContext ctxt)
|
115
|
+
throws IOException, JsonProcessingException
|
116
|
+
{
|
117
|
+
if (ob instanceof byte[]) {
|
118
|
+
byte[] bytes = (byte[]) ob;
|
119
|
+
if (bytes.length != 16) {
|
120
|
+
ctxt.mappingException("Can only construct UUIDs from 16 byte arrays; got "+bytes.length+" bytes");
|
121
|
+
}
|
122
|
+
// clumsy, but should work for now...
|
123
|
+
DataInputStream in = new DataInputStream(new ByteArrayInputStream(bytes));
|
124
|
+
long l1 = in.readLong();
|
125
|
+
long l2 = in.readLong();
|
126
|
+
return new UUID(l1, l2);
|
127
|
+
}
|
128
|
+
super._deserializeEmbedded(ob, ctxt);
|
129
|
+
return null; // never gets here
|
130
|
+
}
|
131
|
+
}
|
132
|
+
|
133
|
+
public static class URLDeserializer
|
134
|
+
extends FromStringDeserializer<URL>
|
135
|
+
{
|
136
|
+
public URLDeserializer() { super(URL.class); }
|
137
|
+
|
138
|
+
@Override
|
139
|
+
protected URL _deserialize(String value, DeserializationContext ctxt)
|
140
|
+
throws IOException
|
141
|
+
{
|
142
|
+
return new URL(value);
|
143
|
+
}
|
144
|
+
}
|
145
|
+
|
146
|
+
public static class URIDeserializer
|
147
|
+
extends FromStringDeserializer<URI>
|
148
|
+
{
|
149
|
+
public URIDeserializer() { super(URI.class); }
|
150
|
+
|
151
|
+
@Override
|
152
|
+
protected URI _deserialize(String value, DeserializationContext ctxt)
|
153
|
+
throws IllegalArgumentException
|
154
|
+
{
|
155
|
+
return URI.create(value);
|
156
|
+
}
|
157
|
+
}
|
158
|
+
|
159
|
+
public static class CurrencyDeserializer
|
160
|
+
extends FromStringDeserializer<Currency>
|
161
|
+
{
|
162
|
+
public CurrencyDeserializer() { super(Currency.class); }
|
163
|
+
|
164
|
+
@Override
|
165
|
+
protected Currency _deserialize(String value, DeserializationContext ctxt)
|
166
|
+
throws IllegalArgumentException
|
167
|
+
{
|
168
|
+
// will throw IAE if unknown:
|
169
|
+
return Currency.getInstance(value);
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
173
|
+
public static class PatternDeserializer
|
174
|
+
extends FromStringDeserializer<Pattern>
|
175
|
+
{
|
176
|
+
public PatternDeserializer() { super(Pattern.class); }
|
177
|
+
|
178
|
+
@Override
|
179
|
+
protected Pattern _deserialize(String value, DeserializationContext ctxt)
|
180
|
+
throws IllegalArgumentException
|
181
|
+
{
|
182
|
+
// will throw IAE (or its subclass) if malformed
|
183
|
+
return Pattern.compile(value);
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
/**
|
188
|
+
* Kept protected as it's not meant to be extensible at this point
|
189
|
+
*
|
190
|
+
* @since 1.7
|
191
|
+
*/
|
192
|
+
protected static class LocaleDeserializer
|
193
|
+
extends FromStringDeserializer<Locale>
|
194
|
+
{
|
195
|
+
public LocaleDeserializer() { super(Locale.class); }
|
196
|
+
|
197
|
+
@Override
|
198
|
+
protected Locale _deserialize(String value, DeserializationContext ctxt)
|
199
|
+
throws IOException
|
200
|
+
{
|
201
|
+
int ix = value.indexOf('_');
|
202
|
+
if (ix < 0) { // single argument
|
203
|
+
return new Locale(value);
|
204
|
+
}
|
205
|
+
String first = value.substring(0, ix);
|
206
|
+
value = value.substring(ix+1);
|
207
|
+
ix = value.indexOf('_');
|
208
|
+
if (ix < 0) { // two pieces
|
209
|
+
return new Locale(first, value);
|
210
|
+
}
|
211
|
+
String second = value.substring(0, ix);
|
212
|
+
return new Locale(first, second, value.substring(ix+1));
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
/**
|
217
|
+
* As per [JACKSON-484], also need special handling for InetAddress...
|
218
|
+
*
|
219
|
+
* @since 1.7.4
|
220
|
+
*/
|
221
|
+
protected static class InetAddressDeserializer
|
222
|
+
extends FromStringDeserializer<InetAddress>
|
223
|
+
{
|
224
|
+
public InetAddressDeserializer() { super(InetAddress.class); }
|
225
|
+
|
226
|
+
@Override
|
227
|
+
protected InetAddress _deserialize(String value, DeserializationContext ctxt)
|
228
|
+
throws IOException
|
229
|
+
{
|
230
|
+
return InetAddress.getByName(value);
|
231
|
+
}
|
232
|
+
}
|
233
|
+
|
234
|
+
// [JACKSON-789] (since 1.9.5)
|
235
|
+
protected static class CharsetDeserializer
|
236
|
+
extends FromStringDeserializer<Charset>
|
237
|
+
{
|
238
|
+
public CharsetDeserializer() { super(Charset.class); }
|
239
|
+
|
240
|
+
@Override
|
241
|
+
protected Charset _deserialize(String value, DeserializationContext ctxt)
|
242
|
+
throws IOException
|
243
|
+
{
|
244
|
+
return Charset.forName(value);
|
245
|
+
}
|
246
|
+
}
|
247
|
+
|
248
|
+
/**
|
249
|
+
* As per [JACKSON-522], also need special handling for InetAddress...
|
250
|
+
*
|
251
|
+
* @since 1.7.4
|
252
|
+
*/
|
253
|
+
protected static class TimeZoneDeserializer
|
254
|
+
extends FromStringDeserializer<TimeZone>
|
255
|
+
{
|
256
|
+
public TimeZoneDeserializer() { super(TimeZone.class); }
|
257
|
+
|
258
|
+
@Override
|
259
|
+
protected TimeZone _deserialize(String value, DeserializationContext ctxt)
|
260
|
+
throws IOException
|
261
|
+
{
|
262
|
+
return TimeZone.getTimeZone(value);
|
263
|
+
}
|
264
|
+
}
|
265
|
+
}
|