io.atlasmap.json.core.JsonFieldReader.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4b
?
?
5
?
%!"#$"%"&'
(
)*
+,-
./
0 12
834
?5"67
(
8
?9
()
(:
;
<=>
8%
0?
8@ABC
5D
8EF
0G
8H
0I JK
0L
.M
8N
OP
Q
OR
S
T
U"VAW
XY
?Z"[
8\]
I%
%
IN
(U
8^
8_
(`
(a
8b
(
(0
(cdefg
8h
?i
8j
?k
8l
?m
8n
?o ?pqrs 1t
8T 1u
1v
8w 1x
5y
z{|
1}
8~ 1
8M
8? 1?
8?
??
8? 1?
8?
8?
8?
??
8? 1?
8?
??
8? 1?
8?
??
8? 1?
8? 1?
8? 1?
8=
<?r??r? J?
(???
5??
?
?
?
? ??
??
??
???
??
??? LOG Lorg/slf4j/Logger; conversionService (Lio/atlasmap/spi/AtlasConversionService; rootNode )Lcom/fasterxml/jackson/databind/JsonNode; ()V Code LineNumberTable LocalVariableTable this 'Lio/atlasmap/json/core/JsonFieldReader; +(Lio/atlasmap/spi/AtlasConversionService;)V read >(Lio/atlasmap/spi/AtlasInternalSession;)Lio/atlasmap/v2/Field;
fieldGroup Lio/atlasmap/v2/FieldGroup; session &Lio/atlasmap/spi/AtlasInternalSession; field Lio/atlasmap/v2/Field; path Lio/atlasmap/core/AtlasPath; fields Ljava/util/List; LocalVariableTypeTable (Ljava/util/List;
StackMapTable'?
Exceptions getJsonFieldsForPath ?(Lio/atlasmap/spi/AtlasInternalSession;Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/v2/Field;Lio/atlasmap/core/AtlasPath;I)Ljava/util/List; group jsonField Lio/atlasmap/json/v2/JsonField; value Ljava/lang/Object; segmentContext SegmentContext InnerClasses +Lio/atlasmap/core/AtlasPath$SegmentContext; child fieldName Ljava/lang/String; childFields arrayFields itemField itemPath i I node depth segments =Ljava/util/List;>F Signature ?(Lio/atlasmap/spi/AtlasInternalSession;Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/v2/Field;Lio/atlasmap/core/AtlasPath;I)Ljava/util/List; populateChildFields ?(Lio/atlasmap/spi/AtlasInternalSession;Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/v2/FieldGroup;Lio/atlasmap/core/AtlasPath;)V
childGroup childPath childNode newChildren? populateCollectionItems ?(Lio/atlasmap/spi/AtlasInternalSession;Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/v2/Field;)Lio/atlasmap/v2/FieldGroup; itemGroup arrayNode /Lcom/fasterxml/jackson/databind/node/ArrayNode;4Y handleValueNode ?(Lio/atlasmap/spi/AtlasInternalSession;Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/json/v2/JsonField;)Ljava/lang/Object; e *Lio/atlasmap/api/AtlasConversionException; valueNodef handleTextualNode \(Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/json/v2/JsonField;)Ljava/lang/Object; handleNumberNode handleBooleanNode handleContainerNode setDocument (Ljava/lang/String;)V factory (Lcom/fasterxml/jackson/core/JsonFactory; mapper -Lcom/fasterxml/jackson/databind/ObjectMapper; parser 'Lcom/fasterxml/jackson/core/JsonParser; Ljava/lang/Exception; document?
SourceFile JsonFieldReader.java ? ? ? ??????? ? ??? @Cannot read a field '%s' of JSON document '%s', document is null java/lang/Object?????????? io/atlasmap/core/AtlasPath ? ? ? ??????????????????? io/atlasmap/v2/Field???? java/util/ArrayList?? io/atlasmap/api/AtlasException $depth '%s' exceeds segment size '%s'?????????? io/atlasmap/v2/FieldGroup ? ??? io/atlasmap/json/v2/JsonField?? ? ???????? )io/atlasmap/core/AtlasPath$SegmentContext??????? java/lang/String???? 'com/fasterxml/jackson/databind/JsonNode??????????????
? ??
? -com/fasterxml/jackson/databind/node/ArrayNode ? ? ?? (Couldn't find JSON array for field %s:%s?? 'Unexpected array node is detected: '%s'?? (io/atlasmap/api/AtlasConversionException 1Failed to convert field value '%s' into type '%s'? ? ?? ? ?? ? ?? ? ? ? ? 6Detected unsupported json type for field p=%s docId=%s ?!?"?#?$?%?&'(?) 6Unsupported FieldType for text data t=%s p=%s docId=%s ??*?+?,?-?./0?12?3?456?789?:;?<?=>??@A?B?CDE?FG?H?IJK?LMN??OP? !Detected json array p=%s docId=%sQ ?R?ST *Detected json complex object p=%s docId=%s KUnknown error: detected a container JSON node which is not ARRAY nor OBJECTU? &com/fasterxml/jackson/core/JsonFactory +com/fasterxml/jackson/databind/ObjectMapper ,com/fasterxml/jackson/databind/MapperFeatureVWXYZ[\] java/lang/Exception ?^ %io/atlasmap/json/core/JsonFieldReader_`a io/atlasmap/spi/AtlasFieldReader java/util/List java/util/Iterator $io/atlasmap/spi/AtlasInternalSession head Head -()Lio/atlasmap/spi/AtlasInternalSession$Head; )io/atlasmap/spi/AtlasInternalSession$Head getSourceField ()Lio/atlasmap/v2/Field; getDocId ()Ljava/lang/String; getPath format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; io/atlasmap/v2/AuditStatus ERROR Lio/atlasmap/v2/AuditStatus; io/atlasmap/core/AtlasUtil addAudit ?(Lio/atlasmap/api/AtlasSession;Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;Lio/atlasmap/v2/AuditStatus;Ljava/lang/String;)V
hasCollection ()Z isIndexedCollection io/atlasmap/v2/AtlasModelFactory createFieldGroupFrom 4(Lio/atlasmap/v2/Field;Z)Lio/atlasmap/v2/FieldGroup; getField ()Ljava/util/List; addAll (Ljava/util/Collection;)Z setSourceField C(Lio/atlasmap/v2/Field;)Lio/atlasmap/spi/AtlasInternalSession$Head; size ()I get (I)Ljava/lang/Object; getValue ()Ljava/lang/Object; setValue (Ljava/lang/Object;)V getSegments (Z)Ljava/util/List; java/lang/Integer valueOf (I)Ljava/lang/Integer; getFieldType ()Lio/atlasmap/v2/FieldType; io/atlasmap/v2/FieldType COMPLEX Lio/atlasmap/v2/FieldType; isValueNode add (Ljava/lang/Object;)Z copyField 0(Lio/atlasmap/v2/Field;Lio/atlasmap/v2/Field;Z)V setIndex (Ljava/lang/Integer;)V hasCollectionRoot ()Ljava/lang/Boolean; java/lang/Boolean booleanValue
getExpression
fieldNames ()Ljava/util/Iterator; next
startsWith (Ljava/lang/String;)Z elements getName =(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode; getCollectionType !()Lio/atlasmap/v2/CollectionType; io/atlasmap/v2/CollectionType NONE Lio/atlasmap/v2/CollectionType; getCollectionIndex ()Ljava/lang/Integer; intValue ,(I)Lcom/fasterxml/jackson/databind/JsonNode; )io/atlasmap/json/v2/AtlasJsonModelFactory cloneFieldGroup 8(Lio/atlasmap/v2/FieldGroup;)Lio/atlasmap/v2/FieldGroup; setCollectionIndexRecursively (Lio/atlasmap/v2/FieldGroup;II)V
cloneField A(Lio/atlasmap/json/v2/JsonField;Z)Lio/atlasmap/json/v2/JsonField; setCollectionIndex A(ILjava/lang/Integer;)Lio/atlasmap/core/AtlasPath$SegmentContext; toString setPath iterator hasNext getLastSegment -()Lio/atlasmap/core/AtlasPath$SegmentContext; clear isArray isNull isObject setFieldType (Lio/atlasmap/v2/FieldType;)V asText getFormat &io/atlasmap/spi/AtlasConversionService convertType d(Ljava/lang/Object;Ljava/lang/String;Lio/atlasmap/v2/FieldType;Ljava/lang/String;)Ljava/lang/Object; isTextual isNumber isBoolean isContainerNode org/slf4j/Logger warn UNSUPPORTED STRING equals textValue CHAR charAt (I)C java/lang/Character (C)Ljava/lang/Character; isInt INTEGER isDouble DOUBLE doubleValue ()D java/lang/Double (D)Ljava/lang/Double; isBigDecimal DECIMAL decimalValue ()Ljava/math/BigDecimal; isFloat
floatValue ()F java/lang/Float (F)Ljava/lang/Float; isLong LONG longValue ()J java/lang/Long (J)Ljava/lang/Long; isShort SHORT
shortValue ()S java/lang/Short (S)Ljava/lang/Short; isBigInteger BIG_INTEGER bigIntegerValue ()Ljava/math/BigInteger; NUMBER numberValue ()Ljava/lang/Number; BOOLEAN (Z)Ljava/lang/Boolean; isDebugEnabled debug ARRAY setCollectionType "(Lio/atlasmap/v2/CollectionType;)V isEmpty #BLOCK_UNSAFE_POLYMORPHIC_BASE_TYPES .Lcom/fasterxml/jackson/databind/MapperFeature; enable ^([Lcom/fasterxml/jackson/databind/MapperFeature;)Lcom/fasterxml/jackson/databind/ObjectMapper; createParser ;(Ljava/lang/String;)Lcom/fasterxml/jackson/core/JsonParser; readTree N(Lcom/fasterxml/jackson/core/JsonParser;)Lcom/fasterxml/jackson/core/TreeNode; (Ljava/lang/Throwable;)V org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! ? ? ? ? ? ? ? ?
? ? ? 3 *? ? ?
8 9 ? ? ? ? ? ? F
*? *+? ? ? ; <