Class PropertyTools

java.lang.Object
io.jmix.search.utils.PropertyTools

@Component("search_PropertyTools") public class PropertyTools extends Object
  • Field Details

    • metadataTools

      @Autowired protected MetadataTools metadataTools
    • metadata

      @Autowired protected Metadata metadata
  • Constructor Details

    • PropertyTools

      public PropertyTools()
  • Method Details

    • findPropertiesByPath

      public Map<String,MetaPropertyPath> findPropertiesByPath(MetaClass metaClass, String pathString)
      Finds properties of entity by provided path string. Path string supports wildcard '*'.
      Parameters:
      metaClass - entity metaclass
      pathString - path to property to find
      Returns:
      map with effective property path as a key and property itself as a value
    • findPropertiesByWildcardPath

      protected Map<String,MetaPropertyPath> findPropertiesByWildcardPath(MetaClass metaClass, String path)
    • findPropertiesByPathItems

      protected Map<String,MetaPropertyPath> findPropertiesByPathItems(MetaClass metaClass, String[] pathItems, MetaPropertyPath parentPath)
    • createPropertyPath

      protected MetaPropertyPath createPropertyPath(MetaPropertyPath parentPath, MetaProperty property)
    • findLocalPropertiesByPattern

      protected List<MetaProperty> findLocalPropertiesByPattern(MetaClass metaClass, Pattern pattern)
    • isPersistentPropertyPath

      protected boolean isPersistentPropertyPath(MetaPropertyPath propertyPath)
    • isPersistentProperty

      protected boolean isPersistentProperty(MetaProperty property)
    • isPropertySuitableToWildcardDeclaration

      protected boolean isPropertySuitableToWildcardDeclaration(MetaProperty property)
    • isPropertyPathSuitableToDirectDeclaration

      protected boolean isPropertyPathSuitableToDirectDeclaration(MetaPropertyPath propertyPath)
    • isPropertySuitableToDirectDeclaration

      protected boolean isPropertySuitableToDirectDeclaration(MetaProperty property)
    • isReferenceProperty

      protected boolean isReferenceProperty(MetaProperty property)
    • isSystemProperty

      protected boolean isSystemProperty(MetaProperty property)
    • hasWildcard

      protected boolean hasWildcard(String path)
    • isInverseProperty

      protected boolean isInverseProperty(MetaProperty propertyToCheck, MetaPropertyPath parentPath)