Package io.jmix.core.metamodel.model
Class MetaPropertyPath
java.lang.Object
io.jmix.core.metamodel.model.MetaPropertyPath
- All Implemented Interfaces:
PropertyPath
,Serializable
Object representing a relative path to a property from certain MetaClass
- See Also:
-
Constructor Summary
ConstructorDescriptionMetaPropertyPath
(MetaClass metaClass, MetaProperty... metaProperties) MetaPropertyPath
(MetaPropertyPath parentPath, MetaProperty... addProperties) -
Method Summary
Modifier and TypeMethodDescriptionboolean
MetaClass which is the path originArray of MetaProperties between the originating MetaClass and target MetaPropertyTarget MetaPropertyString[]
getPath()
Path as String arrayprotected static String
getPathString
(String[] path) String[]
getRange()
Range of the target MetaPropertyJava class of the target MetaProperty rangeint
hashCode()
boolean
int
length()
Length of the path, i.e.boolean
startsWith
(MetaPropertyPath other) Tests if this path is a nested property of the given path.Returns the path as dot-separated string.toString()
-
Constructor Details
-
MetaPropertyPath
-
MetaPropertyPath
-
-
Method Details
-
getPathString
-
getMetaClass
MetaClass which is the path origin -
getMetaProperties
Array of MetaProperties between the originating MetaClass and target MetaProperty -
equals
-
hashCode
public int hashCode() -
getRange
Range of the target MetaProperty -
getRangeJavaClass
Java class of the target MetaProperty range -
getPath
Path as String array -
getMetaProperty
Target MetaProperty -
startsWith
Tests if this path is a nested property of the given path. -
toPathString
Returns the path as dot-separated string. -
length
public int length()Length of the path, i.e. how many properties it contains. -
toString
-
getPropertyNames
- Specified by:
getPropertyNames
in interfacePropertyPath
- Returns:
- names of properties
-
getFirstPropertyName
- Specified by:
getFirstPropertyName
in interfacePropertyPath
- Returns:
- first property name
-
isDirectProperty
public boolean isDirectProperty()- Specified by:
isDirectProperty
in interfacePropertyPath
- Returns:
- true if property path represents single property name
-