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
ConstructorsConstructorDescriptionMetaPropertyPath(MetaClass metaClass, MetaProperty... metaProperties) MetaPropertyPath(MetaPropertyPath parentPath, MetaProperty... addProperties) -
Method Summary
Modifier and TypeMethodDescriptionbooleanMetaClass which is the path originArray of MetaProperties between the originating MetaClass and target MetaPropertyTarget MetaPropertyString[]getPath()Path as String arrayprotected static StringgetPathString(String[] path) String[]getRange()Range of the target MetaPropertyJava class of the target MetaProperty rangeinthashCode()booleanintlength()Length of the path, i.e.booleanstartsWith(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:
getPropertyNamesin interfacePropertyPath- Returns:
- names of properties
-
getFirstPropertyName
- Specified by:
getFirstPropertyNamein interfacePropertyPath- Returns:
- first property name
-
isDirectProperty
public boolean isDirectProperty()- Specified by:
isDirectPropertyin interfacePropertyPath- Returns:
- true if property path represents single property name
-