public class MetaPropertyPath extends java.lang.Object implements java.io.Serializable, Instance.BeanPropertyPath
Constructor and Description |
---|
MetaPropertyPath(MetaClass metaClass,
MetaProperty... metaProperties) |
MetaPropertyPath(MetaPropertyPath parentPath,
MetaProperty... addProperties) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
java.lang.String |
getFirstPropertyName() |
MetaClass |
getMetaClass()
MetaClass which is the path origin
|
MetaProperty[] |
getMetaProperties()
Array of MetaProperties between the originating MetaClass and target MetaProperty
|
MetaProperty |
getMetaProperty()
Target MetaProperty
|
java.lang.String[] |
getPath()
Path as String array
|
protected static java.lang.String |
getPathString(java.lang.String[] path) |
java.lang.String[] |
getPropertyNames() |
Range |
getRange()
Range of the target MetaProperty
|
java.lang.Class |
getRangeJavaClass()
Java class of the target MetaProperty range
|
int |
hashCode() |
boolean |
isDirectProperty() |
int |
length()
Length of the path, i.e.
|
boolean |
startsWith(MetaPropertyPath other)
Tests if this path is a nested property of the given path.
|
java.lang.String |
toPathString()
Returns the path as dot-separated string.
|
java.lang.String |
toString() |
public MetaPropertyPath(MetaClass metaClass, MetaProperty... metaProperties)
public MetaPropertyPath(MetaPropertyPath parentPath, MetaProperty... addProperties)
protected static java.lang.String getPathString(java.lang.String[] path)
public MetaClass getMetaClass()
public MetaProperty[] getMetaProperties()
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public Range getRange()
public java.lang.Class getRangeJavaClass()
public java.lang.String[] getPath()
public MetaProperty getMetaProperty()
public boolean startsWith(MetaPropertyPath other)
public java.lang.String toPathString()
public int length()
public java.lang.String toString()
toString
in class java.lang.Object
public java.lang.String[] getPropertyNames()
getPropertyNames
in interface Instance.BeanPropertyPath
public java.lang.String getFirstPropertyName()
getFirstPropertyName
in interface Instance.BeanPropertyPath
public boolean isDirectProperty()
isDirectProperty
in interface Instance.BeanPropertyPath