- All Known Subinterfaces:
PropertyPath<V>
,TypedPropertyPath<V>
,WritablePath
- All Known Implementing Classes:
SimplePath
public interface ReadablePath
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Interface for a builder to a path. -
Method Summary
Modifier and TypeMethodDescriptiondefault ReadablePath
default String
path()
This method is not a regular getter to avoid conflicts with custom properties of beans implementing this interface.default String
path
(boolean fixed) default void
path
(ReadablePath.PathBuilder builder) This method is not a regular getter to avoid conflicts with custom properties of beans implementing this interface.
-
Method Details
-
pathSegment
String pathSegment()This method is not a regular getter to avoid conflicts with custom properties of beans implementing this interface.- Returns:
- the
path
-segment of this object. Should be a single property name (e.g. "MyProperty") or alias (e.g. "entity").
-
path
This method is not a regular getter to avoid conflicts with custom properties of beans implementing this interface.- Returns:
- the path of this object. May be a single property name (e.g. "MyProperty") or a dot-separated path (e.g. "MyEntity.MyProperty").
-
path
- Parameters:
fixed
-true
to prefer staticsegments
if available,false
otherwise.- Returns:
- the path of this object. May be a single property name (e.g. "MyProperty") or a dot-separated path (e.g. "MyEntity.MyProperty").
-
path
- Parameters:
builder
- theReadablePath.PathBuilder
where toadd
the segments of all properties from the root (recursively viaparentPath()
to this object).
-
parentPath
- Returns:
- the parent of this path or
null
if this is the root property that has no parent.
-