| Modifier and Type | Class and Description |
|---|---|
class |
CanonicalPath
A path represents the canonical traversal to an element through the inventory graph.
|
class |
RelativePath
A relative path is used in the API to refer to other entities during association.
|
| Modifier and Type | Method and Description |
|---|---|
Path |
Path.down()
If this path was created by going
up from another path, then this method can be used to go back
down to the previous paths representing some child resource of the resource represented by this path object. |
Path |
Path.down(int distance)
If this path was created by going
up from another path, then this method can be used to go back
down n steps to the previous paths representing some (grand-)child resource of the resource represented by
this path object. |
static Path |
Path.fromPartiallyUntypedString(String path,
CanonicalPath canonicalPathsOrigin,
CanonicalPath relativePathsOrigin,
SegmentType intendedFinalType)
This is mostly meant as a helper to REST API.
|
static Path |
Path.fromPartiallyUntypedString(String path,
Path.TypeProvider typeProvider)
Parses the provided path using the type provider (
Path.TypeProvider)
to figure out the types of segments that don't explicitly mention it. |
static Path |
Path.fromString(String path) |
Path |
Path.Extender.get() |
protected Path |
RelativePath.newInstance(int startIdx,
int endIdx,
List<Path.Segment> segments) |
protected abstract Path |
Path.newInstance(int startIdx,
int endIx,
List<Path.Segment> segments) |
protected abstract Path |
Path.Extender.newPath(int startIdx,
int endIdx,
List<Path.Segment> segments) |
Path |
Path.up()
Returns a path corresponding to the direct ancestor of the resource represented by this path object.
|
Path |
Path.up(int distance)
Returns a path corresponding to the n-th ancestor in the hierarchy.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<? extends Path> |
Path.ascendingIterator() |
Iterator<? extends Path> |
Path.descendingIterator() |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
Path.isParentOf(Path other) |
Copyright © 2014–2016 Red Hat, Inc.. All rights reserved.