|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.slide.common.Uri
org.apache.slide.store.ResourceId
Uniquely identifies a resource. The main operation with ResourceIds is equals. Immutable. Technically, ResourceId extends Uri, but the only reason to do so is compatibility with existing store interfaces. Logically, a ResourceId is *not* an Uri: Uris have a structure, resourceId have not. Consequently, almost all Uri methods in this class throw UnsupportedOperation exceptions.
| Field Summary | |
static java.lang.String |
RESOURCE_ID_SCHEMA
|
| Fields inherited from class org.apache.slide.common.Uri |
namespace, scope, scopes, store, token, uri |
| Method Summary | |
java.lang.String |
asXml()
|
Uri |
cloneObject()
Do not clone ResourceId's, use aliasing. |
static ResourceId |
create(Uri uri,
java.lang.String uuri)
|
static ResourceId |
createNew(Uri uri)
|
boolean |
equals(java.lang.Object obj)
Tests equivalence of two ResourceIds. |
Namespace |
getNamespace()
Return the namespace to which this Uri belongs. |
Uri |
getParentUri()
Get the parent uri. |
java.lang.String |
getRelative()
Get the relative path to the matched scope. |
Scope |
getScope()
Scope accessor. |
java.util.Enumeration |
getScopes()
Returns the scopes tokenized by the ScopeTokenizer associated with this Uri object. |
Store |
getStore()
Store accessor. |
SlideToken |
getToken()
Token accessor. |
java.lang.String |
getUuri()
Intentionally does not return anything like the origianl uri. |
int |
hashCode()
Hash code. |
void |
invalidateServices()
Invalidate the current Services and PK. |
boolean |
isParent(Uri uri)
Tests if the given uri represents a parent object. |
boolean |
isStoreRoot()
Test whether this Uri is equivalent to its scope |
protected void |
parseUri(java.lang.String uri)
Does nothing, overwrited the Uri.parseUri(String) method to
avoid its unrequired overhead. |
protected void |
parseUuri(java.lang.String uuri)
This function is called by the constructor and when uri is changed. |
void |
reconnectServices()
Reconnect the Uri services. |
void |
setToken(SlideToken token)
Token mutator. |
void |
setUri(java.lang.String uri)
Uri mutator. |
java.lang.String |
toString()
String representation of the uri object. |
| Methods inherited from class org.apache.slide.common.Uri |
getRoot |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static java.lang.String RESOURCE_ID_SCHEMA
| Method Detail |
public static ResourceId createNew(Uri uri)
public static ResourceId create(Uri uri,
java.lang.String uuri)
public boolean equals(java.lang.Object obj)
equals in class Uriobj - Object to test
public java.lang.String toString()
Uri
toString in class Uripublic java.lang.String getUuri()
public int hashCode()
hashCode in class Uripublic Scope getScope()
Uri
getScope in class Uripublic Store getStore()
Uri
getStore in class Uripublic SlideToken getToken()
Uri
getToken in class Uripublic Namespace getNamespace()
Uri
getNamespace in class Uripublic boolean isStoreRoot()
Uri
isStoreRoot in class Uripublic void setUri(java.lang.String uri)
Uri
setUri in class Uriuri - New uripublic java.util.Enumeration getScopes()
Uri
getScopes in class Uripublic void setToken(SlideToken token)
Uri
setToken in class Uritoken - New Slide tokenpublic Uri getParentUri()
Uri
getParentUri in class Uripublic void invalidateServices()
Uri
invalidateServices in class Uripublic void reconnectServices()
Uri
reconnectServices in class Uripublic java.lang.String getRelative()
Uri
getRelative in class Uripublic Uri cloneObject()
cloneObject in class Uripublic boolean isParent(Uri uri)
Uri
isParent in class Uriuri - Uri to test
public java.lang.String asXml()
protected void parseUuri(java.lang.String uuri)
protected void parseUri(java.lang.String uri)
Uri.parseUri(String) method to
avoid its unrequired overhead.
parseUri in class Uriuri - Uri to parse
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||