Class CelTypeMapper
java.lang.Object
com.evolveum.midpoint.model.common.expression.script.mel.CelTypeMapper
- All Implemented Interfaces:
dev.cel.common.types.CelTypeProvider
Maintains mapping of XSD types (qnames) and Java types to CEL types
- Author:
- Radovan Semancik
-
Nested Class Summary
Nested classes/interfaces inherited from interface dev.cel.common.types.CelTypeProvider
dev.cel.common.types.CelTypeProvider.CombinedCelTypeProvider -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final dev.cel.common.types.CelType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionOptional<dev.cel.common.types.CelType>static QNamegetCelToXsdMapping(dev.cel.common.types.CelType celType) static @Nullable dev.cel.common.types.CelTypegetCelType(@NotNull Class<?> javaType) static @Nullable dev.cel.common.types.CelTypegetCelType(@NotNull QName xsdType) static dev.cel.common.types.CelTypegetXsdToCelMapping(QName xsdType) static booleanisCellNull(@Nullable Object object) static @NotNull dev.cel.common.types.CelTypetoCelNullableType(@NotNull TypedValue<?> typedValue) static @NotNull dev.cel.common.types.CelTypetoCelType(@NotNull ItemDefinition<?> def) static @NotNull dev.cel.common.types.CelTypetoCelType(@NotNull TypedValue<?> typedValue) static dev.cel.common.types.CelTypestatic @NotNull dev.cel.common.types.CelTypestatic ObjecttoCelValue(Object javaValue) static com.google.protobuf.DurationtoGoogleDuration(Duration xmlDuration) static InstanttoInstant(XMLGregorianCalendar xmlCal) static @NotNull Class<?>toJavaType(dev.cel.common.types.CelType celType) static @Nullable ObjecttoJavaValue(@Nullable dev.cel.common.values.CelValue celValue) static @Nullable ObjecttoJavaValue(@Nullable Object celValue) toJavaValueMap(Map<K, Object> celArgs) static Object[]toJavaValues(Object[] args) static List<?>toJavaValues(Collection<?> args) static <IV extends PrismValue,ID extends ItemDefinition<?>>
ObjecttoListMapValue(Item<IV, ID> item) static longstatic @NotNull DurationtoXmlDuration(com.google.protobuf.Duration gDurantion) static @NotNull XMLGregorianCalendartoXmlGregorianCalendar(@NotNull Instant instant) static @NotNull QNametoXsdType(dev.cel.common.types.CelType celType) com.google.common.collect.ImmutableCollection<dev.cel.common.types.CelType>types()
-
Field Details
-
PROTECTED_STRING_CEL_TYPE
public static final dev.cel.common.types.CelType PROTECTED_STRING_CEL_TYPE
-
-
Constructor Details
-
CelTypeMapper
-
-
Method Details
-
types
public com.google.common.collect.ImmutableCollection<dev.cel.common.types.CelType> types()- Specified by:
typesin interfacedev.cel.common.types.CelTypeProvider
-
findType
- Specified by:
findTypein interfacedev.cel.common.types.CelTypeProvider
-
toXsdType
-
getCelToXsdMapping
-
getXsdToCelMapping
-
toCelType
@NotNull public static @NotNull dev.cel.common.types.CelType toCelType(@NotNull @NotNull QName xsdType) -
toCelType
-
toCelType
@NotNull public static @NotNull dev.cel.common.types.CelType toCelType(@NotNull @NotNull ItemDefinition<?> def) -
toCelType
@NotNull public static @NotNull dev.cel.common.types.CelType toCelType(@NotNull @NotNull TypedValue<?> typedValue) -
toCelNullableType
@NotNull public static @NotNull dev.cel.common.types.CelType toCelNullableType(@NotNull @NotNull TypedValue<?> typedValue) -
getCelType
@Nullable public static @Nullable dev.cel.common.types.CelType getCelType(@NotNull @NotNull QName xsdType) -
getCelType
@Nullable public static @Nullable dev.cel.common.types.CelType getCelType(@NotNull @NotNull Class<?> javaType) -
toJavaType
-
toJavaValues
-
toJavaValues
-
toJavaValueMap
-
toJavaValue
-
toJavaValue
@Nullable public static @Nullable Object toJavaValue(@Nullable @Nullable dev.cel.common.values.CelValue celValue) -
toCelValue
-
isCellNull
-
toListMapValue
public static <IV extends PrismValue,ID extends ItemDefinition<?>> Object toListMapValue(Item<IV, ID> item) -
toMillis
-
toGoogleDuration
-
toInstant
-
toXmlDuration
@NotNull public static @NotNull Duration toXmlDuration(@NotNull com.google.protobuf.Duration gDurantion) -
toXmlGregorianCalendar
@NotNull public static @NotNull XMLGregorianCalendar toXmlGregorianCalendar(@NotNull @NotNull Instant instant)
-