|
||||||||||
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 |
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 Uri
obj
- Object to test
public java.lang.String toString()
Uri
toString
in class Uri
public java.lang.String getUuri()
public int hashCode()
hashCode
in class Uri
public Scope getScope()
Uri
getScope
in class Uri
public Store getStore()
Uri
getStore
in class Uri
public SlideToken getToken()
Uri
getToken
in class Uri
public Namespace getNamespace()
Uri
getNamespace
in class Uri
public boolean isStoreRoot()
Uri
isStoreRoot
in class Uri
public void setUri(java.lang.String uri)
Uri
setUri
in class Uri
uri
- New uripublic java.util.Enumeration getScopes()
Uri
getScopes
in class Uri
public void setToken(SlideToken token)
Uri
setToken
in class Uri
token
- New Slide tokenpublic Uri getParentUri()
Uri
getParentUri
in class Uri
public void invalidateServices()
Uri
invalidateServices
in class Uri
public void reconnectServices()
Uri
reconnectServices
in class Uri
public java.lang.String getRelative()
Uri
getRelative
in class Uri
public Uri cloneObject()
cloneObject
in class Uri
public boolean isParent(Uri uri)
Uri
isParent
in class Uri
uri
- Uri to test
public java.lang.String asXml()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |