Package jakarta.validation
Interface Path
-
- All Superinterfaces:
java.lang.Iterable<Path.Node>
public interface Path extends java.lang.Iterable<Path.Node>
Represents the navigation path from an object to another in an object graph. Each path element is represented by aNode.The path corresponds to the succession of nodes in the order they are returned by the
Iterator.- Author:
- Emmanuel Bernard, Gunnar Morling, Guillaume Smet
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfacePath.BeanNodeNode representing a bean.static interfacePath.ConstructorNodeNode representing a constructor.static interfacePath.ContainerElementNodeNode representing an element in a generic container such asOptional,ListorMap.static interfacePath.CrossParameterNodeNode representing the element holding cross-parameter constraints of a method or constructor.static interfacePath.MethodNodeNode representing a method.static interfacePath.NodeRepresents an element of a navigation path.static interfacePath.ParameterNodeNode representing a parameter of a method or constructor.static interfacePath.PropertyNodeNode representing a property.static interfacePath.ReturnValueNodeNode representing the return value of a method or constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.StringtoString()Returns a human-readable representation of this path.
-
-
-
Method Detail
-
toString
java.lang.String toString()
Returns a human-readable representation of this path.Clients should not rely on any specific structure of the returned value. Instead they should iterate through the path nodes and obtain any required information by calling the methods on
Path.Nodeand its sub-types.- Overrides:
toStringin classjava.lang.Object- Returns:
- a human-readable representation of this path
- Since:
- 2.0
-
-