public class PropertyPath extends Object implements Iterable<PropertyPath>
PropertyPath
of a domain class.Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
static PropertyPath |
from(String source,
Class<?> type)
Extracts the
PropertyPath chain from the given source String and type. |
static PropertyPath |
from(String source,
TypeInformation<?> type)
|
PropertyPath |
getLeafProperty()
Returns the leaf property of the
PropertyPath . |
TypeInformation<?> |
getOwningType()
Returns the owning type of the
PropertyPath . |
String |
getSegment()
Returns the name of the
PropertyPath . |
Class<?> |
getType()
|
int |
hashCode() |
boolean |
hasNext()
Returns whether there is a nested
PropertyPath . |
boolean |
isCollection()
Returns whether the
PropertyPath is actually a collection. |
Iterator<PropertyPath> |
iterator() |
PropertyPath |
next()
Returns the next nested
PropertyPath . |
String |
toDotPath()
Returns the
PropertyPath in dot notation. |
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
forEach, spliterator
public TypeInformation<?> getOwningType()
PropertyPath
.public String getSegment()
PropertyPath
.public PropertyPath getLeafProperty()
PropertyPath
.public Class<?> getType()
Iterable
or the value type of a Map
if the property is one.public PropertyPath next()
PropertyPath
.PropertyPath
or null if no nested PropertyPath
available.hasNext()
public boolean hasNext()
PropertyPath
. If this returns true you can expect
next()
to return a non- null value.public String toDotPath()
PropertyPath
in dot notation.public boolean isCollection()
PropertyPath
is actually a collection.public Iterator<PropertyPath> iterator()
iterator
in interface Iterable<PropertyPath>
public static PropertyPath from(String source, Class<?> type)
PropertyPath
chain from the given source String
and type.source
- type
- public static PropertyPath from(String source, TypeInformation<?> type)
source
- must not be null.type
- Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.