se.datadosen.tags
Class AttributeTokenizer

java.lang.Object
  extended by se.datadosen.tags.AttributeTokenizer

public class AttributeTokenizer
extends java.lang.Object

Parses a string of name=value name="value with spaces"... pairs inside a tag


Constructor Summary
AttributeTokenizer(java.lang.String text)
           
AttributeTokenizer(java.lang.String text, int startPosition)
           
 
Method Summary
 int getPosition()
           
static java.util.Properties getProperties(java.lang.String text)
           
 boolean hasMoreTokens()
           
 java.lang.String nextName()
           
 java.lang.String nextValue()
           
 int skipPastName()
           
 int skipPastQuotation()
           
 int skipPastScriptlet(int i)
           
 int skipPastValue()
           
 int skipWhiteSpace()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTokenizer

public AttributeTokenizer(java.lang.String text)

AttributeTokenizer

public AttributeTokenizer(java.lang.String text,
                          int startPosition)
Method Detail

getProperties

public static java.util.Properties getProperties(java.lang.String text)
                                          throws ElementException
Throws:
ElementException

getPosition

public int getPosition()

hasMoreTokens

public boolean hasMoreTokens()

skipWhiteSpace

public int skipWhiteSpace()

skipPastName

public int skipPastName()

skipPastScriptlet

public int skipPastScriptlet(int i)

skipPastValue

public int skipPastValue()

skipPastQuotation

public int skipPastQuotation()

nextName

public java.lang.String nextName()
                          throws java.util.NoSuchElementException
Throws:
java.util.NoSuchElementException

nextValue

public java.lang.String nextValue()
                           throws java.util.NoSuchElementException,
                                  ElementException
Throws:
java.util.NoSuchElementException
ElementException