Class EnumPropertyIntrospector
java.lang.Object
io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
io.jmix.aitools.dataload.introspection.introspector.EnumPropertyIntrospector
- All Implemented Interfaces:
MetaPropertyIntrospector
@Component("aitls_EnumPropertyIntrospector")
public class EnumPropertyIntrospector
extends AbstractPropertyIntrospector
Introspects enum properties into an
EnumPropertyDescriptor, including the enum constants
and how they are stored in the database.-
Field Summary
FieldsFields inherited from class io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
messageTools, metadataTools -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected StringgetEnumCaptionFallbackKey(Object enumConstant) protected @Nullable StringgetEnumStorageMode(MetaProperty property) getLocalizedEnumValueNames(Object enumConstant) @Nullable EntityPropertyDescriptorintrospect(MetaProperty property) Introspects aMetaPropertyto an AI-optimized property descriptor.booleansupports(MetaProperty property) Checks if this introspector can handle the givenMetaPropertytype.Methods inherited from class io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
getComment, getEntityLocalizedNames, getMandatory, getPersistent, getPropertyCaptionFallbackKey, getPropertyLocalizedNames, getPropertyType, isEntityCaptionFallback, isIdentifier
-
Field Details
-
messages
-
-
Constructor Details
-
EnumPropertyIntrospector
public EnumPropertyIntrospector()
-
-
Method Details
-
supports
Description copied from interface:MetaPropertyIntrospectorChecks if this introspector can handle the givenMetaPropertytype.- Parameters:
property- theMetaPropertyto check- Returns:
- true if this introspector can handle this property type
-
introspect
Description copied from interface:MetaPropertyIntrospectorIntrospects aMetaPropertyto an AI-optimized property descriptor.- Parameters:
property- theMetaPropertyto introspect- Returns:
EntityPropertyDescriptorrepresentation of this property ornullif this introspector cannot handle it
-
getLocalizedEnumValueNames
-
getEnumCaptionFallbackKey
-
getEnumStorageMode
-