|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.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) 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. |
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 |
|
Field Detail |
java.util.Vector uris
int pos
Namespace namespace
Constructor Detail |
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()
hasMoreElements
in class java.util.StringTokenizer
public boolean hasMoreTokens()
hasMoreTokens
in class java.util.StringTokenizer
public java.lang.Object nextElement() throws java.util.NoSuchElementException
nextElement
in class java.util.StringTokenizer
java.util.NoSuchElementException
- public java.lang.String nextToken() throws java.util.NoSuchElementException
nextToken
in class java.util.StringTokenizer
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
nextToken
in class java.util.StringTokenizer
delim
- java.util.NoSuchElementException
-
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |