|
||||||||||
| 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.ScopeTokenizer
Tokenizes a scope.
This tokenizer derives from StringTokenizer and tokenizes a scope in sub scopes. This object is used for Scope matching in the registry. The API of this object is the same as the StringTokenizer API. Ex : the scope /foo/bar/bar.txt will be tokenized in the following tokens :
StringTokenizer| Constructor Summary | |
ScopeTokenizer(Namespace namespace,
Scope scope)
Constructor. |
|
ScopeTokenizer(Namespace namespace,
java.lang.String uri)
Constructor. |
|
ScopeTokenizer(SlideToken slideToken,
Namespace namespace,
java.lang.String uri)
Constructor. |
|
| Method Summary | |
java.util.Enumeration |
elements()
Returns the scopes. |
Uri |
getParentUri()
Get the parent Uri of the top level scope. |
(package private) java.lang.String |
getUri()
Get the parsed uri. |
boolean |
hasMoreElements()
True if the ScopeTokenizer contains additional scopes. |
boolean |
hasMoreTokens()
True if the ScopeTokenizer contains additional scopes. |
java.lang.Object |
nextElement()
Returns the next Scope as an Object. |
Scope |
nextScope()
Returns the next Scope as a Scope object. |
java.lang.String |
nextToken()
Returns the next Scope as a String object. |
java.lang.String |
nextToken(java.lang.String delim)
Returns the next Scope as a String 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 |
| Constructor Detail |
public ScopeTokenizer(SlideToken slideToken, Namespace namespace, java.lang.String uri)
uri - Uri which needs to be tokenized in Scopes.public ScopeTokenizer(Namespace namespace, java.lang.String uri)
namespace - uri - public ScopeTokenizer(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.NoSuchElementExceptionpublic Scope nextScope() throws java.util.NoSuchElementException
java.util.NoSuchElementException
public java.lang.String nextToken(java.lang.String delim)
throws java.util.NoSuchElementException
delim -
java.util.NoSuchElementExceptionpublic java.util.Enumeration elements()
java.lang.String getUri()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||