|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.slide.common.Uri
This class manages the unique identifier of an object which is manipulated by Slide.
Field Summary | |
protected Namespace |
namespace
Uri's namespace. |
protected int |
pk
FIXME : Probably useless. |
protected Scope |
scope
FIXME : Is that still used ? |
protected ScopeTokenizer |
scopes
Scopes to which this Uri belongs. |
protected Store |
store
Associated Store instance. |
protected SlideToken |
token
Associated SlideToken. |
protected java.lang.String |
uri
uri MUST be unique. |
Constructor Summary | |
Uri(Namespace namespace,
java.lang.String uri)
Constructor. |
|
Uri(SlideToken token,
Namespace namespace,
java.lang.String uri)
Constructor. |
Method Summary | |
Uri |
cloneObject()
Do a fast clone of the Uri object. |
boolean |
equals(java.lang.Object obj)
Tests equivalence of two Uris. |
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. |
static Uri |
getRoot(Uri uri)
Method getRoot |
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. |
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 java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected transient Namespace namespace
protected transient java.lang.String uri
protected transient ScopeTokenizer scopes
protected transient Scope scope
protected transient int pk
protected transient Store store
protected transient SlideToken token
Constructor Detail |
public Uri(Namespace namespace, java.lang.String uri)
namespace
- Namespace associated with this Uriuri
- Uripublic Uri(SlideToken token, Namespace namespace, java.lang.String uri)
token
- Slide tokennamespace
- Namespace associated with this Uriuri
- UriMethod Detail |
public void setUri(java.lang.String uri)
uri
- New uripublic static Uri getRoot(Uri uri)
uri
- an Uri
public Scope getScope()
public java.util.Enumeration getScopes()
public Store getStore()
public SlideToken getToken()
public void setToken(SlideToken token)
token
- New Slide tokenpublic Namespace getNamespace()
public Uri getParentUri()
public void invalidateServices()
public void reconnectServices()
public java.lang.String getRelative()
public boolean isStoreRoot()
public java.lang.String toString()
public int hashCode()
public boolean equals(java.lang.Object obj)
obj
- Object to test
public Uri cloneObject()
public boolean isParent(Uri uri)
uri
- Uri to test
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |