io.atlasmap.java.core.TargetValueConverter.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4x
? [ ? [ ? [ ? ? ? ?
? ? ?
? ? [ ? ? ? ? ?
? ?
? ?
? ? ? ? ?
? ?
? ?
?
?
p ? ? ?
? ?
? ? ? ?
? ? ? ?
? ?
? ?
? ?
?
? ?
? ?
?
[ ? ? ? ?
? ?
? ?
? ?
?
[ ?
? ? ? ? ? ?
? ? ? ?
? ? ? ?
7 ? ? ? ? ?
? ?
= ? ?
= ?
= ?
= ? ? ? ?
D ?
J
?
J
?
Q ?
?
D
?
X ?
LOG Lorg/slf4j/Logger; conversionService (Lio/atlasmap/spi/AtlasConversionService;
writerUtil +Lio/atlasmap/java/core/JavaFieldWriterUtil; classLoader Ljava/lang/ClassLoader; m(Ljava/lang/ClassLoader;Lio/atlasmap/spi/AtlasConversionService;Lio/atlasmap/java/core/JavaFieldWriterUtil;)V Code LineNumberTable LocalVariableTable this ,Lio/atlasmap/java/core/TargetValueConverter; loader populateTargetField ?(Lio/atlasmap/spi/AtlasInternalSession;Lio/atlasmap/v2/LookupTable;Lio/atlasmap/v2/Field;Ljava/lang/Object;Lio/atlasmap/v2/Field;)V segment SegmentContext InnerClasses +Lio/atlasmap/core/AtlasPath$SegmentContext; clazz Ljava/lang/Class; created Ljava/lang/Object; session &Lio/atlasmap/spi/AtlasInternalSession; lookupTable Lio/atlasmap/v2/LookupTable; sourceField Lio/atlasmap/v2/Field; parentObject targetField sourceValue targetClassName Ljava/lang/String; javaTargetField Lio/atlasmap/java/v2/JavaField; targetValue LocalVariableTypeTable Ljava/lang/Class<*>;
StackMapTable ? ?
Exceptions convertTargetValue Q(Lio/atlasmap/spi/AtlasInternalSession;Ljava/lang/Object;Lio/atlasmap/v2/Field;)V setClassLoader (Ljava/lang/ClassLoader;)V doConvertTargetValue t(Lio/atlasmap/spi/AtlasInternalSession;Ljava/lang/Object;Ljava/lang/String;Lio/atlasmap/v2/Field;)Ljava/lang/Object; e "Ljava/lang/ClassNotFoundException;
sourceType Lio/atlasmap/v2/FieldType;
targetType targetClazz ? populateEnumValue ?(Lio/atlasmap/spi/AtlasInternalSession;Lio/atlasmap/v2/LookupTable;Lio/atlasmap/java/v2/JavaEnumField;Lio/atlasmap/java/v2/JavaEnumField;)Ljava/lang/Object; Lio/atlasmap/v2/LookupEntry; Ljava/lang/Exception; enumValue Ljava/lang/Enum; $Ljava/lang/IllegalArgumentException; #Lio/atlasmap/java/v2/JavaEnumField; enumClass Ljava/lang/Enum<*>; ? ()V
SourceFile TargetValueConverter.java e ? _ ` a b c d Source field cannot be null !"#$ Target field cannot be null%& ] ^'() LprocessTargetMapping srcPath={} srcVal={} srcType={} tgtPath={} tgtdocId={} java/lang/Object*+,-.+/0 io/atlasmap/java/v2/JavaField1+ !io/atlasmap/java/v2/JavaEnumField io/atlasmap/core/AtlasPath e23456789:;<=<>?@ABC ?DEFGHI+J2 Value conversion between enum fields and non-enum fields is not yet supported: sourceType=%s targetType=%s targetPath=%s msg=%sKLM+ ? ? 2Null sourceValue for targetDocId=%s, targetPath=%sN!OPQRST ? ?UVWX aTarget field doesn't have fieldType nor className: automatic conversion won't work: targetPath=%sYZ[\)]R^ java/lang/ClassNotFoundException WTarget field class '%s' was not found: sourceType=%s targetType=%s targetPath=%s msg=%s_+`abc java/lang/StringBuilder *Input enum field or value is null, field: dedf/2 java/lang/Enumg+hijklm)n& io/atlasmap/v2/LookupEntryo+pqr+ Mapped input enum value ' ' to output enum value ' '. java/lang/Exception 4Could not find class for output field class '%s': %sst "java/lang/IllegalArgumentException &No enum entry found for value '%s': %s *io/atlasmap/java/core/TargetValueConverteruvw )io/atlasmap/core/AtlasPath$SegmentContext java/lang/String java/lang/Class $io/atlasmap/spi/AtlasInternalSession io/atlasmap/v2/LookupTable io/atlasmap/v2/Field io/atlasmap/v2/AuditStatus io/atlasmap/api/AtlasException io/atlasmap/v2/FieldType java/util/Iterator 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 getValue ()Ljava/lang/Object; org/slf4j/Logger isDebugEnabled ()Z getPath ()Ljava/lang/String; getFieldType ()Lio/atlasmap/v2/FieldType; getDocId debug ((Ljava/lang/String;[Ljava/lang/Object;)V getClassName (Ljava/lang/String;)V getLastSegment -()Lio/atlasmap/core/AtlasPath$SegmentContext; getCollectionType !()Lio/atlasmap/v2/CollectionType; io/atlasmap/v2/CollectionType NONE Lio/atlasmap/v2/CollectionType; )io/atlasmap/java/core/JavaFieldWriterUtil resolveChildClass P(Ljava/lang/Object;Lio/atlasmap/core/AtlasPath$SegmentContext;)Ljava/lang/Class; resolveCollectionItemClass &io/atlasmap/spi/AtlasConversionService fieldTypeFromClass -(Ljava/lang/Class;)Lio/atlasmap/v2/FieldType; setFieldType (Lio/atlasmap/v2/FieldType;)V COMPLEX getModifiers ()I java/lang/reflect/Modifier
isAbstract (I)Z getName setClassName format 9(Ljava/lang/String;[Ljava/lang/Object;)Ljava/lang/String; toString WARN setValue (Ljava/lang/Object;)V loadClass %(Ljava/lang/String;)Ljava/lang/Class; instantiateObject %(Ljava/lang/Class;)Ljava/lang/Object; getClass ()Ljava/lang/Class; classFromFieldType -(Lio/atlasmap/v2/FieldType;)Ljava/lang/Class; isPrimitive '(Ljava/lang/String;)Ljava/lang/Boolean; java/lang/Boolean booleanValue boxOrUnboxPrimitive java/lang/ClassLoader
getMessage isConvertionAvailableFor &(Ljava/lang/Object;Ljava/lang/Class;)Z convertType [(Ljava/lang/Object;Ljava/lang/String;Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Object; append -(Ljava/lang/String;)Ljava/lang/StringBuilder; -(Ljava/lang/Object;)Ljava/lang/StringBuilder; name getLookupEntry ()Ljava/util/List; java/util/List iterator ()Ljava/util/Iterator; hasNext next getSourceValue equals (Ljava/lang/Object;)Z getTargetValue valueOf 5(Ljava/lang/Class;Ljava/lang/String;)Ljava/lang/Enum; org/slf4j/LoggerFactory getLogger %(Ljava/lang/Class;)Lorg/slf4j/Logger; ! [
] ^ _ ` a b c d e f g ~ *? *? *? *+? *,? *-? ? h ! " # $ % i * j k l d _ ` a b m n g ?
0-? +? ? ?? +? ? ?-? :?
? ? 6?
?
Y-? SY-? SY-? SY? SY? S? ? ? ? ? ? :? ? ? ? ? :? ?? ?? Y? ? ? :? ? ? *? ? ? *? ? : ? ? *? ? ? ? ? ? = ? ? ? !? ? "? :? ? ? ? #?
? ? $-? ? ? ? b-? ? ? ? B+? %?
Y-? SY? SY? S? &? ? ? ? '? ? *+,-? ? ? (W?? :? r? ? ? B+? )?
Y? SY? S? &? ? *? ? '? ? ? +?? ? *? *? ? ? ,? -: ? .?*+? /: ? +? h ? 4 ) * + - . " / # 1 ) 3 4 4 @ 5 V 6 b 4 g 9 } : ? <