public class DMRLocationResolver extends Object implements LocationResolver<DMRNodeLocation>
LocationResolver| Constructor and Description |
|---|
DMRLocationResolver() |
| Modifier and Type | Method and Description |
|---|---|
DMRNodeLocation |
absolutize(DMRNodeLocation base,
DMRNodeLocation location)
Resolves the given
location relative to the given base and returns the resolved location. |
String |
applyTemplate(String nameTemplate,
DMRNodeLocation location,
String endpointName) |
boolean |
isParent(DMRNodeLocation parent,
DMRNodeLocation child) |
boolean |
matches(DMRNodeLocation query,
DMRNodeLocation location) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitabsolutizepublic DMRNodeLocation absolutize(DMRNodeLocation base, DMRNodeLocation location)
LocationResolverlocation relative to the given base and returns the resolved location. Note
that this method can eventually return location or base if the resolution would yield a Location
equivalent to any of the two.absolutize in interface LocationResolver<DMRNodeLocation>base - the base location to resolve location againstlocation - the location to resolvepublic boolean isParent(DMRNodeLocation parent, DMRNodeLocation child)
isParent in interface LocationResolver<DMRNodeLocation>public boolean matches(DMRNodeLocation query, DMRNodeLocation location)
matches in interface LocationResolver<DMRNodeLocation>public String applyTemplate(String nameTemplate, DMRNodeLocation location, String endpointName)
applyTemplate in interface LocationResolver<DMRNodeLocation>Copyright © 2015 Red Hat, Inc.. All rights reserved.