Class Location
java.lang.Object
com.yahoo.documentapi.messagebus.systemstate.rule.Location
- Author:
- Simon Thoresen Hult
-
Constructor Summary
ConstructorDescriptionLocation()
Constructs a new location with no items.Constructs a new location as a copy of another.Constructs a new location based on a working directory and a list of items.Constructs a new location based on a location string.Constructs a new location based on a list of items. -
Method Summary
-
Constructor Details
-
Location
public Location()Constructs a new location with no items. -
Location
Constructs a new location based on a location string.- Parameters:
loc
- The location string to parse.
-
Location
Constructs a new location based on a list of items.- Parameters:
items
- The components that make up this location.
-
Location
Constructs a new location as a copy of another.- Parameters:
loc
- The location to copy.
-
Location
Constructs a new location based on a working directory and a list of items.- Parameters:
pwd
- The path of the working directory.items
- The components that make up this location.
-
-
Method Details
-
getNext
Returns a location object that represents the "next" step along this location path. This means removing the first elements of this location's items and returning a new location for this sublist.- Returns:
- The next location along this path.
-
getItems
Returns the components of this location.- Returns:
- The component array.
-
toString
-