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 Details

    • messageTools

      @Autowired protected MessageTools messageTools
    • metadataTools

      @Autowired protected MetadataTools metadataTools
  • Constructor Details

    • AbstractPropertyIntrospector

      public AbstractPropertyIntrospector()
  • Method Details

    • getPropertyLocalizedNames

      public List<String> getPropertyLocalizedNames(MetaProperty property)
      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

      public List<String> getEntityLocalizedNames(MetaClass metaClass)
      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

      public @Nullable String getComment(MetaProperty property)
      Returns the value of the property's @Comment annotation.
      Parameters:
      property - property to read the comment for
      Returns:
      comment text, or null if the property is not annotated
    • getPropertyType

      public String getPropertyType(MetaProperty property)
      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

      public boolean isIdentifier(MetaProperty property)
      Returns whether the property is the entity's primary key.
      Parameters:
      property - property to check
      Returns:
      true if the property is the entity's primary key
    • getPersistent

      public Boolean getPersistent(MetaProperty property)
      Returns whether the property is persistent (stored in the database).
      Parameters:
      property - property to check
      Returns:
      true if the property is persistent
    • getMandatory

      public Boolean getMandatory(MetaProperty property)
      Returns whether the property is mandatory.
      Parameters:
      property - property to check
      Returns:
      true if the property is mandatory
    • isEntityCaptionFallback

      protected boolean isEntityCaptionFallback(MetaClass metaClass, String localizedName)
    • getPropertyCaptionFallbackKey

      protected String getPropertyCaptionFallbackKey(MetaProperty property)