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,392 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
|
5
|
+
import sh.calaba.org.codehaus.jackson.JsonProcessingException;
|
6
|
+
import sh.calaba.org.codehaus.jackson.map.DeserializationConfig;
|
7
|
+
import sh.calaba.org.codehaus.jackson.map.JsonMappingException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.deser.SettableBeanProperty;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.deser.ValueInstantiator;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.deser.impl.CreatorProperty;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.introspect.AnnotatedWithParams;
|
12
|
+
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
13
|
+
|
14
|
+
/**
|
15
|
+
* Basic {@link ValueInstantiator} implementation, which only
|
16
|
+
* supports use of default constructor. Sub-types can add
|
17
|
+
* support for alternate construction methods, such as using
|
18
|
+
* argument-taking constructors or static factory methods.
|
19
|
+
*
|
20
|
+
* @since 1.9.0
|
21
|
+
*/
|
22
|
+
public class StdValueInstantiator
|
23
|
+
extends ValueInstantiator
|
24
|
+
{
|
25
|
+
/**
|
26
|
+
* Type of values that are instantiated; used
|
27
|
+
* for error reporting purposes.
|
28
|
+
*/
|
29
|
+
protected final String _valueTypeDesc;
|
30
|
+
|
31
|
+
/**
|
32
|
+
* Are we allowed to convert empty Strings to null objects?
|
33
|
+
*/
|
34
|
+
protected final boolean _cfgEmptyStringsAsObjects;
|
35
|
+
|
36
|
+
// // // Default (no-args) construction
|
37
|
+
|
38
|
+
/**
|
39
|
+
* Default (no-argument) constructor to use for instantiation
|
40
|
+
* (with {@link #createUsingDefault})
|
41
|
+
*/
|
42
|
+
protected AnnotatedWithParams _defaultCreator;
|
43
|
+
|
44
|
+
// // // With-args (property-based) construction
|
45
|
+
|
46
|
+
protected CreatorProperty[] _constructorArguments;
|
47
|
+
protected AnnotatedWithParams _withArgsCreator;
|
48
|
+
|
49
|
+
// // // Delegate construction
|
50
|
+
|
51
|
+
protected JavaType _delegateType;
|
52
|
+
protected AnnotatedWithParams _delegateCreator;
|
53
|
+
|
54
|
+
// // // Scalar construction
|
55
|
+
|
56
|
+
protected AnnotatedWithParams _fromStringCreator;
|
57
|
+
protected AnnotatedWithParams _fromIntCreator;
|
58
|
+
protected AnnotatedWithParams _fromLongCreator;
|
59
|
+
protected AnnotatedWithParams _fromDoubleCreator;
|
60
|
+
protected AnnotatedWithParams _fromBooleanCreator;
|
61
|
+
|
62
|
+
/*
|
63
|
+
/**********************************************************
|
64
|
+
/* Life-cycle
|
65
|
+
/**********************************************************
|
66
|
+
*/
|
67
|
+
|
68
|
+
public StdValueInstantiator(DeserializationConfig config, Class<?> valueType)
|
69
|
+
{
|
70
|
+
_cfgEmptyStringsAsObjects = (config == null) ? false
|
71
|
+
: config.isEnabled(DeserializationConfig.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
|
72
|
+
_valueTypeDesc = (valueType == null) ? "UNKNOWN TYPE" : valueType.getName();
|
73
|
+
}
|
74
|
+
|
75
|
+
public StdValueInstantiator(DeserializationConfig config, JavaType valueType)
|
76
|
+
{
|
77
|
+
_cfgEmptyStringsAsObjects = (config == null) ? false
|
78
|
+
: config.isEnabled(DeserializationConfig.Feature.ACCEPT_EMPTY_STRING_AS_NULL_OBJECT);
|
79
|
+
_valueTypeDesc = (valueType == null) ? "UNKNOWN TYPE" : valueType.toString();
|
80
|
+
}
|
81
|
+
|
82
|
+
/**
|
83
|
+
* Copy-constructor that sub-classes can use when creating new instances
|
84
|
+
* by fluent-style construction
|
85
|
+
*/
|
86
|
+
protected StdValueInstantiator(StdValueInstantiator src)
|
87
|
+
{
|
88
|
+
_cfgEmptyStringsAsObjects = src._cfgEmptyStringsAsObjects;
|
89
|
+
_valueTypeDesc = src._valueTypeDesc;
|
90
|
+
|
91
|
+
_defaultCreator = src._defaultCreator;
|
92
|
+
|
93
|
+
_constructorArguments = src._constructorArguments;
|
94
|
+
_withArgsCreator = src._withArgsCreator;
|
95
|
+
|
96
|
+
_delegateType = src._delegateType;
|
97
|
+
_delegateCreator = src._delegateCreator;
|
98
|
+
|
99
|
+
_fromStringCreator = src._fromStringCreator;
|
100
|
+
_fromIntCreator = src._fromIntCreator;
|
101
|
+
_fromLongCreator = src._fromLongCreator;
|
102
|
+
_fromDoubleCreator = src._fromDoubleCreator;
|
103
|
+
_fromBooleanCreator = src._fromBooleanCreator;
|
104
|
+
}
|
105
|
+
|
106
|
+
/**
|
107
|
+
* Method for setting properties related to instantiating values
|
108
|
+
* from JSON Object. We will choose basically only one approach (out of possible
|
109
|
+
* three), and clear other properties
|
110
|
+
*/
|
111
|
+
public void configureFromObjectSettings(AnnotatedWithParams defaultCreator,
|
112
|
+
AnnotatedWithParams delegateCreator, JavaType delegateType,
|
113
|
+
AnnotatedWithParams withArgsCreator, CreatorProperty[] constructorArgs)
|
114
|
+
{
|
115
|
+
_defaultCreator = defaultCreator;
|
116
|
+
_delegateCreator = delegateCreator;
|
117
|
+
_delegateType = delegateType;
|
118
|
+
_withArgsCreator = withArgsCreator;
|
119
|
+
_constructorArguments = constructorArgs;
|
120
|
+
}
|
121
|
+
|
122
|
+
public void configureFromStringCreator(AnnotatedWithParams creator) {
|
123
|
+
_fromStringCreator = creator;
|
124
|
+
}
|
125
|
+
|
126
|
+
public void configureFromIntCreator(AnnotatedWithParams creator) {
|
127
|
+
_fromIntCreator = creator;
|
128
|
+
}
|
129
|
+
|
130
|
+
public void configureFromLongCreator(AnnotatedWithParams creator) {
|
131
|
+
_fromLongCreator = creator;
|
132
|
+
}
|
133
|
+
|
134
|
+
public void configureFromDoubleCreator(AnnotatedWithParams creator) {
|
135
|
+
_fromDoubleCreator = creator;
|
136
|
+
}
|
137
|
+
|
138
|
+
public void configureFromBooleanCreator(AnnotatedWithParams creator) {
|
139
|
+
_fromBooleanCreator = creator;
|
140
|
+
}
|
141
|
+
|
142
|
+
/*
|
143
|
+
/**********************************************************
|
144
|
+
/* Public API implementation; metadata
|
145
|
+
/**********************************************************
|
146
|
+
*/
|
147
|
+
|
148
|
+
@Override
|
149
|
+
public String getValueTypeDesc() {
|
150
|
+
return _valueTypeDesc;
|
151
|
+
}
|
152
|
+
|
153
|
+
@Override
|
154
|
+
public boolean canCreateFromString() {
|
155
|
+
return (_fromStringCreator != null);
|
156
|
+
}
|
157
|
+
|
158
|
+
@Override
|
159
|
+
public boolean canCreateFromInt() {
|
160
|
+
return (_fromIntCreator != null);
|
161
|
+
}
|
162
|
+
|
163
|
+
@Override
|
164
|
+
public boolean canCreateFromLong() {
|
165
|
+
return (_fromLongCreator != null);
|
166
|
+
}
|
167
|
+
|
168
|
+
@Override
|
169
|
+
public boolean canCreateFromDouble() {
|
170
|
+
return (_fromDoubleCreator != null);
|
171
|
+
}
|
172
|
+
|
173
|
+
@Override
|
174
|
+
public boolean canCreateFromBoolean() {
|
175
|
+
return (_fromBooleanCreator != null);
|
176
|
+
}
|
177
|
+
|
178
|
+
@Override
|
179
|
+
public boolean canCreateUsingDefault() {
|
180
|
+
return (_defaultCreator != null);
|
181
|
+
}
|
182
|
+
|
183
|
+
@Override
|
184
|
+
public boolean canCreateFromObjectWith() {
|
185
|
+
return (_withArgsCreator != null);
|
186
|
+
}
|
187
|
+
|
188
|
+
@Override
|
189
|
+
public JavaType getDelegateType() {
|
190
|
+
return _delegateType;
|
191
|
+
}
|
192
|
+
|
193
|
+
@Override
|
194
|
+
public SettableBeanProperty[] getFromObjectArguments() {
|
195
|
+
return _constructorArguments;
|
196
|
+
}
|
197
|
+
|
198
|
+
/*
|
199
|
+
/**********************************************************
|
200
|
+
/* Public API implementation; instantiation from JSON Object
|
201
|
+
/**********************************************************
|
202
|
+
*/
|
203
|
+
|
204
|
+
@Override
|
205
|
+
public Object createUsingDefault()
|
206
|
+
throws IOException, JsonProcessingException
|
207
|
+
{
|
208
|
+
if (_defaultCreator == null) { // sanity-check; caller should check
|
209
|
+
throw new IllegalStateException("No default constructor for "+getValueTypeDesc());
|
210
|
+
}
|
211
|
+
try {
|
212
|
+
return _defaultCreator.call();
|
213
|
+
} catch (ExceptionInInitializerError e) {
|
214
|
+
throw wrapException(e);
|
215
|
+
} catch (Exception e) {
|
216
|
+
throw wrapException(e);
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
@Override
|
221
|
+
public Object createFromObjectWith(Object[] args)
|
222
|
+
throws IOException, JsonProcessingException
|
223
|
+
{
|
224
|
+
if (_withArgsCreator == null) { // sanity-check; caller should check
|
225
|
+
throw new IllegalStateException("No with-args constructor for "+getValueTypeDesc());
|
226
|
+
}
|
227
|
+
try {
|
228
|
+
return _withArgsCreator.call(args);
|
229
|
+
} catch (ExceptionInInitializerError e) {
|
230
|
+
throw wrapException(e);
|
231
|
+
} catch (Exception e) {
|
232
|
+
throw wrapException(e);
|
233
|
+
}
|
234
|
+
}
|
235
|
+
|
236
|
+
@Override
|
237
|
+
public Object createUsingDelegate(Object delegate)
|
238
|
+
throws IOException, JsonProcessingException
|
239
|
+
{
|
240
|
+
if (_delegateCreator == null) { // sanity-check; caller should check
|
241
|
+
throw new IllegalStateException("No delegate constructor for "+getValueTypeDesc());
|
242
|
+
}
|
243
|
+
try {
|
244
|
+
return _delegateCreator.call1(delegate);
|
245
|
+
} catch (ExceptionInInitializerError e) {
|
246
|
+
throw wrapException(e);
|
247
|
+
} catch (Exception e) {
|
248
|
+
throw wrapException(e);
|
249
|
+
}
|
250
|
+
}
|
251
|
+
|
252
|
+
/*
|
253
|
+
/**********************************************************
|
254
|
+
/* Public API implementation; instantiation from JSON scalars
|
255
|
+
/**********************************************************
|
256
|
+
*/
|
257
|
+
|
258
|
+
@Override
|
259
|
+
public Object createFromString(String value) throws IOException, JsonProcessingException
|
260
|
+
{
|
261
|
+
if (_fromStringCreator != null) {
|
262
|
+
try {
|
263
|
+
return _fromStringCreator.call1(value);
|
264
|
+
} catch (Exception e) {
|
265
|
+
throw wrapException(e);
|
266
|
+
}
|
267
|
+
}
|
268
|
+
return _createFromStringFallbacks(value);
|
269
|
+
}
|
270
|
+
|
271
|
+
@Override
|
272
|
+
public Object createFromInt(int value) throws IOException, JsonProcessingException
|
273
|
+
{
|
274
|
+
try {
|
275
|
+
// First: "native" int methods work best:
|
276
|
+
if (_fromIntCreator != null) {
|
277
|
+
return _fromIntCreator.call1(Integer.valueOf(value));
|
278
|
+
}
|
279
|
+
// but if not, can do widening conversion
|
280
|
+
if (_fromLongCreator != null) {
|
281
|
+
return _fromLongCreator.call1(Long.valueOf(value));
|
282
|
+
}
|
283
|
+
} catch (Exception e) {
|
284
|
+
throw wrapException(e);
|
285
|
+
}
|
286
|
+
throw new JsonMappingException("Can not instantiate value of type "+getValueTypeDesc()
|
287
|
+
+" from JSON integral number; no single-int-arg constructor/factory method");
|
288
|
+
}
|
289
|
+
|
290
|
+
@Override
|
291
|
+
public Object createFromLong(long value) throws IOException, JsonProcessingException
|
292
|
+
{
|
293
|
+
try {
|
294
|
+
if (_fromLongCreator != null) {
|
295
|
+
return _fromLongCreator.call1(Long.valueOf(value));
|
296
|
+
}
|
297
|
+
} catch (Exception e) {
|
298
|
+
throw wrapException(e);
|
299
|
+
}
|
300
|
+
throw new JsonMappingException("Can not instantiate value of type "+getValueTypeDesc()
|
301
|
+
+" from JSON long integral number; no single-long-arg constructor/factory method");
|
302
|
+
}
|
303
|
+
|
304
|
+
@Override
|
305
|
+
public Object createFromDouble(double value) throws IOException, JsonProcessingException
|
306
|
+
{
|
307
|
+
try {
|
308
|
+
if (_fromDoubleCreator != null) {
|
309
|
+
return _fromDoubleCreator.call1(Double.valueOf(value));
|
310
|
+
}
|
311
|
+
} catch (Exception e) {
|
312
|
+
throw wrapException(e);
|
313
|
+
}
|
314
|
+
throw new JsonMappingException("Can not instantiate value of type "+getValueTypeDesc()
|
315
|
+
+" from JSON floating-point number; no one-double/Double-arg constructor/factory method");
|
316
|
+
}
|
317
|
+
|
318
|
+
@Override
|
319
|
+
public Object createFromBoolean(boolean value) throws IOException, JsonProcessingException
|
320
|
+
{
|
321
|
+
try {
|
322
|
+
if (_fromBooleanCreator != null) {
|
323
|
+
return _fromBooleanCreator.call1(Boolean.valueOf(value));
|
324
|
+
}
|
325
|
+
} catch (Exception e) {
|
326
|
+
throw wrapException(e);
|
327
|
+
}
|
328
|
+
throw new JsonMappingException("Can not instantiate value of type "+getValueTypeDesc()
|
329
|
+
+" from JSON boolean value; no single-boolean/Boolean-arg constructor/factory method");
|
330
|
+
}
|
331
|
+
|
332
|
+
/*
|
333
|
+
/**********************************************************
|
334
|
+
/* Extended API: configuration mutators, accessors
|
335
|
+
/**********************************************************
|
336
|
+
*/
|
337
|
+
|
338
|
+
@Override
|
339
|
+
public AnnotatedWithParams getDelegateCreator() {
|
340
|
+
return _delegateCreator;
|
341
|
+
}
|
342
|
+
|
343
|
+
@Override
|
344
|
+
public AnnotatedWithParams getDefaultCreator() {
|
345
|
+
return _defaultCreator;
|
346
|
+
}
|
347
|
+
|
348
|
+
@Override
|
349
|
+
public AnnotatedWithParams getWithArgsCreator() {
|
350
|
+
return _withArgsCreator;
|
351
|
+
}
|
352
|
+
|
353
|
+
/*
|
354
|
+
/**********************************************************
|
355
|
+
/* Internal methods
|
356
|
+
/**********************************************************
|
357
|
+
*/
|
358
|
+
|
359
|
+
protected Object _createFromStringFallbacks(String value) throws IOException, JsonProcessingException
|
360
|
+
{
|
361
|
+
/* 28-Sep-2011, tatu: Ok this is not clean at all; but since there are legacy
|
362
|
+
* systems that expect conversions in some cases, let's just add a minimal
|
363
|
+
* patch (note: same could conceivably be used for numbers too).
|
364
|
+
*/
|
365
|
+
if (_fromBooleanCreator != null) {
|
366
|
+
String str = value.trim();
|
367
|
+
if ("true".equals(str)) {
|
368
|
+
return createFromBoolean(true);
|
369
|
+
}
|
370
|
+
if ("false".equals(str)) {
|
371
|
+
return createFromBoolean(false);
|
372
|
+
}
|
373
|
+
}
|
374
|
+
|
375
|
+
// and finally, empty Strings might be accepted as null Object...
|
376
|
+
if (_cfgEmptyStringsAsObjects && value.length() == 0) {
|
377
|
+
return null;
|
378
|
+
}
|
379
|
+
throw new JsonMappingException("Can not instantiate value of type "+getValueTypeDesc()
|
380
|
+
+" from JSON String; no single-String constructor/factory method");
|
381
|
+
}
|
382
|
+
|
383
|
+
protected JsonMappingException wrapException(Throwable t)
|
384
|
+
{
|
385
|
+
while (t.getCause() != null) {
|
386
|
+
t = t.getCause();
|
387
|
+
}
|
388
|
+
return new JsonMappingException("Instantiation of "+getValueTypeDesc()+" value failed: "+t.getMessage(), t);
|
389
|
+
}
|
390
|
+
}
|
391
|
+
|
392
|
+
|
@@ -0,0 +1,227 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.deser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.util.Collection;
|
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.*;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.annotate.JacksonStdImpl;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.deser.ValueInstantiator;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.introspect.AnnotatedWithParams;
|
13
|
+
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
14
|
+
|
15
|
+
/**
|
16
|
+
* @since 1.9 (moved from higher-level package)
|
17
|
+
*/
|
18
|
+
@JacksonStdImpl
|
19
|
+
public final class StringCollectionDeserializer
|
20
|
+
extends ContainerDeserializerBase<Collection<String>>
|
21
|
+
implements ResolvableDeserializer
|
22
|
+
{
|
23
|
+
// // Configuration
|
24
|
+
|
25
|
+
protected final JavaType _collectionType;
|
26
|
+
|
27
|
+
/**
|
28
|
+
* Value deserializer; needed even if it is the standard String
|
29
|
+
* deserializer
|
30
|
+
*/
|
31
|
+
protected final JsonDeserializer<String> _valueDeserializer;
|
32
|
+
|
33
|
+
/**
|
34
|
+
* Flag that indicates whether value deserializer is the standard
|
35
|
+
* Jackson-provided one; if it is, we can use more efficient
|
36
|
+
* handling.
|
37
|
+
*/
|
38
|
+
protected final boolean _isDefaultDeserializer;
|
39
|
+
|
40
|
+
// // Instance construction settings:
|
41
|
+
|
42
|
+
/**
|
43
|
+
* @since 1.9
|
44
|
+
*/
|
45
|
+
protected final ValueInstantiator _valueInstantiator;
|
46
|
+
|
47
|
+
/**
|
48
|
+
* Deserializer that is used iff delegate-based creator is
|
49
|
+
* to be used for deserializing from JSON Object.
|
50
|
+
*/
|
51
|
+
protected JsonDeserializer<Object> _delegateDeserializer;
|
52
|
+
|
53
|
+
// NOTE: no PropertyBasedCreator, as JSON Arrays have no properties
|
54
|
+
|
55
|
+
/*
|
56
|
+
/**********************************************************
|
57
|
+
/* Life-cycle
|
58
|
+
/**********************************************************
|
59
|
+
*/
|
60
|
+
|
61
|
+
@SuppressWarnings("unchecked")
|
62
|
+
public StringCollectionDeserializer(JavaType collectionType, JsonDeserializer<?> valueDeser,
|
63
|
+
ValueInstantiator valueInstantiator)
|
64
|
+
{
|
65
|
+
super(collectionType.getRawClass());
|
66
|
+
_collectionType = collectionType;
|
67
|
+
_valueDeserializer = (JsonDeserializer<String>) valueDeser;
|
68
|
+
_valueInstantiator = valueInstantiator;
|
69
|
+
_isDefaultDeserializer = isDefaultSerializer(valueDeser);
|
70
|
+
}
|
71
|
+
|
72
|
+
/**
|
73
|
+
* Copy-constructor that can be used by sub-classes to allow
|
74
|
+
* copy-on-write styling copying of settings of an existing instance.
|
75
|
+
*
|
76
|
+
* @since 1.9
|
77
|
+
*/
|
78
|
+
protected StringCollectionDeserializer(StringCollectionDeserializer src)
|
79
|
+
{
|
80
|
+
super(src._valueClass);
|
81
|
+
_collectionType = src._collectionType;
|
82
|
+
_valueDeserializer = src._valueDeserializer;
|
83
|
+
_valueInstantiator = src._valueInstantiator;
|
84
|
+
_isDefaultDeserializer = src._isDefaultDeserializer;
|
85
|
+
}
|
86
|
+
|
87
|
+
/*
|
88
|
+
/**********************************************************
|
89
|
+
/* Validation, post-processing (ResolvableDeserializer)
|
90
|
+
/**********************************************************
|
91
|
+
*/
|
92
|
+
|
93
|
+
/**
|
94
|
+
* Method called to finalize setup of this deserializer,
|
95
|
+
* after deserializer itself has been registered. This
|
96
|
+
* is needed to handle recursive and transitive dependencies.
|
97
|
+
*/
|
98
|
+
@Override
|
99
|
+
public void resolve(DeserializationConfig config, DeserializerProvider provider)
|
100
|
+
throws JsonMappingException
|
101
|
+
{
|
102
|
+
// May need to resolve types for delegate-based creators:
|
103
|
+
AnnotatedWithParams delegateCreator = _valueInstantiator.getDelegateCreator();
|
104
|
+
if (delegateCreator != null) {
|
105
|
+
JavaType delegateType = _valueInstantiator.getDelegateType();
|
106
|
+
// Need to create a temporary property to allow contextual deserializers:
|
107
|
+
BeanProperty.Std property = new BeanProperty.Std(null,
|
108
|
+
delegateType, null, delegateCreator);
|
109
|
+
_delegateDeserializer = findDeserializer(config, provider, delegateType, property);
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
/*
|
114
|
+
/**********************************************************
|
115
|
+
/* ContainerDeserializerBase API
|
116
|
+
/**********************************************************
|
117
|
+
*/
|
118
|
+
|
119
|
+
@Override
|
120
|
+
public JavaType getContentType() {
|
121
|
+
return _collectionType.getContentType();
|
122
|
+
}
|
123
|
+
|
124
|
+
@SuppressWarnings("unchecked")
|
125
|
+
@Override
|
126
|
+
public JsonDeserializer<Object> getContentDeserializer() {
|
127
|
+
JsonDeserializer<?> deser = _valueDeserializer;
|
128
|
+
return (JsonDeserializer<Object>) deser;
|
129
|
+
}
|
130
|
+
|
131
|
+
/*
|
132
|
+
/**********************************************************
|
133
|
+
/* JsonDeserializer API
|
134
|
+
/**********************************************************
|
135
|
+
*/
|
136
|
+
|
137
|
+
@SuppressWarnings("unchecked")
|
138
|
+
@Override
|
139
|
+
public Collection<String> deserialize(JsonParser jp, DeserializationContext ctxt)
|
140
|
+
throws IOException, JsonProcessingException
|
141
|
+
{
|
142
|
+
if (_delegateDeserializer != null) {
|
143
|
+
return (Collection<String>) _valueInstantiator.createUsingDelegate(_delegateDeserializer.deserialize(jp, ctxt));
|
144
|
+
}
|
145
|
+
final Collection<String> result = (Collection<String>) _valueInstantiator.createUsingDefault();
|
146
|
+
return deserialize(jp, ctxt, result);
|
147
|
+
}
|
148
|
+
|
149
|
+
@Override
|
150
|
+
public Collection<String> deserialize(JsonParser jp, DeserializationContext ctxt,
|
151
|
+
Collection<String> result)
|
152
|
+
throws IOException, JsonProcessingException
|
153
|
+
{
|
154
|
+
// Ok: must point to START_ARRAY
|
155
|
+
if (!jp.isExpectedStartArrayToken()) {
|
156
|
+
return handleNonArray(jp, ctxt, result);
|
157
|
+
}
|
158
|
+
|
159
|
+
if (!_isDefaultDeserializer) {
|
160
|
+
return deserializeUsingCustom(jp, ctxt, result);
|
161
|
+
}
|
162
|
+
JsonToken t;
|
163
|
+
|
164
|
+
while ((t = jp.nextToken()) != JsonToken.END_ARRAY) {
|
165
|
+
result.add((t == JsonToken.VALUE_NULL) ? null : jp.getText());
|
166
|
+
}
|
167
|
+
return result;
|
168
|
+
}
|
169
|
+
|
170
|
+
private Collection<String> deserializeUsingCustom(JsonParser jp, DeserializationContext ctxt,
|
171
|
+
Collection<String> result)
|
172
|
+
throws IOException, JsonProcessingException
|
173
|
+
{
|
174
|
+
JsonToken t;
|
175
|
+
final JsonDeserializer<String> deser = _valueDeserializer;
|
176
|
+
|
177
|
+
while ((t = jp.nextToken()) != JsonToken.END_ARRAY) {
|
178
|
+
String value;
|
179
|
+
|
180
|
+
if (t == JsonToken.VALUE_NULL) {
|
181
|
+
value = null;
|
182
|
+
} else {
|
183
|
+
value = deser.deserialize(jp, ctxt);
|
184
|
+
}
|
185
|
+
result.add(value);
|
186
|
+
}
|
187
|
+
return result;
|
188
|
+
}
|
189
|
+
|
190
|
+
@Override
|
191
|
+
public Object deserializeWithType(JsonParser jp, DeserializationContext ctxt,
|
192
|
+
TypeDeserializer typeDeserializer)
|
193
|
+
throws IOException, JsonProcessingException
|
194
|
+
{
|
195
|
+
// In future could check current token... for now this should be enough:
|
196
|
+
return typeDeserializer.deserializeTypedFromArray(jp, ctxt);
|
197
|
+
}
|
198
|
+
|
199
|
+
/**
|
200
|
+
* Helper method called when current token is no START_ARRAY. Will either
|
201
|
+
* throw an exception, or try to handle value as if member of implicit
|
202
|
+
* array, depending on configuration.
|
203
|
+
*/
|
204
|
+
private final Collection<String> handleNonArray(JsonParser jp, DeserializationContext ctxt,
|
205
|
+
Collection<String> result)
|
206
|
+
throws IOException, JsonProcessingException
|
207
|
+
{
|
208
|
+
// [JACKSON-526]: implicit arrays from single values?
|
209
|
+
if (!ctxt.isEnabled(DeserializationConfig.Feature.ACCEPT_SINGLE_VALUE_AS_ARRAY)) {
|
210
|
+
throw ctxt.mappingException(_collectionType.getRawClass());
|
211
|
+
}
|
212
|
+
// Strings are one of "native" (intrinsic) types, so there's never type deserializer involved
|
213
|
+
JsonDeserializer<String> valueDes = _valueDeserializer;
|
214
|
+
JsonToken t = jp.getCurrentToken();
|
215
|
+
|
216
|
+
String value;
|
217
|
+
|
218
|
+
if (t == JsonToken.VALUE_NULL) {
|
219
|
+
value = null;
|
220
|
+
} else {
|
221
|
+
value = (valueDes == null) ? jp.getText() : valueDes.deserialize(jp, ctxt);
|
222
|
+
}
|
223
|
+
result.add(value);
|
224
|
+
return result;
|
225
|
+
}
|
226
|
+
|
227
|
+
}
|