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
data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/NumericNode.java
ADDED
@@ -0,0 +1,72 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.node;
|
2
|
+
|
3
|
+
import java.math.BigDecimal;
|
4
|
+
import java.math.BigInteger;
|
5
|
+
|
6
|
+
import sh.calaba.org.codehaus.jackson.JsonParser;
|
7
|
+
|
8
|
+
/**
|
9
|
+
* Intermediate value node used for numeric nodes.
|
10
|
+
*/
|
11
|
+
public abstract class NumericNode
|
12
|
+
extends ValueNode
|
13
|
+
{
|
14
|
+
protected NumericNode() { }
|
15
|
+
|
16
|
+
@Override
|
17
|
+
public final boolean isNumber() { return true; }
|
18
|
+
|
19
|
+
// // // Let's re-abstract so sub-classes handle them
|
20
|
+
|
21
|
+
@Override
|
22
|
+
public abstract JsonParser.NumberType getNumberType();
|
23
|
+
|
24
|
+
@Override
|
25
|
+
public abstract Number getNumberValue();
|
26
|
+
@Override
|
27
|
+
public abstract int getIntValue();
|
28
|
+
@Override
|
29
|
+
public abstract long getLongValue();
|
30
|
+
@Override
|
31
|
+
public abstract double getDoubleValue();
|
32
|
+
@Override
|
33
|
+
public abstract BigDecimal getDecimalValue();
|
34
|
+
@Override
|
35
|
+
public abstract BigInteger getBigIntegerValue();
|
36
|
+
|
37
|
+
/*
|
38
|
+
/**********************************************************
|
39
|
+
/* General type coercions
|
40
|
+
/**********************************************************
|
41
|
+
*/
|
42
|
+
|
43
|
+
@Override
|
44
|
+
public abstract String asText();
|
45
|
+
|
46
|
+
@Override
|
47
|
+
public int asInt() {
|
48
|
+
return getIntValue();
|
49
|
+
}
|
50
|
+
@Override
|
51
|
+
public int asInt(int defaultValue) {
|
52
|
+
return getIntValue();
|
53
|
+
}
|
54
|
+
|
55
|
+
@Override
|
56
|
+
public long asLong() {
|
57
|
+
return getLongValue();
|
58
|
+
}
|
59
|
+
@Override
|
60
|
+
public long asLong(long defaultValue) {
|
61
|
+
return getLongValue();
|
62
|
+
}
|
63
|
+
|
64
|
+
@Override
|
65
|
+
public double asDouble() {
|
66
|
+
return getDoubleValue();
|
67
|
+
}
|
68
|
+
@Override
|
69
|
+
public double asDouble(double defaultValue) {
|
70
|
+
return getDoubleValue();
|
71
|
+
}
|
72
|
+
}
|
data/test-server/instrumentation-backend/src/sh/calaba/org/codehaus/jackson/node/ObjectNode.java
ADDED
@@ -0,0 +1,696 @@
|
|
1
|
+
package sh.calaba.org.codehaus.jackson.node;
|
2
|
+
|
3
|
+
import java.io.IOException;
|
4
|
+
import java.math.BigDecimal;
|
5
|
+
import java.util.*;
|
6
|
+
|
7
|
+
import sh.calaba.org.codehaus.jackson.*;
|
8
|
+
import sh.calaba.org.codehaus.jackson.map.SerializerProvider;
|
9
|
+
import sh.calaba.org.codehaus.jackson.map.TypeSerializer;
|
10
|
+
|
11
|
+
/**
|
12
|
+
* Node that maps to JSON Object structures in JSON content.
|
13
|
+
*/
|
14
|
+
public class ObjectNode
|
15
|
+
extends ContainerNode
|
16
|
+
{
|
17
|
+
protected LinkedHashMap<String, JsonNode> _children = null;
|
18
|
+
|
19
|
+
public ObjectNode(JsonNodeFactory nc) { super(nc); }
|
20
|
+
|
21
|
+
/*
|
22
|
+
/**********************************************************
|
23
|
+
/* Implementation of core JsonNode API
|
24
|
+
/**********************************************************
|
25
|
+
*/
|
26
|
+
|
27
|
+
@Override public JsonToken asToken() { return JsonToken.START_OBJECT; }
|
28
|
+
|
29
|
+
@Override
|
30
|
+
public boolean isObject() { return true; }
|
31
|
+
|
32
|
+
@Override
|
33
|
+
public int size() {
|
34
|
+
return (_children == null) ? 0 : _children.size();
|
35
|
+
}
|
36
|
+
|
37
|
+
@Override
|
38
|
+
public Iterator<JsonNode> getElements()
|
39
|
+
{
|
40
|
+
return (_children == null) ? NoNodesIterator.instance() : _children.values().iterator();
|
41
|
+
}
|
42
|
+
|
43
|
+
@Override
|
44
|
+
public JsonNode get(int index) { return null; }
|
45
|
+
|
46
|
+
@Override
|
47
|
+
public JsonNode get(String fieldName)
|
48
|
+
{
|
49
|
+
if (_children != null) {
|
50
|
+
return _children.get(fieldName);
|
51
|
+
}
|
52
|
+
return null;
|
53
|
+
}
|
54
|
+
|
55
|
+
@Override
|
56
|
+
public Iterator<String> getFieldNames()
|
57
|
+
{
|
58
|
+
return (_children == null) ? NoStringsIterator.instance() : _children.keySet().iterator();
|
59
|
+
}
|
60
|
+
|
61
|
+
@Override
|
62
|
+
public JsonNode path(int index)
|
63
|
+
{
|
64
|
+
return MissingNode.getInstance();
|
65
|
+
}
|
66
|
+
|
67
|
+
@Override
|
68
|
+
public JsonNode path(String fieldName)
|
69
|
+
{
|
70
|
+
if (_children != null) {
|
71
|
+
JsonNode n = _children.get(fieldName);
|
72
|
+
if (n != null) {
|
73
|
+
return n;
|
74
|
+
}
|
75
|
+
}
|
76
|
+
return MissingNode.getInstance();
|
77
|
+
}
|
78
|
+
|
79
|
+
/**
|
80
|
+
* Method to use for accessing all fields (with both names
|
81
|
+
* and values) of this JSON Object.
|
82
|
+
*/
|
83
|
+
@Override
|
84
|
+
public Iterator<Map.Entry<String, JsonNode>> getFields()
|
85
|
+
{
|
86
|
+
if (_children == null) {
|
87
|
+
return NoFieldsIterator.instance;
|
88
|
+
}
|
89
|
+
return _children.entrySet().iterator();
|
90
|
+
}
|
91
|
+
|
92
|
+
@Override
|
93
|
+
public ObjectNode with(String propertyName)
|
94
|
+
{
|
95
|
+
if (_children == null) {
|
96
|
+
_children = new LinkedHashMap<String, JsonNode>();
|
97
|
+
} else {
|
98
|
+
JsonNode n = _children.get(propertyName);
|
99
|
+
if (n != null) {
|
100
|
+
if (n instanceof ObjectNode) {
|
101
|
+
return (ObjectNode) n;
|
102
|
+
}
|
103
|
+
throw new UnsupportedOperationException("Property '"+propertyName
|
104
|
+
+"' has value that is not of type ObjectNode (but "
|
105
|
+
+n.getClass().getName()+")");
|
106
|
+
}
|
107
|
+
}
|
108
|
+
ObjectNode result = objectNode();
|
109
|
+
_children.put(propertyName, result);
|
110
|
+
return result;
|
111
|
+
}
|
112
|
+
|
113
|
+
/*
|
114
|
+
/**********************************************************
|
115
|
+
/* Public API, finding value nodes
|
116
|
+
/**********************************************************
|
117
|
+
*/
|
118
|
+
|
119
|
+
@Override
|
120
|
+
public JsonNode findValue(String fieldName)
|
121
|
+
{
|
122
|
+
if (_children != null) {
|
123
|
+
for (Map.Entry<String, JsonNode> entry : _children.entrySet()) {
|
124
|
+
if (fieldName.equals(entry.getKey())) {
|
125
|
+
return entry.getValue();
|
126
|
+
}
|
127
|
+
JsonNode value = entry.getValue().findValue(fieldName);
|
128
|
+
if (value != null) {
|
129
|
+
return value;
|
130
|
+
}
|
131
|
+
}
|
132
|
+
}
|
133
|
+
return null;
|
134
|
+
}
|
135
|
+
|
136
|
+
@Override
|
137
|
+
public List<JsonNode> findValues(String fieldName, List<JsonNode> foundSoFar)
|
138
|
+
{
|
139
|
+
if (_children != null) {
|
140
|
+
for (Map.Entry<String, JsonNode> entry : _children.entrySet()) {
|
141
|
+
if (fieldName.equals(entry.getKey())) {
|
142
|
+
if (foundSoFar == null) {
|
143
|
+
foundSoFar = new ArrayList<JsonNode>();
|
144
|
+
}
|
145
|
+
foundSoFar.add(entry.getValue());
|
146
|
+
} else { // only add children if parent not added
|
147
|
+
foundSoFar = entry.getValue().findValues(fieldName, foundSoFar);
|
148
|
+
}
|
149
|
+
}
|
150
|
+
}
|
151
|
+
return foundSoFar;
|
152
|
+
}
|
153
|
+
|
154
|
+
@Override
|
155
|
+
public List<String> findValuesAsText(String fieldName, List<String> foundSoFar)
|
156
|
+
{
|
157
|
+
if (_children != null) {
|
158
|
+
for (Map.Entry<String, JsonNode> entry : _children.entrySet()) {
|
159
|
+
if (fieldName.equals(entry.getKey())) {
|
160
|
+
if (foundSoFar == null) {
|
161
|
+
foundSoFar = new ArrayList<String>();
|
162
|
+
}
|
163
|
+
foundSoFar.add(entry.getValue().asText());
|
164
|
+
} else { // only add children if parent not added
|
165
|
+
foundSoFar = entry.getValue().findValuesAsText(fieldName, foundSoFar);
|
166
|
+
}
|
167
|
+
}
|
168
|
+
}
|
169
|
+
return foundSoFar;
|
170
|
+
}
|
171
|
+
|
172
|
+
@Override
|
173
|
+
public ObjectNode findParent(String fieldName)
|
174
|
+
{
|
175
|
+
if (_children != null) {
|
176
|
+
for (Map.Entry<String, JsonNode> entry : _children.entrySet()) {
|
177
|
+
if (fieldName.equals(entry.getKey())) {
|
178
|
+
return this;
|
179
|
+
}
|
180
|
+
JsonNode value = entry.getValue().findParent(fieldName);
|
181
|
+
if (value != null) {
|
182
|
+
return (ObjectNode) value;
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
return null;
|
187
|
+
}
|
188
|
+
|
189
|
+
@Override
|
190
|
+
public List<JsonNode> findParents(String fieldName, List<JsonNode> foundSoFar)
|
191
|
+
{
|
192
|
+
if (_children != null) {
|
193
|
+
for (Map.Entry<String, JsonNode> entry : _children.entrySet()) {
|
194
|
+
if (fieldName.equals(entry.getKey())) {
|
195
|
+
if (foundSoFar == null) {
|
196
|
+
foundSoFar = new ArrayList<JsonNode>();
|
197
|
+
}
|
198
|
+
foundSoFar.add(this);
|
199
|
+
} else { // only add children if parent not added
|
200
|
+
foundSoFar = entry.getValue().findParents(fieldName, foundSoFar);
|
201
|
+
}
|
202
|
+
}
|
203
|
+
}
|
204
|
+
return foundSoFar;
|
205
|
+
}
|
206
|
+
|
207
|
+
/*
|
208
|
+
/**********************************************************
|
209
|
+
/* Public API, serialization
|
210
|
+
/**********************************************************
|
211
|
+
*/
|
212
|
+
|
213
|
+
/**
|
214
|
+
* Method that can be called to serialize this node and
|
215
|
+
* all of its descendants using specified JSON generator.
|
216
|
+
*/
|
217
|
+
@Override
|
218
|
+
public final void serialize(JsonGenerator jg, SerializerProvider provider)
|
219
|
+
throws IOException, JsonProcessingException
|
220
|
+
{
|
221
|
+
jg.writeStartObject();
|
222
|
+
if (_children != null) {
|
223
|
+
for (Map.Entry<String, JsonNode> en : _children.entrySet()) {
|
224
|
+
jg.writeFieldName(en.getKey());
|
225
|
+
/* 17-Feb-2009, tatu: Can we trust that all nodes will always
|
226
|
+
* extend BaseJsonNode? Or if not, at least implement
|
227
|
+
* JsonSerializable? Let's start with former, change if
|
228
|
+
* we must.
|
229
|
+
*/
|
230
|
+
((BaseJsonNode) en.getValue()).serialize(jg, provider);
|
231
|
+
}
|
232
|
+
}
|
233
|
+
jg.writeEndObject();
|
234
|
+
}
|
235
|
+
|
236
|
+
@Override
|
237
|
+
public void serializeWithType(JsonGenerator jg, SerializerProvider provider,
|
238
|
+
TypeSerializer typeSer)
|
239
|
+
throws IOException, JsonProcessingException
|
240
|
+
{
|
241
|
+
typeSer.writeTypePrefixForObject(this, jg);
|
242
|
+
if (_children != null) {
|
243
|
+
for (Map.Entry<String, JsonNode> en : _children.entrySet()) {
|
244
|
+
jg.writeFieldName(en.getKey());
|
245
|
+
((BaseJsonNode) en.getValue()).serialize(jg, provider);
|
246
|
+
}
|
247
|
+
}
|
248
|
+
typeSer.writeTypeSuffixForObject(this, jg);
|
249
|
+
}
|
250
|
+
|
251
|
+
/*
|
252
|
+
/**********************************************************
|
253
|
+
/* Extended ObjectNode API, mutators, generic
|
254
|
+
/**********************************************************
|
255
|
+
*/
|
256
|
+
|
257
|
+
/**
|
258
|
+
* Method that will set specified field, replacing old value,
|
259
|
+
* if any.
|
260
|
+
*
|
261
|
+
* @param value to set field to; if null, will be converted
|
262
|
+
* to a {@link NullNode} first (to remove field entry, call
|
263
|
+
* {@link #remove} instead)
|
264
|
+
*
|
265
|
+
* @return Old value of the field, if any; null if there was no
|
266
|
+
* old value.
|
267
|
+
*/
|
268
|
+
public JsonNode put(String fieldName, JsonNode value)
|
269
|
+
{
|
270
|
+
if (value == null) { // let's not store 'raw' nulls but nodes
|
271
|
+
value = nullNode();
|
272
|
+
}
|
273
|
+
return _put(fieldName, value);
|
274
|
+
}
|
275
|
+
|
276
|
+
/**
|
277
|
+
* Method for removing field entry from this ObjectNode.
|
278
|
+
* Will return value of the field, if such field existed;
|
279
|
+
* null if not.
|
280
|
+
*/
|
281
|
+
public JsonNode remove(String fieldName)
|
282
|
+
{
|
283
|
+
if (_children != null) {
|
284
|
+
return _children.remove(fieldName);
|
285
|
+
}
|
286
|
+
return null;
|
287
|
+
}
|
288
|
+
|
289
|
+
/**
|
290
|
+
* Method for removing specified field properties out of
|
291
|
+
* this ObjectNode.
|
292
|
+
*
|
293
|
+
* @param fieldNames Names of fields to remove
|
294
|
+
*
|
295
|
+
* @return This ObjectNode after removing entries
|
296
|
+
*
|
297
|
+
* @since 1.6
|
298
|
+
*/
|
299
|
+
public ObjectNode remove(Collection<String> fieldNames)
|
300
|
+
{
|
301
|
+
if (_children != null) {
|
302
|
+
for (String fieldName : fieldNames) {
|
303
|
+
_children.remove(fieldName);
|
304
|
+
}
|
305
|
+
}
|
306
|
+
return this;
|
307
|
+
}
|
308
|
+
|
309
|
+
/**
|
310
|
+
* Method for removing all field properties, such that this
|
311
|
+
* ObjectNode will contain no properties after call.
|
312
|
+
*/
|
313
|
+
@Override
|
314
|
+
public ObjectNode removeAll()
|
315
|
+
{
|
316
|
+
_children = null;
|
317
|
+
return this;
|
318
|
+
}
|
319
|
+
|
320
|
+
/**
|
321
|
+
* Method for adding given properties to this object node, overriding
|
322
|
+
* any existing values for those properties.
|
323
|
+
*
|
324
|
+
* @param properties Properties to add
|
325
|
+
*
|
326
|
+
* @return This node (to allow chaining)
|
327
|
+
*
|
328
|
+
* @since 1.3
|
329
|
+
*/
|
330
|
+
public JsonNode putAll(Map<String,JsonNode> properties)
|
331
|
+
{
|
332
|
+
if (_children == null) {
|
333
|
+
_children = new LinkedHashMap<String, JsonNode>(properties);
|
334
|
+
} else {
|
335
|
+
for (Map.Entry<String, JsonNode> en : properties.entrySet()) {
|
336
|
+
JsonNode n = en.getValue();
|
337
|
+
if (n == null) {
|
338
|
+
n = nullNode();
|
339
|
+
}
|
340
|
+
_children.put(en.getKey(), n);
|
341
|
+
}
|
342
|
+
}
|
343
|
+
return this;
|
344
|
+
}
|
345
|
+
|
346
|
+
/**
|
347
|
+
* Method for adding all properties of the given Object, overriding
|
348
|
+
* any existing values for those properties.
|
349
|
+
*
|
350
|
+
* @param other Object of which properties to add to this object
|
351
|
+
*
|
352
|
+
* @return This node (to allow chaining)
|
353
|
+
*
|
354
|
+
* @since 1.3
|
355
|
+
*/
|
356
|
+
public JsonNode putAll(ObjectNode other)
|
357
|
+
{
|
358
|
+
int len = other.size();
|
359
|
+
if (len > 0) {
|
360
|
+
if (_children == null) {
|
361
|
+
_children = new LinkedHashMap<String, JsonNode>(len);
|
362
|
+
}
|
363
|
+
other.putContentsTo(_children);
|
364
|
+
}
|
365
|
+
return this;
|
366
|
+
}
|
367
|
+
|
368
|
+
/**
|
369
|
+
* Method for removing all field properties out of this ObjectNode
|
370
|
+
* <b>except</b> for ones specified in argument.
|
371
|
+
*
|
372
|
+
* @param fieldNames Fields to <b>retain</b> in this ObjectNode
|
373
|
+
*
|
374
|
+
* @return This ObjectNode (to allow call chaining)
|
375
|
+
*
|
376
|
+
* @since 1.6
|
377
|
+
*/
|
378
|
+
public ObjectNode retain(Collection<String> fieldNames)
|
379
|
+
{
|
380
|
+
if (_children != null) {
|
381
|
+
Iterator<Map.Entry<String,JsonNode>> entries = _children.entrySet().iterator();
|
382
|
+
while (entries.hasNext()) {
|
383
|
+
Map.Entry<String, JsonNode> entry = entries.next();
|
384
|
+
if (!fieldNames.contains(entry.getKey())) {
|
385
|
+
entries.remove();
|
386
|
+
}
|
387
|
+
}
|
388
|
+
}
|
389
|
+
return this;
|
390
|
+
}
|
391
|
+
|
392
|
+
/**
|
393
|
+
* Method for removing all field properties out of this ObjectNode
|
394
|
+
* <b>except</b> for ones specified in argument.
|
395
|
+
*
|
396
|
+
* @param fieldNames Fields to <b>retain</b> in this ObjectNode
|
397
|
+
*
|
398
|
+
* @return This ObjectNode (to allow call chaining)
|
399
|
+
*
|
400
|
+
* @since 1.6
|
401
|
+
*/
|
402
|
+
public ObjectNode retain(String... fieldNames) {
|
403
|
+
return retain(Arrays.asList(fieldNames));
|
404
|
+
}
|
405
|
+
|
406
|
+
/*
|
407
|
+
/**********************************************************
|
408
|
+
/* Extended ObjectNode API, mutators, typed
|
409
|
+
/**********************************************************
|
410
|
+
*/
|
411
|
+
|
412
|
+
/**
|
413
|
+
* Method that will construct an ArrayNode and add it as a
|
414
|
+
* field of this ObjectNode, replacing old value, if any.
|
415
|
+
*
|
416
|
+
* @return Newly constructed ArrayNode (NOT the old value,
|
417
|
+
* which could be of any type)
|
418
|
+
*/
|
419
|
+
public ArrayNode putArray(String fieldName)
|
420
|
+
{
|
421
|
+
ArrayNode n = arrayNode();
|
422
|
+
_put(fieldName, n);
|
423
|
+
return n;
|
424
|
+
}
|
425
|
+
|
426
|
+
/**
|
427
|
+
* Method that will construct an ObjectNode and add it as a
|
428
|
+
* field of this ObjectNode, replacing old value, if any.
|
429
|
+
*
|
430
|
+
* @return Newly constructed ObjectNode (NOT the old value,
|
431
|
+
* which could be of any type)
|
432
|
+
*/
|
433
|
+
public ObjectNode putObject(String fieldName)
|
434
|
+
{
|
435
|
+
ObjectNode n = objectNode();
|
436
|
+
_put(fieldName, n);
|
437
|
+
return n;
|
438
|
+
}
|
439
|
+
|
440
|
+
public void putPOJO(String fieldName, Object pojo)
|
441
|
+
{
|
442
|
+
_put(fieldName, POJONode(pojo));
|
443
|
+
}
|
444
|
+
|
445
|
+
public void putNull(String fieldName)
|
446
|
+
{
|
447
|
+
_put(fieldName, nullNode());
|
448
|
+
}
|
449
|
+
|
450
|
+
/**
|
451
|
+
* Method for setting value of a field to specified numeric value.
|
452
|
+
*/
|
453
|
+
public void put(String fieldName, int v) { _put(fieldName, numberNode(v)); }
|
454
|
+
|
455
|
+
/**
|
456
|
+
* Alternative method that we need to avoid bumping into NPE issues
|
457
|
+
* with auto-unboxing.
|
458
|
+
*
|
459
|
+
* @since 1.9
|
460
|
+
*/
|
461
|
+
public void put(String fieldName, Integer value) {
|
462
|
+
if (value == null) {
|
463
|
+
_put(fieldName, nullNode());
|
464
|
+
} else {
|
465
|
+
_put(fieldName, numberNode(value.intValue()));
|
466
|
+
}
|
467
|
+
}
|
468
|
+
|
469
|
+
/**
|
470
|
+
* Method for setting value of a field to specified numeric value.
|
471
|
+
*/
|
472
|
+
public void put(String fieldName, long v) { _put(fieldName, numberNode(v)); }
|
473
|
+
|
474
|
+
/**
|
475
|
+
* Alternative method that we need to avoid bumping into NPE issues
|
476
|
+
* with auto-unboxing.
|
477
|
+
*
|
478
|
+
* @since 1.9
|
479
|
+
*/
|
480
|
+
public void put(String fieldName, Long value) {
|
481
|
+
if (value == null) {
|
482
|
+
_put(fieldName, nullNode());
|
483
|
+
} else {
|
484
|
+
_put(fieldName, numberNode(value.longValue()));
|
485
|
+
}
|
486
|
+
}
|
487
|
+
|
488
|
+
/**
|
489
|
+
* Method for setting value of a field to specified numeric value.
|
490
|
+
*/
|
491
|
+
public void put(String fieldName, float v) { _put(fieldName, numberNode(v)); }
|
492
|
+
|
493
|
+
/**
|
494
|
+
* Alternative method that we need to avoid bumping into NPE issues
|
495
|
+
* with auto-unboxing.
|
496
|
+
*
|
497
|
+
* @since 1.9
|
498
|
+
*/
|
499
|
+
public void put(String fieldName, Float value) {
|
500
|
+
if (value == null) {
|
501
|
+
_put(fieldName, nullNode());
|
502
|
+
} else {
|
503
|
+
_put(fieldName, numberNode(value.floatValue()));
|
504
|
+
}
|
505
|
+
}
|
506
|
+
|
507
|
+
/**
|
508
|
+
* Method for setting value of a field to specified numeric value.
|
509
|
+
*/
|
510
|
+
public void put(String fieldName, double v) { _put(fieldName, numberNode(v)); }
|
511
|
+
|
512
|
+
/**
|
513
|
+
* Alternative method that we need to avoid bumping into NPE issues
|
514
|
+
* with auto-unboxing.
|
515
|
+
*
|
516
|
+
* @since 1.9
|
517
|
+
*/
|
518
|
+
public void put(String fieldName, Double value) {
|
519
|
+
if (value == null) {
|
520
|
+
_put(fieldName, nullNode());
|
521
|
+
} else {
|
522
|
+
_put(fieldName, numberNode(value.doubleValue()));
|
523
|
+
}
|
524
|
+
}
|
525
|
+
|
526
|
+
/**
|
527
|
+
* Method for setting value of a field to specified numeric value.
|
528
|
+
*/
|
529
|
+
public void put(String fieldName, BigDecimal v) {
|
530
|
+
if (v == null) {
|
531
|
+
putNull(fieldName);
|
532
|
+
} else {
|
533
|
+
_put(fieldName, numberNode(v));
|
534
|
+
}
|
535
|
+
}
|
536
|
+
|
537
|
+
/**
|
538
|
+
* Method for setting value of a field to specified String value.
|
539
|
+
*/
|
540
|
+
public void put(String fieldName, String v) {
|
541
|
+
if (v == null) {
|
542
|
+
putNull(fieldName);
|
543
|
+
} else {
|
544
|
+
_put(fieldName, textNode(v));
|
545
|
+
}
|
546
|
+
}
|
547
|
+
|
548
|
+
/**
|
549
|
+
* Method for setting value of a field to specified String value.
|
550
|
+
*/
|
551
|
+
public void put(String fieldName, boolean v) { _put(fieldName, booleanNode(v)); }
|
552
|
+
|
553
|
+
/**
|
554
|
+
* Alternative method that we need to avoid bumping into NPE issues
|
555
|
+
* with auto-unboxing.
|
556
|
+
*
|
557
|
+
* @since 1.9
|
558
|
+
*/
|
559
|
+
public void put(String fieldName, Boolean value) {
|
560
|
+
if (value == null) {
|
561
|
+
_put(fieldName, nullNode());
|
562
|
+
} else {
|
563
|
+
_put(fieldName, booleanNode(value.booleanValue()));
|
564
|
+
}
|
565
|
+
}
|
566
|
+
|
567
|
+
/**
|
568
|
+
* Method for setting value of a field to specified binary value
|
569
|
+
*/
|
570
|
+
public void put(String fieldName, byte[] v) {
|
571
|
+
if (v == null) {
|
572
|
+
_put(fieldName, nullNode());
|
573
|
+
} else {
|
574
|
+
_put(fieldName, binaryNode(v));
|
575
|
+
}
|
576
|
+
}
|
577
|
+
|
578
|
+
/*
|
579
|
+
/**********************************************************
|
580
|
+
/* Package methods (for other node classes to use)
|
581
|
+
/**********************************************************
|
582
|
+
*/
|
583
|
+
|
584
|
+
/**
|
585
|
+
* @since 1.6
|
586
|
+
*/
|
587
|
+
protected void putContentsTo(Map<String,JsonNode> dst)
|
588
|
+
{
|
589
|
+
if (_children != null) {
|
590
|
+
for (Map.Entry<String,JsonNode> en : _children.entrySet()) {
|
591
|
+
dst.put(en.getKey(), en.getValue());
|
592
|
+
}
|
593
|
+
}
|
594
|
+
}
|
595
|
+
|
596
|
+
/*
|
597
|
+
/**********************************************************
|
598
|
+
/* Standard methods
|
599
|
+
/**********************************************************
|
600
|
+
*/
|
601
|
+
|
602
|
+
@Override
|
603
|
+
public boolean equals(Object o)
|
604
|
+
{
|
605
|
+
if (o == this) return true;
|
606
|
+
if (o == null) return false;
|
607
|
+
if (o.getClass() != getClass()) {
|
608
|
+
return false;
|
609
|
+
}
|
610
|
+
ObjectNode other = (ObjectNode) o;
|
611
|
+
if (other.size() != size()) {
|
612
|
+
return false;
|
613
|
+
}
|
614
|
+
if (_children != null) {
|
615
|
+
for (Map.Entry<String, JsonNode> en : _children.entrySet()) {
|
616
|
+
String key = en.getKey();
|
617
|
+
JsonNode value = en.getValue();
|
618
|
+
|
619
|
+
JsonNode otherValue = other.get(key);
|
620
|
+
|
621
|
+
if (otherValue == null || !otherValue.equals(value)) {
|
622
|
+
return false;
|
623
|
+
}
|
624
|
+
}
|
625
|
+
}
|
626
|
+
return true;
|
627
|
+
}
|
628
|
+
|
629
|
+
@Override
|
630
|
+
public int hashCode()
|
631
|
+
{
|
632
|
+
return (_children == null) ? -1 : _children.hashCode();
|
633
|
+
}
|
634
|
+
|
635
|
+
@Override
|
636
|
+
public String toString()
|
637
|
+
{
|
638
|
+
StringBuilder sb = new StringBuilder(32 + (size() << 4));
|
639
|
+
sb.append("{");
|
640
|
+
if (_children != null) {
|
641
|
+
int count = 0;
|
642
|
+
for (Map.Entry<String, JsonNode> en : _children.entrySet()) {
|
643
|
+
if (count > 0) {
|
644
|
+
sb.append(",");
|
645
|
+
}
|
646
|
+
++count;
|
647
|
+
TextNode.appendQuoted(sb, en.getKey());
|
648
|
+
sb.append(':');
|
649
|
+
sb.append(en.getValue().toString());
|
650
|
+
}
|
651
|
+
}
|
652
|
+
sb.append("}");
|
653
|
+
return sb.toString();
|
654
|
+
}
|
655
|
+
|
656
|
+
/*
|
657
|
+
/**********************************************************
|
658
|
+
/* Internal methods
|
659
|
+
/**********************************************************
|
660
|
+
*/
|
661
|
+
|
662
|
+
private final JsonNode _put(String fieldName, JsonNode value)
|
663
|
+
{
|
664
|
+
if (_children == null) {
|
665
|
+
_children = new LinkedHashMap<String, JsonNode>();
|
666
|
+
}
|
667
|
+
return _children.put(fieldName, value);
|
668
|
+
}
|
669
|
+
|
670
|
+
/*
|
671
|
+
/**********************************************************
|
672
|
+
/* Helper classes
|
673
|
+
/**********************************************************
|
674
|
+
*/
|
675
|
+
|
676
|
+
/**
|
677
|
+
* For efficiency, let's share the "no fields" iterator...
|
678
|
+
*/
|
679
|
+
protected static class NoFieldsIterator
|
680
|
+
implements Iterator<Map.Entry<String, JsonNode>>
|
681
|
+
{
|
682
|
+
final static NoFieldsIterator instance = new NoFieldsIterator();
|
683
|
+
|
684
|
+
private NoFieldsIterator() { }
|
685
|
+
|
686
|
+
@Override
|
687
|
+
public boolean hasNext() { return false; }
|
688
|
+
@Override
|
689
|
+
public Map.Entry<String,JsonNode> next() { throw new NoSuchElementException(); }
|
690
|
+
|
691
|
+
@Override
|
692
|
+
public void remove() { // or IllegalOperationException?
|
693
|
+
throw new IllegalStateException();
|
694
|
+
}
|
695
|
+
}
|
696
|
+
}
|