public interface AtlasConversionService
Modifier and Type | Method and Description |
---|---|
Class<?> |
boxOrUnboxPrimitive(Class<?> clazz) |
Class<?> |
boxOrUnboxPrimitive(String clazzName) |
Class<?> |
classFromFieldType(io.atlasmap.v2.FieldType fieldType) |
Object |
convertType(Object sourceValue,
io.atlasmap.v2.FieldType origSourceType,
io.atlasmap.v2.FieldType targetType)
Perform type conversion with specifying
FieldType . |
Object |
convertType(Object sourceValue,
String sourceFormat,
Class<?> targetType,
String targetFormat)
Perform type conversion with specifying target
Class regardless of AtlasMap FieldType . |
Object |
convertType(Object sourceValue,
String sourceFormat,
io.atlasmap.v2.FieldType targetType,
String targetFormat)
Perform type conversion with specifying
FieldType . |
Object |
copyPrimitive(Object sourceValue) |
io.atlasmap.v2.FieldType |
fieldTypeFromClass(Class<?> clazz) |
io.atlasmap.v2.FieldType |
fieldTypeFromClass(String className) |
Optional<AtlasConverter<?>> |
findMatchingConverter(io.atlasmap.v2.FieldType source,
io.atlasmap.v2.FieldType target) |
Optional<AtlasConverter<?>> |
findMatchingConverter(String sourceClassName,
String targetClassName) |
Boolean |
isAssignableFieldType(io.atlasmap.v2.FieldType source,
io.atlasmap.v2.FieldType target) |
Boolean |
isBoxedPrimitive(Class<?> clazz) |
Boolean |
isPrimitive(Class<?> clazz) |
Boolean |
isPrimitive(io.atlasmap.v2.FieldType fieldType) |
Boolean |
isPrimitive(String className) |
Optional<AtlasConverter<?>> findMatchingConverter(io.atlasmap.v2.FieldType source, io.atlasmap.v2.FieldType target)
Optional<AtlasConverter<?>> findMatchingConverter(String sourceClassName, String targetClassName)
Object convertType(Object sourceValue, io.atlasmap.v2.FieldType origSourceType, io.atlasmap.v2.FieldType targetType) throws AtlasConversionException
FieldType
. This method focuses on
conversion between different field types with using AtlasMap field type representative classes.
Use convertType(Object, String, Class, String)
to convert into specific Java class.sourceValue
- source value to convertorigSourceType
- FieldType
of source fieldtargetType
- FieldType
of target fieldAtlasConversionException
- conversion failedconvertType(Object, String, Class, String)
Object convertType(Object sourceValue, String sourceFormat, io.atlasmap.v2.FieldType targetType, String targetFormat) throws AtlasConversionException
FieldType
. This method focuses on
conversion between different field types with using AtlasMap field type representative classes.
Use convertType(Object, String, Class, String)
to convert into specific Java class.sourceValue
- source value to convertsourceFormat
- source value formattargetType
- FieldType
of target fieldtargetFormat
- target value formatAtlasConversionException
- conversion failedconvertType(Object, String, Class, String)
Object convertType(Object sourceValue, String sourceFormat, Class<?> targetType, String targetFormat) throws AtlasConversionException
Class
regardless of AtlasMap FieldType
.sourceValue
- source value to convertsourceFormat
- source value formattargetType
- Class
of target valuetargetFormat
- target value formatAtlasConversionException
- conversion failedconvertType(Object, FieldType, FieldType)
Class<?> classFromFieldType(io.atlasmap.v2.FieldType fieldType)
io.atlasmap.v2.FieldType fieldTypeFromClass(Class<?> clazz)
io.atlasmap.v2.FieldType fieldTypeFromClass(String className)
Boolean isPrimitive(io.atlasmap.v2.FieldType fieldType)
Boolean isAssignableFieldType(io.atlasmap.v2.FieldType source, io.atlasmap.v2.FieldType target)
Copyright © 2018 JBoss by Red Hat. All rights reserved.