L - the type of the protocol specific location, typically a subclass of NodeLocationpublic interface LocationResolver<L>
| Modifier and Type | Method and Description |
|---|---|
default AttributeLocation<L> |
absolutize(L base,
AttributeLocation<L> attributeLocation) |
L |
absolutize(L base,
L location)
Resolves the given
location relative to the given base and returns the resolved location. |
String |
applyTemplate(String nameTemplate,
L location,
String endpointName) |
String |
findWildcardMatch(L multiTargetLocation,
L singleLocation)
Given a multi-target location (e.g.
|
boolean |
isMultiTarget(L location)
Returns true if the location could refer to more than one target.
|
boolean |
isParent(L parent,
L child)
Returns true if the child is anywhere under the parent.
|
boolean |
matches(L query,
L location) |
String findWildcardMatch(L multiTargetLocation, L singleLocation) throws ProtocolException
multiTargetLocation - a query that was used to find the given singleLocationsingleLocation - a single absolute location that has the multiTargetLocation wildcard resolvedProtocolException - if the single location doesn't have any matching portionboolean isMultiTarget(L location)
location - the location to testtrue if location can refer to multiple targets,
false if it refers to a single locationL absolutize(L base, L location)
location 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.base - the base location to resolve location againstlocation - the location to resolvedefault AttributeLocation<L> absolutize(L base, AttributeLocation<L> attributeLocation)
boolean isParent(L parent, L child)
parent - parent resourcechild - child resourceCopyright © 2015–2016 Red Hat, Inc.. All rights reserved.