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
isPersistentProperty
(MetaProperty property) protected boolean
isPersistentPropertyPath
(MetaPropertyPath propertyPath) protected boolean
isPropertyPathSuitableToDirectDeclaration
(MetaPropertyPath propertyPath) protected boolean
protected boolean
protected boolean
isReferenceProperty
(MetaProperty property) protected boolean
isSecretProperty
(MetaProperty property) protected boolean
isSystemLevelProperty
(MetaProperty property) protected boolean
isSystemProperty
(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 metaclasspathString
- 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
-
isPersistentPropertyPath
-
isPersistentProperty
-
isPropertySuitableToWildcardDeclaration
-
isPropertyPathSuitableToDirectDeclaration
-
isPropertySuitableToDirectDeclaration
-
isReferenceProperty
-
isSystemProperty
-
isSystemLevelProperty
-
isSecretProperty
-
hasWildcard
-
isInverseProperty
-