@PublicApi public class ExecutionPath extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
ExecutionPath.PathSegment<T> |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
static ExecutionPath |
fromList(List<?> objects)
This will create an execution path from the list of objects
|
int |
getLevel() |
ExecutionPath |
getPathWithoutListEnd() |
String |
getSegmentName() |
int |
hashCode() |
static ExecutionPath |
parse(String pathString)
Parses an execution path from the provided path string in the format /segment1/segment2[index]/segmentN
|
static ExecutionPath |
rootPath()
All paths start from here
|
ExecutionPath |
segment(int segment)
Takes the current path and adds a new segment to it, returning a new path
|
ExecutionPath |
segment(String segment)
Takes the current path and adds a new segment to it, returning a new path
|
ExecutionPath |
sibling(String siblingField) |
List<Object> |
toList() |
String |
toString() |
public static ExecutionPath rootPath()
public int getLevel()
public ExecutionPath getPathWithoutListEnd()
public String getSegmentName()
public static ExecutionPath parse(String pathString)
pathString
- the path stringpublic static ExecutionPath fromList(List<?> objects)
objects
- the path objectspublic ExecutionPath segment(String segment)
segment
- the string path segment to addpublic ExecutionPath segment(int segment)
segment
- the int path segment to addpublic ExecutionPath sibling(String siblingField)
public String toString()
Copyright © 2019. All rights reserved.