Class AbstractPropertyIntrospector
java.lang.Object
io.jmix.aitools.dataload.introspection.introspector.AbstractPropertyIntrospector
- All Implemented Interfaces:
MetaPropertyIntrospector
- Direct Known Subclasses:
DatatypePropertyIntrospector,EmbeddedPropertyIntrospector,EnumPropertyIntrospector,RelationPropertyIntrospector
public abstract class AbstractPropertyIntrospector
extends Object
implements MetaPropertyIntrospector
Base class for
MetaPropertyIntrospector implementations.-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@Nullable StringgetComment(MetaProperty property) Returns the value of the property's@Commentannotation.getEntityLocalizedNames(MetaClass metaClass) Returns the entity captions across all configured locales, skipping locales where the caption falls back to the raw entity name.getMandatory(MetaProperty property) Returns whether the property is mandatory.getPersistent(MetaProperty property) Returns whether the property is persistent (stored in the database).protected StringgetPropertyCaptionFallbackKey(MetaProperty property) getPropertyLocalizedNames(MetaProperty property) Returns the property captions across all configured locales, skipping locales where the caption falls back to the raw property name.getPropertyType(MetaProperty property) Returns the lower-cased Jmix property type name (for example"datatype"or"enum").protected booleanisEntityCaptionFallback(MetaClass metaClass, String localizedName) booleanisIdentifier(MetaProperty property) Returns whether the property is the entity's primary key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.jmix.aitools.dataload.introspection.introspector.MetaPropertyIntrospector
introspect, supports
-
Field Details
-
messageTools
-
metadataTools
-
-
Constructor Details
-
AbstractPropertyIntrospector
public AbstractPropertyIntrospector()
-
-
Method Details
-
getPropertyLocalizedNames
Returns the property captions across all configured locales, skipping locales where the caption falls back to the raw property name.- Parameters:
property- property to read captions for- Returns:
- localized property names
-
getEntityLocalizedNames
Returns the entity captions across all configured locales, skipping locales where the caption falls back to the raw entity name.- Parameters:
metaClass- entity meta-class to read captions for- Returns:
- localized entity names
-
getComment
Returns the value of the property's@Commentannotation.- Parameters:
property- property to read the comment for- Returns:
- comment text, or
nullif the property is not annotated
-
getPropertyType
Returns the lower-cased Jmix property type name (for example"datatype"or"enum").- Parameters:
property- property to read the type for- Returns:
- property type name
-
isIdentifier
Returns whether the property is the entity's primary key.- Parameters:
property- property to check- Returns:
trueif the property is the entity's primary key
-
getPersistent
Returns whether the property is persistent (stored in the database).- Parameters:
property- property to check- Returns:
trueif the property is persistent
-
getMandatory
Returns whether the property is mandatory.- Parameters:
property- property to check- Returns:
trueif the property is mandatory
-
isEntityCaptionFallback
-
getPropertyCaptionFallbackKey
-