public interface Location
The format of the location string is specific to the repository that stores
the persistent resource. A URL, a UNC filename, and an NFS filename
are examples of possible formats for a location string. Locations are
constructed by the Provider.location(java.lang.String)
method.
All methods in this interface are implemented in-memory only, i.e., no access to the repository is required.
Modifier and Type | Method and Description |
---|---|
Location |
child(String bindingName)
Return the location of the bound member with the specified
bindingName in the folder at this Location.
|
String |
lastSegment()
Get the last segment of this Location.
|
Location |
parent()
Return the location of a folder that has the resource at
this Location as a bound member whose binding name is
the lastSegment of this Location.
|
String |
string()
Return a string value for this Location.
|
Location child(String bindingName) throws WvcmException
bindingName
- the name of the bound member.
The last segment of the returned location must be bindingName.
The bindingName commonly is not allowed to contain the "/" character.WvcmException
- if this Location is not one that can have bound members,
or if the bindingName is not syntactically valid.String lastSegment()
parent()
is null
, the lastSegment()
is null
.
In general, if loc
is a Location that has a parent,
loc.parent().child(loc.lastSegment()).equals(loc)
.Location parent()
null
is returned.String string()
Provider.location(java.lang.String)
method
is the inverse of this method, i.e.,
location.equals(Provider.location(location.string()))
.Copyright © IBM 2016. All rights reserved.