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,90 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.ser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.lang.reflect.Type;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonGenerationException;
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonGenerator;
|
8
|
+
import sh.calaba.org.codehaus.jackson.JsonNode;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.JsonMappingException;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.JsonSerializableWithType;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.ObjectMapper;
|
12
|
+
import sh.calaba.org.codehaus.jackson.map.SerializerProvider;
|
13
|
+
import sh.calaba.org.codehaus.jackson.map.TypeSerializer;
|
14
|
+
import sh.calaba.org.codehaus.jackson.map.annotate.JacksonStdImpl;
|
15
|
+
import sh.calaba.org.codehaus.jackson.map.type.TypeFactory;
|
16
|
+
import sh.calaba.org.codehaus.jackson.node.ObjectNode;
|
17
|
+
import sh.calaba.org.codehaus.jackson.schema.JsonSerializableSchema;
|
18
|
+
|
19
|
+
/**
|
20
|
+
* Generic handler for types that implement {@link JsonSerializableWithType}.
|
21
|
+
*<p>
|
22
|
+
* Note: given that this is used for anything that implements
|
23
|
+
* interface, can not be checked for direct class equivalence.
|
24
|
+
*/
|
25
|
+
@JacksonStdImpl
|
26
|
+
public class SerializableWithTypeSerializer
|
27
|
+
extends SerializerBase<JsonSerializableWithType>
|
28
|
+
{
|
29
|
+
public final static SerializableWithTypeSerializer instance = new SerializableWithTypeSerializer();
|
30
|
+
|
31
|
+
protected SerializableWithTypeSerializer() { super(JsonSerializableWithType.class); }
|
32
|
+
|
33
|
+
@SuppressWarnings("deprecation") // why is this needed?
|
34
|
+
@Override
|
35
|
+
public void serialize(JsonSerializableWithType value, JsonGenerator jgen, SerializerProvider provider)
|
36
|
+
throws IOException, JsonGenerationException
|
37
|
+
{
|
38
|
+
value.serialize(jgen, provider);
|
39
|
+
}
|
40
|
+
|
41
|
+
@Override
|
42
|
+
public final void serializeWithType(JsonSerializableWithType value, JsonGenerator jgen, SerializerProvider provider,
|
43
|
+
TypeSerializer typeSer)
|
44
|
+
throws IOException, JsonGenerationException
|
45
|
+
{
|
46
|
+
value.serializeWithType(jgen, provider, typeSer);
|
47
|
+
}
|
48
|
+
|
49
|
+
// copied verbatim from "JsonSerializableSerializer"
|
50
|
+
@Override
|
51
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
52
|
+
throws JsonMappingException
|
53
|
+
{
|
54
|
+
ObjectNode objectNode = createObjectNode();
|
55
|
+
String schemaType = "any";
|
56
|
+
String objectProperties = null;
|
57
|
+
String itemDefinition = null;
|
58
|
+
if (typeHint != null) {
|
59
|
+
Class<?> rawClass = TypeFactory.rawClass(typeHint);
|
60
|
+
if (rawClass.isAnnotationPresent(JsonSerializableSchema.class)) {
|
61
|
+
JsonSerializableSchema schemaInfo = rawClass.getAnnotation(JsonSerializableSchema.class);
|
62
|
+
schemaType = schemaInfo.schemaType();
|
63
|
+
if (!"##irrelevant".equals(schemaInfo.schemaObjectPropertiesDefinition())) {
|
64
|
+
objectProperties = schemaInfo.schemaObjectPropertiesDefinition();
|
65
|
+
}
|
66
|
+
if (!"##irrelevant".equals(schemaInfo.schemaItemDefinition())) {
|
67
|
+
itemDefinition = schemaInfo.schemaItemDefinition();
|
68
|
+
}
|
69
|
+
}
|
70
|
+
}
|
71
|
+
objectNode.put("type", schemaType);
|
72
|
+
if (objectProperties != null) {
|
73
|
+
try {
|
74
|
+
objectNode.put("properties", new ObjectMapper().readValue(objectProperties, JsonNode.class));
|
75
|
+
} catch (IOException e) {
|
76
|
+
throw new IllegalStateException(e);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
if (itemDefinition != null) {
|
80
|
+
try {
|
81
|
+
objectNode.put("items", new ObjectMapper().readValue(itemDefinition, JsonNode.class));
|
82
|
+
} catch (IOException e) {
|
83
|
+
throw new IllegalStateException(e);
|
84
|
+
}
|
85
|
+
}
|
86
|
+
// always optional, no need to specify:
|
87
|
+
//objectNode.put("required", false);
|
88
|
+
return objectNode;
|
89
|
+
}
|
90
|
+
}
|
@@ -0,0 +1,184 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.ser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.lang.reflect.InvocationTargetException;
|
5
|
+
import java.lang.reflect.Type;
|
6
|
+
|
7
|
+
import sh.calaba.org.codehaus.jackson.JsonGenerationException;
|
8
|
+
import sh.calaba.org.codehaus.jackson.JsonGenerator;
|
9
|
+
import sh.calaba.org.codehaus.jackson.JsonNode;
|
10
|
+
import sh.calaba.org.codehaus.jackson.map.*;
|
11
|
+
import sh.calaba.org.codehaus.jackson.map.annotate.JacksonStdImpl;
|
12
|
+
import sh.calaba.org.codehaus.jackson.node.JsonNodeFactory;
|
13
|
+
import sh.calaba.org.codehaus.jackson.node.ObjectNode;
|
14
|
+
import sh.calaba.org.codehaus.jackson.schema.SchemaAware;
|
15
|
+
import sh.calaba.org.codehaus.jackson.type.JavaType;
|
16
|
+
|
17
|
+
/**
|
18
|
+
* Base class used by all standard serializers. Provides some convenience
|
19
|
+
* methods for implementing {@link SchemaAware}
|
20
|
+
*
|
21
|
+
* @since 1.9 (renamed from 'sh.calaba.org.codehaus.jackson.map.ser.SerializerBase')
|
22
|
+
*/
|
23
|
+
public abstract class SerializerBase<T>
|
24
|
+
extends JsonSerializer<T>
|
25
|
+
implements SchemaAware
|
26
|
+
{
|
27
|
+
protected final Class<T> _handledType;
|
28
|
+
|
29
|
+
protected SerializerBase(Class<T> t) {
|
30
|
+
_handledType = t;
|
31
|
+
}
|
32
|
+
|
33
|
+
/**
|
34
|
+
* @since 1.7
|
35
|
+
*/
|
36
|
+
@SuppressWarnings("unchecked")
|
37
|
+
protected SerializerBase(JavaType type) {
|
38
|
+
_handledType = (Class<T>) type.getRawClass();
|
39
|
+
}
|
40
|
+
|
41
|
+
/**
|
42
|
+
* Alternate constructor that is (alas!) needed to work
|
43
|
+
* around kinks of generic type handling
|
44
|
+
*/
|
45
|
+
@SuppressWarnings("unchecked")
|
46
|
+
protected SerializerBase(Class<?> t, boolean dummy) {
|
47
|
+
_handledType = (Class<T>) t;
|
48
|
+
}
|
49
|
+
|
50
|
+
@Override
|
51
|
+
public final Class<T> handledType() { return _handledType; }
|
52
|
+
|
53
|
+
@Override
|
54
|
+
public abstract void serialize(T value, JsonGenerator jgen, SerializerProvider provider)
|
55
|
+
throws IOException, JsonGenerationException;
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Note: since Jackson 1.9, default implementation claims type is "string"
|
59
|
+
*/
|
60
|
+
@Override
|
61
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
62
|
+
throws JsonMappingException
|
63
|
+
{
|
64
|
+
return createSchemaNode("string");
|
65
|
+
}
|
66
|
+
|
67
|
+
protected ObjectNode createObjectNode() {
|
68
|
+
return JsonNodeFactory.instance.objectNode();
|
69
|
+
}
|
70
|
+
|
71
|
+
protected ObjectNode createSchemaNode(String type)
|
72
|
+
{
|
73
|
+
ObjectNode schema = createObjectNode();
|
74
|
+
schema.put("type", type);
|
75
|
+
return schema;
|
76
|
+
}
|
77
|
+
|
78
|
+
protected ObjectNode createSchemaNode(String type, boolean isOptional)
|
79
|
+
{
|
80
|
+
ObjectNode schema = createSchemaNode(type);
|
81
|
+
// as per [JACKSON-563]. Note that 'required' defaults to false
|
82
|
+
if (!isOptional) {
|
83
|
+
schema.put("required", !isOptional);
|
84
|
+
}
|
85
|
+
return schema;
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Method that can be called to determine if given serializer is the default
|
90
|
+
* serializer Jackson uses; as opposed to a custom serializer installed by
|
91
|
+
* a module or calling application. Determination is done using
|
92
|
+
* {@link JacksonStdImpl} annotation on serializer class.
|
93
|
+
*
|
94
|
+
* @since 1.7
|
95
|
+
*/
|
96
|
+
protected boolean isDefaultSerializer(JsonSerializer<?> serializer)
|
97
|
+
{
|
98
|
+
return (serializer != null && serializer.getClass().getAnnotation(JacksonStdImpl.class) != null);
|
99
|
+
}
|
100
|
+
|
101
|
+
/**
|
102
|
+
* Method that will modify caught exception (passed in as argument)
|
103
|
+
* as necessary to include reference information, and to ensure it
|
104
|
+
* is a subtype of {@link IOException}, or an unchecked exception.
|
105
|
+
*<p>
|
106
|
+
* Rules for wrapping and unwrapping are bit complicated; essentially:
|
107
|
+
*<ul>
|
108
|
+
* <li>Errors are to be passed as is (if uncovered via unwrapping)
|
109
|
+
* <li>"Plain" IOExceptions (ones that are not of type
|
110
|
+
* {@link JsonMappingException} are to be passed as is
|
111
|
+
*</ul>
|
112
|
+
*/
|
113
|
+
public void wrapAndThrow(SerializerProvider provider,
|
114
|
+
Throwable t, Object bean, String fieldName)
|
115
|
+
throws IOException
|
116
|
+
{
|
117
|
+
/* 05-Mar-2009, tatu: But one nasty edge is when we get
|
118
|
+
* StackOverflow: usually due to infinite loop. But that
|
119
|
+
* usually gets hidden within an InvocationTargetException...
|
120
|
+
*/
|
121
|
+
while (t instanceof InvocationTargetException && t.getCause() != null) {
|
122
|
+
t = t.getCause();
|
123
|
+
}
|
124
|
+
// Errors and "plain" IOExceptions to be passed as is
|
125
|
+
if (t instanceof Error) {
|
126
|
+
throw (Error) t;
|
127
|
+
}
|
128
|
+
// Ditto for IOExceptions... except for mapping exceptions!
|
129
|
+
boolean wrap = (provider == null) || provider.isEnabled(SerializationConfig.Feature.WRAP_EXCEPTIONS);
|
130
|
+
if (t instanceof IOException) {
|
131
|
+
if (!wrap || !(t instanceof JsonMappingException)) {
|
132
|
+
throw (IOException) t;
|
133
|
+
}
|
134
|
+
} else if (!wrap) { // [JACKSON-407] -- allow disabling wrapping for unchecked exceptions
|
135
|
+
if (t instanceof RuntimeException) {
|
136
|
+
throw (RuntimeException) t;
|
137
|
+
}
|
138
|
+
}
|
139
|
+
// [JACKSON-55] Need to add reference information
|
140
|
+
throw JsonMappingException.wrapWithPath(t, bean, fieldName);
|
141
|
+
}
|
142
|
+
|
143
|
+
public void wrapAndThrow(SerializerProvider provider,
|
144
|
+
Throwable t, Object bean, int index)
|
145
|
+
throws IOException
|
146
|
+
{
|
147
|
+
while (t instanceof InvocationTargetException && t.getCause() != null) {
|
148
|
+
t = t.getCause();
|
149
|
+
}
|
150
|
+
// Errors are to be passed as is
|
151
|
+
if (t instanceof Error) {
|
152
|
+
throw (Error) t;
|
153
|
+
}
|
154
|
+
// Ditto for IOExceptions... except for mapping exceptions!
|
155
|
+
boolean wrap = (provider == null) || provider.isEnabled(SerializationConfig.Feature.WRAP_EXCEPTIONS);
|
156
|
+
if (t instanceof IOException) {
|
157
|
+
if (!wrap || !(t instanceof JsonMappingException)) {
|
158
|
+
throw (IOException) t;
|
159
|
+
}
|
160
|
+
} else if (!wrap) { // [JACKSON-407] -- allow disabling wrapping for unchecked exceptions
|
161
|
+
if (t instanceof RuntimeException) {
|
162
|
+
throw (RuntimeException) t;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
// [JACKSON-55] Need to add reference information
|
166
|
+
throw JsonMappingException.wrapWithPath(t, bean, index);
|
167
|
+
}
|
168
|
+
|
169
|
+
/**
|
170
|
+
* @deprecated Use version that takes <code>SerializerProvider</code> instead.
|
171
|
+
*/
|
172
|
+
@Deprecated
|
173
|
+
public void wrapAndThrow(Throwable t, Object bean, String fieldName) throws IOException {
|
174
|
+
wrapAndThrow(null, t, bean, fieldName);
|
175
|
+
}
|
176
|
+
|
177
|
+
/**
|
178
|
+
* @deprecated Use version that takes <code>SerializerProvider</code> instead.
|
179
|
+
*/
|
180
|
+
@Deprecated
|
181
|
+
public void wrapAndThrow(Throwable t, Object bean, int index) throws IOException {
|
182
|
+
wrapAndThrow(null, t, bean, index);
|
183
|
+
}
|
184
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.ser.std;
|
2
|
+
|
3
|
+
import java.lang.reflect.Type;
|
4
|
+
import java.util.*;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonNode;
|
7
|
+
import sh.calaba.org.codehaus.jackson.map.BeanProperty;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.SerializerProvider;
|
9
|
+
import sh.calaba.org.codehaus.jackson.node.ObjectNode;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Intermediate base class for Lists, Collections and Arrays
|
13
|
+
* that contain static (non-dynamic) value types.
|
14
|
+
*
|
15
|
+
* @since 1.7
|
16
|
+
*/
|
17
|
+
public abstract class StaticListSerializerBase<T extends Collection<?>>
|
18
|
+
extends SerializerBase<T>
|
19
|
+
{
|
20
|
+
/**
|
21
|
+
* Property that contains String List to serialize, if known.
|
22
|
+
*/
|
23
|
+
protected final BeanProperty _property;
|
24
|
+
|
25
|
+
protected StaticListSerializerBase(Class<?> cls, BeanProperty property)
|
26
|
+
{
|
27
|
+
super(cls, false);
|
28
|
+
_property = property;
|
29
|
+
}
|
30
|
+
|
31
|
+
@Override
|
32
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
33
|
+
{
|
34
|
+
ObjectNode o = createSchemaNode("array", true);
|
35
|
+
o.put("items", contentSchema());
|
36
|
+
return o;
|
37
|
+
}
|
38
|
+
|
39
|
+
/*
|
40
|
+
/**********************************************************
|
41
|
+
/* Abstract methods for sub-classes to implement
|
42
|
+
/**********************************************************
|
43
|
+
*/
|
44
|
+
|
45
|
+
protected abstract JsonNode contentSchema();
|
46
|
+
}
|
@@ -0,0 +1,476 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.map.ser.std;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.lang.reflect.Type;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.*;
|
7
|
+
import sh.calaba.org.codehaus.jackson.map.*;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.annotate.JacksonStdImpl;
|
9
|
+
import sh.calaba.org.codehaus.jackson.node.ObjectNode;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Dummy container class to group standard homogenous array serializer implementations
|
13
|
+
* (primitive arrays and String array).
|
14
|
+
*/
|
15
|
+
public class StdArraySerializers
|
16
|
+
{
|
17
|
+
protected StdArraySerializers() { }
|
18
|
+
|
19
|
+
/*
|
20
|
+
/**********************************************************
|
21
|
+
/* Base classes
|
22
|
+
/**********************************************************
|
23
|
+
*/
|
24
|
+
|
25
|
+
/**
|
26
|
+
* Base class for serializers that will output contents as JSON
|
27
|
+
* arrays.
|
28
|
+
*/
|
29
|
+
public abstract static class ArraySerializerBase<T>
|
30
|
+
extends ContainerSerializerBase<T>
|
31
|
+
{
|
32
|
+
/**
|
33
|
+
* Type serializer used for values, if any.
|
34
|
+
*/
|
35
|
+
protected final TypeSerializer _valueTypeSerializer;
|
36
|
+
|
37
|
+
/**
|
38
|
+
* Array-valued property being serialized with this instance
|
39
|
+
*
|
40
|
+
* @since 1.7
|
41
|
+
*/
|
42
|
+
protected final BeanProperty _property;
|
43
|
+
|
44
|
+
protected ArraySerializerBase(Class<T> cls, TypeSerializer vts, BeanProperty property)
|
45
|
+
{
|
46
|
+
super(cls);
|
47
|
+
_valueTypeSerializer = vts;
|
48
|
+
_property = property;
|
49
|
+
}
|
50
|
+
|
51
|
+
@Override
|
52
|
+
public final void serialize(T value, JsonGenerator jgen, SerializerProvider provider)
|
53
|
+
throws IOException, JsonGenerationException
|
54
|
+
{
|
55
|
+
jgen.writeStartArray();
|
56
|
+
serializeContents(value, jgen, provider);
|
57
|
+
jgen.writeEndArray();
|
58
|
+
}
|
59
|
+
|
60
|
+
@Override
|
61
|
+
public final void serializeWithType(T value, JsonGenerator jgen, SerializerProvider provider,
|
62
|
+
TypeSerializer typeSer)
|
63
|
+
throws IOException, JsonGenerationException
|
64
|
+
{
|
65
|
+
typeSer.writeTypePrefixForArray(value, jgen);
|
66
|
+
serializeContents(value, jgen, provider);
|
67
|
+
typeSer.writeTypeSuffixForArray(value, jgen);
|
68
|
+
}
|
69
|
+
|
70
|
+
protected abstract void serializeContents(T value, JsonGenerator jgen, SerializerProvider provider)
|
71
|
+
throws IOException, JsonGenerationException;
|
72
|
+
}
|
73
|
+
|
74
|
+
/*
|
75
|
+
****************************************************************
|
76
|
+
/* Concrete serializers, arrays
|
77
|
+
****************************************************************
|
78
|
+
*/
|
79
|
+
|
80
|
+
/**
|
81
|
+
* Standard serializer used for <code>String[]</code> values.
|
82
|
+
*/
|
83
|
+
@JacksonStdImpl
|
84
|
+
public final static class StringArraySerializer
|
85
|
+
extends ArraySerializerBase<String[]>
|
86
|
+
implements ResolvableSerializer
|
87
|
+
{
|
88
|
+
/**
|
89
|
+
* Value serializer to use, if it's not the standard one
|
90
|
+
* (if it is we can optimize serialization a lot)
|
91
|
+
*
|
92
|
+
* @since 1.7
|
93
|
+
*/
|
94
|
+
protected JsonSerializer<Object> _elementSerializer;
|
95
|
+
|
96
|
+
public StringArraySerializer(BeanProperty prop) {
|
97
|
+
super(String[].class, null, prop);
|
98
|
+
}
|
99
|
+
|
100
|
+
/**
|
101
|
+
* Strings never add type info; hence, even if type serializer is suggested,
|
102
|
+
* we'll ignore it...
|
103
|
+
*/
|
104
|
+
@Override
|
105
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts) {
|
106
|
+
return this;
|
107
|
+
}
|
108
|
+
|
109
|
+
@Override
|
110
|
+
public void serializeContents(String[] value, JsonGenerator jgen, SerializerProvider provider)
|
111
|
+
throws IOException, JsonGenerationException
|
112
|
+
{
|
113
|
+
final int len = value.length;
|
114
|
+
if (len == 0) {
|
115
|
+
return;
|
116
|
+
}
|
117
|
+
if (_elementSerializer != null) {
|
118
|
+
serializeContentsSlow(value, jgen, provider, _elementSerializer);
|
119
|
+
return;
|
120
|
+
}
|
121
|
+
/* 08-Dec-2008, tatus: If we want this to be fully overridable
|
122
|
+
* (for example, to support String cleanup during writing
|
123
|
+
* or something), we should find serializer by provider.
|
124
|
+
* But for now, that seems like an overkill: and caller can
|
125
|
+
* add custom serializer if that is needed as well.
|
126
|
+
* (ditto for null values)
|
127
|
+
*/
|
128
|
+
//JsonSerializer<String> ser = (JsonSerializer<String>)provider.findValueSerializer(String.class);
|
129
|
+
for (int i = 0; i < len; ++i) {
|
130
|
+
String str = value[i];
|
131
|
+
if (str == null) {
|
132
|
+
jgen.writeNull();
|
133
|
+
} else {
|
134
|
+
//ser.serialize(value[i], jgen, provider);
|
135
|
+
jgen.writeString(value[i]);
|
136
|
+
}
|
137
|
+
}
|
138
|
+
}
|
139
|
+
|
140
|
+
private void serializeContentsSlow(String[] value, JsonGenerator jgen, SerializerProvider provider,
|
141
|
+
JsonSerializer<Object> ser)
|
142
|
+
throws IOException, JsonGenerationException
|
143
|
+
{
|
144
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
145
|
+
String str = value[i];
|
146
|
+
if (str == null) {
|
147
|
+
provider.defaultSerializeNull(jgen);
|
148
|
+
} else {
|
149
|
+
ser.serialize(value[i], jgen, provider);
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
|
154
|
+
/**
|
155
|
+
* Need to get callback to resolve value serializer, which may
|
156
|
+
* be overridden by custom serializer
|
157
|
+
*/
|
158
|
+
@Override
|
159
|
+
public void resolve(SerializerProvider provider)
|
160
|
+
throws JsonMappingException
|
161
|
+
{
|
162
|
+
JsonSerializer<Object> ser = provider.findValueSerializer(String.class, _property);
|
163
|
+
// Retain if not the standard implementation
|
164
|
+
if (ser != null && ser.getClass().getAnnotation(JacksonStdImpl.class) == null) {
|
165
|
+
_elementSerializer = ser;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
@Override
|
170
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
171
|
+
{
|
172
|
+
ObjectNode o = createSchemaNode("array", true);
|
173
|
+
o.put("items", createSchemaNode("string"));
|
174
|
+
return o;
|
175
|
+
}
|
176
|
+
}
|
177
|
+
|
178
|
+
@JacksonStdImpl
|
179
|
+
public final static class BooleanArraySerializer
|
180
|
+
extends ArraySerializerBase<boolean[]>
|
181
|
+
{
|
182
|
+
public BooleanArraySerializer() { super(boolean[].class, null, null); }
|
183
|
+
|
184
|
+
/**
|
185
|
+
* Booleans never add type info; hence, even if type serializer is suggested,
|
186
|
+
* we'll ignore it...
|
187
|
+
*/
|
188
|
+
@Override
|
189
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
|
190
|
+
{
|
191
|
+
return this;
|
192
|
+
}
|
193
|
+
|
194
|
+
@Override
|
195
|
+
public void serializeContents(boolean[] value, JsonGenerator jgen, SerializerProvider provider)
|
196
|
+
throws IOException, JsonGenerationException
|
197
|
+
{
|
198
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
199
|
+
jgen.writeBoolean(value[i]);
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
@Override
|
204
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
205
|
+
{
|
206
|
+
ObjectNode o = createSchemaNode("array", true);
|
207
|
+
o.put("items", createSchemaNode("boolean"));
|
208
|
+
return o;
|
209
|
+
}
|
210
|
+
}
|
211
|
+
|
212
|
+
/**
|
213
|
+
* Unlike other integral number array serializers, we do not just print out byte values
|
214
|
+
* as numbers. Instead, we assume that it would make more sense to output content
|
215
|
+
* as base64 encoded bytes (using default base64 encoding).
|
216
|
+
*<p>
|
217
|
+
* NOTE: since it is NOT serialized as an array, can not use AsArraySerializer as base
|
218
|
+
*/
|
219
|
+
@JacksonStdImpl
|
220
|
+
public final static class ByteArraySerializer
|
221
|
+
extends SerializerBase<byte[]>
|
222
|
+
{
|
223
|
+
public ByteArraySerializer() {
|
224
|
+
super(byte[].class);
|
225
|
+
}
|
226
|
+
|
227
|
+
@Override
|
228
|
+
public void serialize(byte[] value, JsonGenerator jgen, SerializerProvider provider)
|
229
|
+
throws IOException, JsonGenerationException
|
230
|
+
{
|
231
|
+
jgen.writeBinary(value);
|
232
|
+
}
|
233
|
+
|
234
|
+
@Override
|
235
|
+
public void serializeWithType(byte[] value, JsonGenerator jgen, SerializerProvider provider,
|
236
|
+
TypeSerializer typeSer)
|
237
|
+
throws IOException, JsonGenerationException
|
238
|
+
{
|
239
|
+
typeSer.writeTypePrefixForScalar(value, jgen);
|
240
|
+
jgen.writeBinary(value);
|
241
|
+
typeSer.writeTypeSuffixForScalar(value, jgen);
|
242
|
+
}
|
243
|
+
|
244
|
+
@Override
|
245
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
246
|
+
{
|
247
|
+
ObjectNode o = createSchemaNode("array", true);
|
248
|
+
ObjectNode itemSchema = createSchemaNode("string"); //binary values written as strings?
|
249
|
+
o.put("items", itemSchema);
|
250
|
+
return o;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
@JacksonStdImpl
|
255
|
+
public final static class ShortArraySerializer
|
256
|
+
extends ArraySerializerBase<short[]>
|
257
|
+
{
|
258
|
+
public ShortArraySerializer() { this(null); }
|
259
|
+
public ShortArraySerializer(TypeSerializer vts) { super(short[].class, vts, null); }
|
260
|
+
|
261
|
+
@Override
|
262
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts) {
|
263
|
+
return new ShortArraySerializer(vts);
|
264
|
+
}
|
265
|
+
|
266
|
+
@SuppressWarnings("cast")
|
267
|
+
@Override
|
268
|
+
public void serializeContents(short[] value, JsonGenerator jgen, SerializerProvider provider)
|
269
|
+
throws IOException, JsonGenerationException
|
270
|
+
{
|
271
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
272
|
+
jgen.writeNumber((int)value[i]);
|
273
|
+
}
|
274
|
+
}
|
275
|
+
|
276
|
+
@Override
|
277
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
278
|
+
{
|
279
|
+
//no "short" type defined by json
|
280
|
+
ObjectNode o = createSchemaNode("array", true);
|
281
|
+
o.put("items", createSchemaNode("integer"));
|
282
|
+
return o;
|
283
|
+
}
|
284
|
+
}
|
285
|
+
|
286
|
+
/**
|
287
|
+
* Character arrays are different from other integral number arrays in that
|
288
|
+
* they are most likely to be textual data, and should be written as
|
289
|
+
* Strings, not arrays of entries.
|
290
|
+
*<p>
|
291
|
+
* NOTE: since it is NOT serialized as an array, can not use AsArraySerializer as base
|
292
|
+
*/
|
293
|
+
@JacksonStdImpl
|
294
|
+
public final static class CharArraySerializer
|
295
|
+
extends SerializerBase<char[]>
|
296
|
+
{
|
297
|
+
public CharArraySerializer() { super(char[].class); }
|
298
|
+
|
299
|
+
@Override
|
300
|
+
public void serialize(char[] value, JsonGenerator jgen, SerializerProvider provider)
|
301
|
+
throws IOException, JsonGenerationException
|
302
|
+
{
|
303
|
+
// [JACKSON-289] allows serializing as 'sparse' char array too:
|
304
|
+
if (provider.isEnabled(SerializationConfig.Feature.WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS)) {
|
305
|
+
jgen.writeStartArray();
|
306
|
+
_writeArrayContents(jgen, value);
|
307
|
+
jgen.writeEndArray();
|
308
|
+
} else {
|
309
|
+
jgen.writeString(value, 0, value.length);
|
310
|
+
}
|
311
|
+
}
|
312
|
+
|
313
|
+
@Override
|
314
|
+
public void serializeWithType(char[] value, JsonGenerator jgen, SerializerProvider provider,
|
315
|
+
TypeSerializer typeSer)
|
316
|
+
throws IOException, JsonGenerationException
|
317
|
+
{
|
318
|
+
// [JACKSON-289] allows serializing as 'sparse' char array too:
|
319
|
+
if (provider.isEnabled(SerializationConfig.Feature.WRITE_CHAR_ARRAYS_AS_JSON_ARRAYS)) {
|
320
|
+
typeSer.writeTypePrefixForArray(value, jgen);
|
321
|
+
_writeArrayContents(jgen, value);
|
322
|
+
typeSer.writeTypeSuffixForArray(value, jgen);
|
323
|
+
} else { // default is to write as simple String
|
324
|
+
typeSer.writeTypePrefixForScalar(value, jgen);
|
325
|
+
jgen.writeString(value, 0, value.length);
|
326
|
+
typeSer.writeTypeSuffixForScalar(value, jgen);
|
327
|
+
}
|
328
|
+
}
|
329
|
+
|
330
|
+
private final void _writeArrayContents(JsonGenerator jgen, char[] value)
|
331
|
+
throws IOException, JsonGenerationException
|
332
|
+
{
|
333
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
334
|
+
jgen.writeString(value, i, 1);
|
335
|
+
}
|
336
|
+
}
|
337
|
+
|
338
|
+
@Override
|
339
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
340
|
+
{
|
341
|
+
ObjectNode o = createSchemaNode("array", true);
|
342
|
+
ObjectNode itemSchema = createSchemaNode("string");
|
343
|
+
itemSchema.put("type", "string");
|
344
|
+
o.put("items", itemSchema);
|
345
|
+
return o;
|
346
|
+
}
|
347
|
+
}
|
348
|
+
|
349
|
+
@JacksonStdImpl
|
350
|
+
public final static class IntArraySerializer
|
351
|
+
extends ArraySerializerBase<int[]>
|
352
|
+
{
|
353
|
+
public IntArraySerializer() { super(int[].class, null, null); }
|
354
|
+
|
355
|
+
/**
|
356
|
+
* Ints never add type info; hence, even if type serializer is suggested,
|
357
|
+
* we'll ignore it...
|
358
|
+
*/
|
359
|
+
@Override
|
360
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
|
361
|
+
{
|
362
|
+
return this;
|
363
|
+
}
|
364
|
+
|
365
|
+
@Override
|
366
|
+
public void serializeContents(int[] value, JsonGenerator jgen, SerializerProvider provider)
|
367
|
+
throws IOException, JsonGenerationException
|
368
|
+
{
|
369
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
370
|
+
jgen.writeNumber(value[i]);
|
371
|
+
}
|
372
|
+
}
|
373
|
+
|
374
|
+
@Override
|
375
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
376
|
+
{
|
377
|
+
ObjectNode o = createSchemaNode("array", true);
|
378
|
+
o.put("items", createSchemaNode("integer"));
|
379
|
+
return o;
|
380
|
+
}
|
381
|
+
}
|
382
|
+
|
383
|
+
@JacksonStdImpl
|
384
|
+
public final static class LongArraySerializer
|
385
|
+
extends ArraySerializerBase<long[]>
|
386
|
+
{
|
387
|
+
public LongArraySerializer() { this(null); }
|
388
|
+
public LongArraySerializer(TypeSerializer vts) { super(long[].class, vts, null); }
|
389
|
+
|
390
|
+
@Override
|
391
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts) {
|
392
|
+
return new LongArraySerializer(vts);
|
393
|
+
}
|
394
|
+
|
395
|
+
@Override
|
396
|
+
public void serializeContents(long[] value, JsonGenerator jgen, SerializerProvider provider)
|
397
|
+
throws IOException, JsonGenerationException
|
398
|
+
{
|
399
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
400
|
+
jgen.writeNumber(value[i]);
|
401
|
+
}
|
402
|
+
}
|
403
|
+
|
404
|
+
@Override
|
405
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
406
|
+
{
|
407
|
+
ObjectNode o = createSchemaNode("array", true);
|
408
|
+
o.put("items", createSchemaNode("number", true));
|
409
|
+
return o;
|
410
|
+
}
|
411
|
+
}
|
412
|
+
|
413
|
+
@JacksonStdImpl
|
414
|
+
public final static class FloatArraySerializer
|
415
|
+
extends ArraySerializerBase<float[]>
|
416
|
+
{
|
417
|
+
public FloatArraySerializer() { this(null); }
|
418
|
+
public FloatArraySerializer(TypeSerializer vts) { super(float[].class, vts, null); }
|
419
|
+
|
420
|
+
@Override
|
421
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts) {
|
422
|
+
return new FloatArraySerializer(vts);
|
423
|
+
}
|
424
|
+
|
425
|
+
@Override
|
426
|
+
public void serializeContents(float[] value, JsonGenerator jgen, SerializerProvider provider)
|
427
|
+
throws IOException, JsonGenerationException
|
428
|
+
{
|
429
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
430
|
+
jgen.writeNumber(value[i]);
|
431
|
+
}
|
432
|
+
}
|
433
|
+
|
434
|
+
@Override
|
435
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
436
|
+
{
|
437
|
+
ObjectNode o = createSchemaNode("array", true);
|
438
|
+
o.put("items", createSchemaNode("number"));
|
439
|
+
return o;
|
440
|
+
}
|
441
|
+
}
|
442
|
+
|
443
|
+
@JacksonStdImpl
|
444
|
+
public final static class DoubleArraySerializer
|
445
|
+
extends ArraySerializerBase<double[]>
|
446
|
+
{
|
447
|
+
public DoubleArraySerializer() { super(double[].class, null, null); }
|
448
|
+
|
449
|
+
/**
|
450
|
+
* Doubles never add type info; hence, even if type serializer is suggested,
|
451
|
+
* we'll ignore it...
|
452
|
+
*/
|
453
|
+
@Override
|
454
|
+
public ContainerSerializerBase<?> _withValueTypeSerializer(TypeSerializer vts)
|
455
|
+
{
|
456
|
+
return this;
|
457
|
+
}
|
458
|
+
|
459
|
+
@Override
|
460
|
+
public void serializeContents(double[] value, JsonGenerator jgen, SerializerProvider provider)
|
461
|
+
throws IOException, JsonGenerationException
|
462
|
+
{
|
463
|
+
for (int i = 0, len = value.length; i < len; ++i) {
|
464
|
+
jgen.writeNumber(value[i]);
|
465
|
+
}
|
466
|
+
}
|
467
|
+
|
468
|
+
@Override
|
469
|
+
public JsonNode getSchema(SerializerProvider provider, Type typeHint)
|
470
|
+
{
|
471
|
+
ObjectNode o = createSchemaNode("array", true);
|
472
|
+
o.put("items", createSchemaNode("number"));
|
473
|
+
return o;
|
474
|
+
}
|
475
|
+
}
|
476
|
+
}
|