io.atlasmap.json.inspect.JsonInstanceInspector.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4?
} ? z ? z ? ? ? ? ? ?
? ? ?
?
? ? ?
? ? ?
?
?
?
? ? ? ? ? ? ? ? ? ? ?
z ?
? ?
z ? ?
z ? ? ? ? ?
% ? ?
z ?
? ?
? ? ? ?
? ? ?
? ? ?
4 ?
4
?
K ?
K
!"
K# ?$
%
& '(
)
*
+,
-
.
/
0 '1
2
34
5 '6
7
89
: ';
<
= '>
?
@A
B 'C
D
EF
G 'H
I
J 'K
L
M
N 'O PQ
RS
z ?TU LOG Lorg/slf4j/Logger; myself 0Lio/atlasmap/json/inspect/JsonInstanceInspector; ()V Code LineNumberTable LocalVariableTable this instance 2()Lio/atlasmap/json/inspect/JsonInstanceInspector; inspect 6(Ljava/lang/String;)Lio/atlasmap/json/v2/JsonDocument; e Entry InnerClasses Ljava/util/Map$Entry; key Ljava/lang/String; node )Lcom/fasterxml/jackson/databind/JsonNode; fields Ljava/util/Iterator; jsonDocument "Lio/atlasmap/json/v2/JsonDocument; objectMapper -Lcom/fasterxml/jackson/databind/ObjectMapper; rootNode Ljava/io/IOException; LocalVariableTypeTable RLjava/util/Map$Entry; hLjava/util/Iterator;>;
StackMapTableQ ?V ? ?W ? ?
Exceptions handleObjectNode ?(Lio/atlasmap/json/v2/JsonDocument;Lio/atlasmap/json/v2/JsonComplexType;Ljava/lang/String;Lcom/fasterxml/jackson/databind/node/ObjectNode;Z)V subKey subNode rootDocument parent %Lio/atlasmap/json/v2/JsonComplexType;
objectNode 0Lcom/fasterxml/jackson/databind/node/ObjectNode; isArray Z complexType subFieldsX handleArrayNode ?(Lio/atlasmap/json/v2/JsonDocument;Lio/atlasmap/json/v2/JsonComplexType;Ljava/lang/String;Lcom/fasterxml/jackson/databind/node/ArrayNode;)V arrayNode /Lcom/fasterxml/jackson/databind/node/ArrayNode; sample createChildJsonComplexType ?(Lio/atlasmap/json/v2/JsonDocument;Lio/atlasmap/json/v2/JsonComplexType;Ljava/lang/String;Z)Lio/atlasmap/json/v2/JsonComplexType; jsonComplexType path createChildJsonField ?(Lio/atlasmap/json/v2/JsonDocument;Lio/atlasmap/json/v2/JsonComplexType;Ljava/lang/String;Lcom/fasterxml/jackson/databind/node/ValueNode;Z)Lio/atlasmap/json/v2/JsonField; valueNode /Lcom/fasterxml/jackson/databind/node/ValueNode; field Lio/atlasmap/json/v2/JsonField;Y ?
SourceFile JsonInstanceInspector.java ? ? ? ? ?Z[\ "Start JSON instance inspection: {}]^_\ "java/lang/IllegalArgumentException JSON instance cannot be null ?`abc +com/fasterxml/jackson/databind/ObjectMapper ,com/fasterxml/jackson/databind/MapperFeaturedefghij\ ?kWl\mno java/util/Map$Entrypn java/lang/Stringqn 'com/fasterxml/jackson/databind/JsonNode .com/fasterxml/jackson/databind/node/ObjectNode ? ? ?\ -com/fasterxml/jackson/databind/node/ArrayNode ? ? -com/fasterxml/jackson/databind/node/ValueNode ? ? !JSON root must be object or array java/io/IOException 0io/atlasmap/json/inspect/JsonInspectionException ?r Handling object node: {} ? ? Handling array node: {}st Ignoring empty JSON array: {}u^vw "Nested JSON array is not supported )Creating JSON complex type (array:{}): {}xyz]{|}~ io/atlasmap/json/v2/JsonFieldsX??`??????? /?? <>??????`???????V????? "Creating JSON field (array:{}): {}??Y java/lang/StringBuilder VALUE IS A ?????????]`?\?\??????t?y????\???\?????y??\?????y??\?????\?????y??\?????y??\?????\???\?\?\???? .io/atlasmap/json/inspect/JsonInstanceInspector??? java/lang/Object &io/atlasmap/json/inspect/JsonInspector io/atlasmap/json/v2/JsonDocument java/util/Iterator #io/atlasmap/json/v2/JsonComplexType io/atlasmap/json/v2/JsonField org/slf4j/Logger isTraceEnabled ()Z trace '(Ljava/lang/String;Ljava/lang/Object;)V isEmpty (Ljava/lang/String;)V )io/atlasmap/json/v2/AtlasJsonModelFactory createJsonDocument $()Lio/atlasmap/json/v2/JsonDocument; #BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES .Lcom/fasterxml/jackson/databind/MapperFeature; enable ^([Lcom/fasterxml/jackson/databind/MapperFeature;)Lcom/fasterxml/jackson/databind/ObjectMapper; readTree =(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode; isObject ()Ljava/util/Iterator; hasNext next ()Ljava/lang/Object;
java/util/Map getKey getValue (Ljava/lang/Throwable;)V size ()I warn get ,(I)Lcom/fasterxml/jackson/databind/JsonNode; java/lang/Boolean valueOf (Z)Ljava/lang/Boolean; 9(Ljava/lang/String;Ljava/lang/Object;Ljava/lang/Object;)V ,io/atlasmap/json/core/JsonComplexTypeFactory createJsonComlexField '()Lio/atlasmap/json/v2/JsonComplexType;
setJsonFields #(Lio/atlasmap/json/v2/JsonFields;)V setName io/atlasmap/v2/FieldStatus SUPPORTED Lio/atlasmap/v2/FieldStatus; setStatus (Lio/atlasmap/v2/FieldStatus;)V getPath ()Ljava/lang/String; concat &(Ljava/lang/String;)Ljava/lang/String; io/atlasmap/v2/CollectionType LIST Lio/atlasmap/v2/CollectionType; setCollectionType "(Lio/atlasmap/v2/CollectionType;)V setPath
getJsonFields "()Lio/atlasmap/json/v2/JsonFields; getJsonField ()Ljava/util/List; java/util/List add (Ljava/lang/Object;)Z getFields ()Lio/atlasmap/v2/Fields; io/atlasmap/v2/Fields getField createJsonField !()Lio/atlasmap/json/v2/JsonField; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; getNodeType 4()Lcom/fasterxml/jackson/databind/node/JsonNodeType; 0com/fasterxml/jackson/databind/node/JsonNodeType name toString isNumber isInt io/atlasmap/v2/FieldType INTEGER Lio/atlasmap/v2/FieldType; setFieldType (Lio/atlasmap/v2/FieldType;)V intValue java/lang/Integer (I)Ljava/lang/Integer; setValue (Ljava/lang/Object;)V isBigInteger bigIntegerValue ()Ljava/math/BigInteger; isFloat FLOAT
floatValue ()F java/lang/Float (F)Ljava/lang/Float; isDouble DOUBLE asDouble ()D java/lang/Double (D)Ljava/lang/Double; isBigDecimal DECIMAL decimalValue ()Ljava/math/BigDecimal; isShort SHORT
shortValue ()S java/lang/Short (S)Ljava/lang/Short; isLong LONG longValue ()J java/lang/Long (J)Ljava/lang/Long; isTextual STRING textValue isBoolean BOOLEAN booleanValue isBinary isPojo UNSUPPORTED org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! z } ~ ?
? ? ? ? ? 3 *? ? ?
4 5 ? ? ? ? ? ? ? ? ? 8 ? ? ? R ?? ? ? ? +? +?
+? ?
? Y ?
?? M? Y?
? Y? S? N-+? :? ? ~? :? ? j? ? :? ? :? ? :? ? *,? ? ? *? ? *,? ? ? *,? ? !W???? %? ? *,"? ? ?
? Y#?
?,?M? %Y,? &? + ? ? $ ? j <