public class PropertyPath extends Object implements Streamable<PropertyPath>
PropertyPath of a domain class.| Modifier and Type | Method and Description |
|---|---|
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()
|
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitempty, filter, flatMap, map, of, of, of, streamforEach, spliteratorpublic 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.@Nullable 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)
PropertyPath chain from the given source String and TypeInformation. SPLITTER by default and SPLITTER_FOR_QUOTED for quoted
literals.source - must not be null.type - Copyright © 2011–2017 Pivotal Software, Inc.. All rights reserved.