io.atlasmap.java.core.TargetValueConverter.class Maven / Gradle / Ivy
Go to download
A single aggregated bundle which contains all AtlasMap library artifacts including modules.
???? 4t
? Y ? Y ? Y ?
? ? Y ? ? ? ? ?
? ?
? ?
? ? ? ? ?
? ?
? ?
?
?
n ? ? ?
? ?
? ? ? ?
? ? ? ?
? ?
? ?
? ?
?
? ?
? ? ? ?
?
? ?
Y ? ? ? ?
? ?
? ?
? ?
?
Y ?
? ? ? ? ? ?
? ? ? ?
? ? ? ?
5 ? ? ? ? ?
? ?
; ? ?
; ?
; ?
; ? ? ? ?
B ?
? ? ? ?
H
?
H
?
O ?
?
B
?
V ?
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 c ? ] ^ _ ` a b [ \ LprocessTargetMapping srcPath={} srcVal={} srcType={} tgtPath={} tgtdocId={} java/lang/Object!"#$%"&' io/atlasmap/java/v2/JavaField(" !io/atlasmap/java/v2/JavaEnumField io/atlasmap/core/AtlasPath c)*+,-./01234356789: ?;<=>?@"A) Value conversion between enum fields and non-enum fields is not yet supported: sourceType=%s targetType=%s targetPath=%s msg=%sBCDEF"GHI ? ? 2Null sourceValue for targetDocId=%s, targetPath=%sJEKLMNOP ? ?QRST aTarget field doesn't have fieldType nor className: automatic conversion won't work: targetPath=%sUVWX YNZ java/lang/ClassNotFoundException WTarget field class '%s' was not found: sourceType=%s targetType=%s targetPath=%s msg=%s["\]^_ java/lang/StringBuilder *Input enum field or value is null, field: `a`b&) java/lang/Enumc"defghi j io/atlasmap/v2/LookupEntryk"lmn" Mapped input enum value ' ' to output enum value ' '. java/lang/Exception 4Could not find class for output field class '%s': %sop "java/lang/IllegalArgumentException &No enum entry found for value '%s': %s *io/atlasmap/java/core/TargetValueConverterqrs )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 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; ERROR Lio/atlasmap/v2/AuditStatus; toString 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 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; ! Y [ \ ] ^ _ ` a b c d e ~ *? *? *? *+? *,? *-? ? f ! " # $ % g * h i j b ] ^ _ ` k l e u
-? :? ? ? 6? ? Y-?
SY-? SY-? SY?
SY? S?
? ? ? ? ? :? ? ? ? ? :? ?? ?? Y?
? ? :? ? ? *? ? ? *? ? : ? ? *? ? ? ? ? ? = ? ? ? ? ? ? :? ? ? ? ?
? ? -? ? ? ? b-? ? ? ? B+? !? Y-? SY? SY?
S? "?
? #? ? $? ? %*+,-? ? ? &W?? :? r? ? ? B+? '? Y? SY?
S? "?
? (? ? $? ? %? )?? ? *? *? ? ? *? +: ? ,?*+? -: ? )? f ? . ) + , - 3 . ? , D 1 Z 2 q 4 { 5 ? 6 ? 7 ? 8 ? 9 ? : ? <