|
Project: stp | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface Location
The location of a resource.
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.
| Method Summary | |
|---|---|
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. |
| Method Detail |
|---|
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())).
|
Generated Wed 28-Nov-2012 10:22 AM | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||