Class Location
java.lang.Object
uk.org.webcompere.modelassert.json.condition.tree.Location
Describes the JSON pointer up to a position in the tree
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Location
public Location()An empty location
-
-
Method Details
-
child
The location with a child- Parameters:
child- the child to add- Returns:
- a new
Locationwith the child attached
-
peelOffFirst
Slice the front off the location, and produce the rest of the path- Returns:
- the remainder of the location
-
toString
-
isEmpty
public boolean isEmpty()Is there nothing left of the path - are we at the root? or have we peeled off all the first- Returns:
- true if there's no path in here
-
first
Get the first part of the path- Returns:
- the first part of the path or
nullif there isn't any
-