io.atlasmap.java.core.JavaFieldWriter.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4{
? \ ? ?
? \ ? \ ? \ ? ? ? ? ? ? ?
? ?
C ?
?
?
? ? ? ?
?
?
$ ? ? ? ? ?
?
? ?
$ ?
? ?
? ?
? ?
? ? ? ? ? ? ? ? \ ? ? ? ?
' ? ?
' ?
' ?
' ? ? ? ?
\ ?
?
? ?
? ?
? ?
? ? ? ? ? ?
? ? ? ? ? \ ?
? ? ? @ @
?
C
?
G
I
C
?
?
?
\
\
\
\
?
?
! LOG Lorg/slf4j/Logger;
rootObject Ljava/lang/Object;
writerUtil +Lio/atlasmap/java/core/JavaFieldWriterUtil; converter ,Lio/atlasmap/java/core/TargetValueConverter; fieldParentQueue Ljava/util/Map; Signature 9Ljava/util/Map; collectionItemClass Ljava/lang/Class; Ljava/lang/Class<*>; .(Lio/atlasmap/java/core/JavaFieldWriterUtil;)V Code LineNumberTable LocalVariableTable this 'Lio/atlasmap/java/core/JavaFieldWriter; util prepareParentObject :(Lio/atlasmap/spi/AtlasInternalSession;)Ljava/lang/Object; adjusted item childObject segmentContext SegmentContext InnerClasses +Lio/atlasmap/core/AtlasPath$SegmentContext; path Lio/atlasmap/core/AtlasPath; rootSegment parentObject t Ljava/lang/Throwable; session &Lio/atlasmap/spi/AtlasInternalSession; targetField Lio/atlasmap/v2/Field;
StackMapTable ? ? ?"# ?
Exceptions populateTargetFieldValue ;(Lio/atlasmap/spi/AtlasInternalSession;Ljava/lang/Object;)V sourceField lookupTable Lio/atlasmap/v2/LookupTable; enqueueFieldAndParent +(Lio/atlasmap/v2/Field;Ljava/lang/Object;)V field
commitWriting )(Lio/atlasmap/spi/AtlasInternalSession;)V
collection lastSegment targetClassName Ljava/lang/String; e Entry Ljava/util/Map$Entry; LocalVariableTypeTable ?Ljava/util/Map$Entry;$ write
getRootObject ()Ljava/lang/Object;
setRootObject (Ljava/lang/Object;)V setTargetValueConverter /(Lio/atlasmap/java/core/TargetValueConverter;)V setCollectionItemClass (Ljava/lang/Class;)V clazz (Ljava/lang/Class<*>;)V writeDocumentToString '(ZLjava/lang/Object;)Ljava/lang/String; result Ljava/lang/Exception; stripSpaces Z object ()V
SourceFile JavaFieldWriter.java n ? a b java/util/LinkedHashMap g h k l c d#%'()* io/atlasmap/api/AtlasException Target field cannot be null n+ io/atlasmap/core/AtlasPath,-./012 "java/lang/IllegalArgumentException (A root object must be set before process3456789 KCollection item class must be specified to handle topmost collection, path= java/lang/Object:-$;<=>?@ABACDEFGHI"J2K ? )io/atlasmap/core/AtlasPath$SegmentContext _ `LM2 java/lang/StringBuilder Now processing segment: NONPQ+ Parent object is currently: ? ?R4SATAUVCW java/lang/Throwable 1Error occured while preparing parent object for: QX nYZ*[\ e f]^_`abcde java/util/Map$Entryf ?g ? io/atlasmap/v2/FieldhijV io/atlasmap/java/v2/JavaFieldk- !io/atlasmap/java/v2/JavaEnumFieldlmnopq2rsTtu ? v w ? ? ? ? ? ?
|
vw > *?< >< java/lang/Exception %io/atlasmap/java/core/JavaFieldWriterxyz io/atlasmap/spi/AtlasFieldWriter java/util/Iterator $io/atlasmap/spi/AtlasInternalSession java/lang/String head Head -()Lio/atlasmap/spi/AtlasInternalSession$Head; )io/atlasmap/spi/AtlasInternalSession$Head getTargetField ()Lio/atlasmap/v2/Field; (Ljava/lang/String;)V getPath ()Ljava/lang/String; isRoot ()Ljava/lang/Boolean; java/lang/Boolean booleanValue ()Z getRootSegment -()Lio/atlasmap/core/AtlasPath$SegmentContext; getCollectionType !()Lio/atlasmap/v2/CollectionType; io/atlasmap/v2/CollectionType NONE Lio/atlasmap/v2/CollectionType; toString format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; getCollectionIndex ()Ljava/lang/Integer; )io/atlasmap/java/core/JavaFieldWriterUtil getCollectionItem Q(Ljava/lang/Object;Lio/atlasmap/core/AtlasPath$SegmentContext;)Ljava/lang/Object; adjustCollectionSize createComplexCollectionItem b(Ljava/lang/Object;Ljava/lang/Class;Lio/atlasmap/core/AtlasPath$SegmentContext;)Ljava/lang/Object; getSegments (Z)Ljava/util/List; java/util/List iterator ()Ljava/util/Iterator; hasNext next org/slf4j/Logger isDebugEnabled append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; debug getLastSegment getChildObject createComplexChildObject setChildObject R(Ljava/lang/Object;Ljava/lang/Object;Lio/atlasmap/core/AtlasPath$SegmentContext;)V c(Ljava/lang/Object;Ljava/lang/Object;Lio/atlasmap/core/AtlasPath$SegmentContext;)Ljava/lang/Object; *(Ljava/lang/String;Ljava/lang/Throwable;)V (Ljava/lang/Throwable;)V getSourceField getLookupTable ()Lio/atlasmap/v2/LookupTable; *io/atlasmap/java/core/TargetValueConverter populateTargetField ?(Lio/atlasmap/spi/AtlasInternalSession;Lio/atlasmap/v2/LookupTable;Lio/atlasmap/v2/Field;Ljava/lang/Object;Lio/atlasmap/v2/Field;)V
java/util/Map put 8(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object; entrySet ()Ljava/util/Set;
java/util/Set getValue getKey convertTargetValue Q(Lio/atlasmap/spi/AtlasInternalSession;Ljava/lang/Object;Lio/atlasmap/v2/Field;)V setCollectionItem getClassName getFieldType ()Lio/atlasmap/v2/FieldType; io/atlasmap/v2/FieldType COMPLEX Lio/atlasmap/v2/FieldType; isEmpty loadClass %(Ljava/lang/String;)Ljava/lang/Class; b(Ljava/lang/Object;Lio/atlasmap/core/AtlasPath$SegmentContext;Ljava/lang/Class;)Ljava/lang/Object; clear
replaceAll 8(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! \ ^ _ ` a b c d e f g h i j k l i m n o p g *? *? *? Y? ? *? *+? ? q - ' * + . / r s t u d v w p ? ?+? ? M,?
?
Y? ??
Y,? ? N-? ? ? ?*? ?
? Y? ?-? :*? :? ? ? d*? ? ?
Y? Y-? S? ? ?? ? ?*? *? ? :? '**? *? ? ? *? *? *? ? :-? ? ! :? " ? ?? # ? $:? %? & ? @? %? 'Y? ()? *? +? ,? - ? %? 'Y? (.? **? /? *? ,? - -? 0? ?*? ? 1:? *? ? 2:? ? ? S? ? ?*? ? : ? 3*? ? :
? *?
? 3*?
? 4: ::???N? %? & ? "? %? 'Y? (6? *,? ? *? ,-? 7 -?
? -?
??
Y-? 8? 1? 5 2 ?? 5 ?0? 51d? 5e?? 5 q ? 1 2 3 4 8 &