Package io.jmix.search.utils
Class PropertyTools
java.lang.Object
io.jmix.search.utils.PropertyTools
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected MetaPropertyPath
createPropertyPath
(MetaPropertyPath parentPath, MetaProperty property) protected List<MetaProperty>
findLocalPropertiesByPattern
(MetaClass metaClass, Pattern pattern) findPropertiesByPath
(MetaClass metaClass, String pathString) Finds properties of entity by provided path string.protected Map<String,
MetaPropertyPath> findPropertiesByPathItems
(MetaClass metaClass, String[] pathItems, MetaPropertyPath parentPath) protected Map<String,
MetaPropertyPath> findPropertiesByWildcardPath
(MetaClass metaClass, String path) protected boolean
hasWildcard
(String path) protected boolean
isInverseProperty
(MetaProperty propertyToCheck, MetaPropertyPath parentPath) protected boolean
isReferenceProperty
(MetaProperty metaProperty) protected boolean
isSearchableProperty
(MetaProperty property)
-
Field Details
-
metadataTools
-
metadata
-
-
Constructor Details
-
PropertyTools
public PropertyTools()
-
-
Method Details
-
findPropertiesByPath
Finds properties of entity by provided path string. Path string supports wildcard '*'.- Parameters:
metaClass
- entity meta classpathString
- 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
-
findLocalPropertiesByPattern
-
isSearchableProperty
-
isReferenceProperty
-
hasWildcard
-
isInverseProperty
-