|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.util.StringTokenizer
org.apache.slide.common.UriTokenizer
Tokenizes a scope.
This tokenizer derives from StringTokenizer and tokenizes an Uri. This object is used for browsing down the main tree from the root element during retrieval and create operations. Ex : the uri /foo/bar/bar.txt will be tokenized in the following tokens :
Field Summary | |
(package private) Namespace |
namespace
Associated namespace. |
(package private) int |
pos
Position in the uri vector. |
(package private) SlideToken |
slideToken
|
(package private) java.util.Vector |
uris
Vector of all the scopes matched by the associated Uri. |
Constructor Summary | |
UriTokenizer(Namespace namespace,
Scope scope)
Constructor. |
|
UriTokenizer(Namespace namespace,
java.lang.String uri)
Constructor. |
|
UriTokenizer(SlideToken slideToken,
Namespace namespace,
java.lang.String uri)
Constructor. |
Method Summary | |
Uri |
getParentUri()
Get the parent uri. |
boolean |
hasMoreElements()
True if the UriTokenizer contains additional scopes. |
boolean |
hasMoreTokens()
True if the UriTokenizer contains additional scopes. |
java.lang.Object |
nextElement()
Returns the next Uri as an Object. |
java.lang.String |
nextToken()
Returns the next Uri as a String object. |
java.lang.String |
nextToken(java.lang.String delim)
Returns the next Uri as an Uri object. |
Uri |
nextUri()
Returns the next Uri as an Uri object. |
Methods inherited from class java.util.StringTokenizer |
countTokens |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
java.util.Vector uris
int pos
Namespace namespace
SlideToken slideToken
Constructor Detail |
public UriTokenizer(SlideToken slideToken, Namespace namespace, java.lang.String uri)
namespace
- uri
- public UriTokenizer(Namespace namespace, java.lang.String uri)
namespace
- uri
- public UriTokenizer(Namespace namespace, Scope scope)
namespace
- scope
- Method Detail |
public Uri getParentUri()
public boolean hasMoreElements()
public boolean hasMoreTokens()
public java.lang.Object nextElement() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.lang.String nextToken() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public Uri nextUri() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.lang.String nextToken(java.lang.String delim) throws java.util.NoSuchElementException
delim
-
java.util.NoSuchElementException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |