Package io.jmix.search.utils
Class PropertyTools
java.lang.Object
io.jmix.search.utils.PropertyTools
- 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionprotected MetaPropertyPathcreatePropertyPath(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 booleanhasWildcard(String path) protected booleanisInverseProperty(MetaProperty propertyToCheck, MetaPropertyPath parentPath) protected booleanisReferenceProperty(MetaProperty metaProperty) protected booleanisSearchableProperty(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
 
 -