public class ValueConverter
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static boolean |
canConvert(int sourceType,
int targetType) |
static PropertyValue |
convert(@NotNull PropertyValue value,
int targetType,
@Nullable NamePathMapper mapper)
Converts the given value to a value of the specified target type.
|
public static boolean canConvert(int sourceType, int targetType)
public static PropertyValue convert(@NotNull @NotNull PropertyValue value, int targetType, @Nullable @Nullable NamePathMapper mapper)
value
- the value to converttargetType
- the target property typemapper
- the name mapper or null
if no name/path mapping is required.java.lang.IllegalArgumentException
- if mapping is illegalCopyright © 2012–2022 The Apache Software Foundation. All rights reserved.