public abstract static class Path.Extender extends Object
CanonicalPath.Builder or RelativePath.Builder provide compile-time-safe canonical path
construction, this class provides the same behavior at runtime, throwing IllegalArgumentExceptions if
the segments being added to a path are invalid in given context.| Modifier and Type | Method and Description |
|---|---|
Path.Extender |
extend(Class<? extends AbstractElement<?,?>> type,
String id) |
Path.Extender |
extend(Collection<Path.Segment> segments) |
Path.Extender |
extend(Path.Segment segment) |
Path |
get() |
protected abstract Path |
newPath(int startIdx,
int endIdx,
List<Path.Segment> segments) |
protected void |
removeLastSegment() |
protected abstract Path newPath(int startIdx, int endIdx, List<Path.Segment> segments)
public Path.Extender extend(Path.Segment segment)
protected void removeLastSegment()
public Path.Extender extend(Collection<Path.Segment> segments)
public Path.Extender extend(Class<? extends AbstractElement<?,?>> type, String id)
public Path get()
Copyright © 2015 Red Hat, Inc.. All rights reserved.