- All Known Subinterfaces:
PropertyPath<V>,TypedPropertyPath<V>,WritablePath
public interface ReadablePath
- Since:
- 1.0.0
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interfaceInterface for a builder to a path. -
Method Summary
Modifier and TypeMethodDescriptiondefault ReadablePathdefault Stringpath()This method is not a regular getter to avoid conflicts with custom properties of beans implementing this interface.default Stringpath(boolean fixed) default voidpath(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-trueto prefer staticsegmentsif available,falseotherwise.- 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.PathBuilderwhere toaddthe segments of all properties from the root (recursively viaparentPath()to this object).
-
parentPath
- Returns:
- the parent of this path or
nullif this is the root property that has no parent.
-