|
|||||||||
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.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
Field Summary | |
(package private) Namespace |
namespace
Namespace. |
(package private) int |
pos
Cursor position in the token container. |
(package private) java.util.Vector |
scopes
Tokens container. |
Constructor Summary | |
ScopeTokenizer(Namespace namespace,
Scope scope)
Constructor. |
|
ScopeTokenizer(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 |
|
Field Detail |
java.util.Vector scopes
int pos
Namespace namespace
Constructor Detail |
public ScopeTokenizer(Namespace namespace, java.lang.String uri)
uri
- Uri which needs to be tokenized in Scopes.public ScopeTokenizer(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 Scope nextScope() 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
- public java.util.Enumeration elements()
java.lang.String getUri()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |