io.atlasmap.json.core.JsonFieldReader.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4(
? ? ? ? ? ? ? ? ?
? ? ? ?
? ?
? ? ?
? ? ?
?
?
?
'
'
'
?
( ?
( ?
(!
?"
(#
$%
&
' ()
*
+
',
'-
./ ?0
'1
'2 ?345
'6
'7 89
(:
( ?;
(<
(=>?@A
'B
?C
'D
?E
'F
?G
'H
?IJ 8K
' 8L
8M
'N 8O
P
QRS
8T
'U 8V
'.
'W 8X
'Y
Z[
'\ 8]
'^
'_
'`
ab
'c 8d
'e
fg
'h 8i
'j
kl
'm 8n
'o 8p
'q 8r
'
s4tu4v (w
(xyz{
? ?|
? ?}
? ?
?~
??
???
??? 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; segmentContext SegmentContext InnerClasses +Lio/atlasmap/core/AtlasPath$SegmentContext; terminalNode jsonField Lio/atlasmap/json/v2/JsonField; subPath Lio/atlasmap/core/AtlasPath; v Ljava/lang/Object; i I session &Lio/atlasmap/spi/AtlasInternalSession; field Lio/atlasmap/v2/Field; path
fieldGroup Lio/atlasmap/v2/FieldGroup;
valueNodes Ljava/util/List; LocalVariableTypeTable ;Ljava/util/List;
StackMapTable? ????
Exceptions getValueNode ?(Lio/atlasmap/spi/AtlasInternalSession;Lio/atlasmap/v2/Field;Ljava/util/List;Lio/atlasmap/core/AtlasPath$SegmentContext;)Ljava/util/List; formatted Ljava/lang/String; parent node parents isCollection Z strippedNodeName index Ljava/lang/Integer; answer??? Signature ?(Lio/atlasmap/spi/AtlasInternalSession;Lio/atlasmap/v2/Field;Ljava/util/List;Lio/atlasmap/core/AtlasPath$SegmentContext;)Ljava/util/List; handleValueNode ?(Lio/atlasmap/spi/AtlasInternalSession;Lcom/fasterxml/jackson/databind/JsonNode;Lio/atlasmap/json/v2/JsonField;)Ljava/lang/Object; e *Lio/atlasmap/api/AtlasConversionException; valueNode@ 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 ? ?????????? java/util/LinkedList???????????? )io/atlasmap/core/AtlasPath$SegmentContext??????? java/lang/String???????? ? ????? 'com/fasterxml/jackson/databind/JsonNode io/atlasmap/json/v2/JsonField?????????? ? ? ??????????????????????? 7Detected out of range index for field p=%s, ignoring...?????? ? ??? ?????????? '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???????????????????? ????
??
???????? !Detected json array p=%s docId=%s ?? *Detected json complex object p=%s docId=%s io/atlasmap/api/AtlasException KUnknown error: detected a container JSON node which is not ARRAY nor OBJECT &com/fasterxml/jackson/core/JsonFactory +com/fasterxml/jackson/databind/ObjectMapper !"# java/lang/Exception ?$ %io/atlasmap/json/core/JsonFieldReader%&' io/atlasmap/spi/AtlasFieldReader io/atlasmap/v2/Field io/atlasmap/v2/FieldGroup java/util/List java/util/Iterator $io/atlasmap/spi/AtlasInternalSession java/lang/Integer 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 3(Lio/atlasmap/v2/Field;)Lio/atlasmap/v2/FieldGroup; setSourceField C(Lio/atlasmap/v2/Field;)Lio/atlasmap/spi/AtlasInternalSession$Head; getSegments (Z)Ljava/util/List; size ()I hasCollectionRoot ()Ljava/lang/Boolean; java/lang/Boolean booleanValue get (I)Ljava/lang/Object;
getExpression
fieldNames ()Ljava/util/Iterator; next ()Ljava/lang/Object;
startsWith (Ljava/lang/String;)Z elements add (Ljava/lang/Object;)Z getRootSegment -()Lio/atlasmap/core/AtlasPath$SegmentContext; iterator hasNext copyField 0(Lio/atlasmap/v2/Field;Lio/atlasmap/v2/Field;Z)V valueOf (I)Ljava/lang/Integer; setVacantCollectionIndex @(Ljava/lang/Integer;)Lio/atlasmap/core/AtlasPath$SegmentContext; toString setPath setValue (Ljava/lang/Object;)V getField ()Ljava/util/List; getName getCollectionType !()Lio/atlasmap/v2/CollectionType; io/atlasmap/v2/CollectionType NONE Lio/atlasmap/v2/CollectionType; getCollectionIndex ()Ljava/lang/Integer; isEmpty isArray ,(I)Lcom/fasterxml/jackson/databind/JsonNode; intValue WARN asText =(Ljava/lang/String;)Lcom/fasterxml/jackson/databind/JsonNode; org/slf4j/Logger warn isNull isObject io/atlasmap/v2/FieldType COMPLEX Lio/atlasmap/v2/FieldType; setFieldType (Lio/atlasmap/v2/FieldType;)V getFieldType ()Lio/atlasmap/v2/FieldType; 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 UNSUPPORTED STRING equals textValue CHAR charAt (I)C java/lang/Character (C)Ljava/lang/Character; value 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 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 *? ? ?
5 6 ? ? ? ? ? ? F
*? *+? ? ? 8 9 : ?
? ?
? ? ? ? ? ? ?+? ? M*? ? ,+,? ? Y,? SY,? S?
,? ? ? ,??
Y,? ? N:-? ? -? ? ,? :+? ? W? Y? :-? ? ? ?*? ? ? J-? ? ? @-? ? ? ? *? ? ? ? ? ? *? ? !? ? " W? 6-? ? ? *? ? " W*+,-? #? $:? *? ? " W-? ? % :? & ? +? ? :? ? ? *+,? $:???? {6? ? i? ? ':? (Y? ):,? *?
Y? +? : ? ,? -W ? .? /*+? 0:
? 1? 2? " W?????? ? $,? (:*+? ? '? 0:? 1,? ? ? - > ? @ ! B , A 0 C 7 @ : D <