org.apache.beehive.netui.core.urltemplates
Class TemplateTokenizer

Object
  extended by TemplateTokenizer
All Implemented Interfaces:
Iterator

public class TemplateTokenizer
extends Object
implements Iterator

The identified tokens and the text between the matching tokens in the template are all returned.


Constructor Summary
TemplateTokenizer(CharSequence template)
           
 
Method Summary
 boolean hasNext()
          Returns true if there are more literals or tokens/delimiters.
 boolean isTokenNext()
          Returns true if the call to next() will return a token rather than a literal.
 Object next()
          Returns the next literal string or token/delimiter.
 void remove()
          Not supported.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TemplateTokenizer

public TemplateTokenizer(CharSequence template)
Method Detail

hasNext

public boolean hasNext()
Returns true if there are more literals or tokens/delimiters.

Specified by:
hasNext in interface Iterator

next

public Object next()
Returns the next literal string or token/delimiter.

Specified by:
next in interface Iterator

isTokenNext

public boolean isTokenNext()
Returns true if the call to next() will return a token rather than a literal.


remove

public void remove()
Not supported.

Specified by:
remove in interface Iterator