superwaba.ext.xplat.xml
Class AttributeList.Iterator

java.lang.Object
  |
  +--superwaba.ext.xplat.xml.AttributeList.Iterator
Enclosing class:
AttributeList

public class AttributeList.Iterator
extends java.lang.Object

class to iterate over each attribute if an AttributeList


Constructor Summary
AttributeList.Iterator()
          Construct an Iterator over each attribute in the outer AttributeList
 
Method Summary
 java.lang.String getAttributeAsString()
          Get the attribute as a String, the value being surrounded by single or double quotes if these were specified on the start-tag.
 java.lang.String getAttributeName()
          Get the name of the current attribute
 java.lang.String getAttributeValue()
          Get the unquoted value of the current attribute
 java.lang.String getValueDelimiter()
          Get the quote surrounding the value of the current attribute
 boolean next()
          Make current the next attribute in this AttributeList
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeList.Iterator

public AttributeList.Iterator()
Construct an Iterator over each attribute in the outer AttributeList
Method Detail

next

public final boolean next()
Make current the next attribute in this AttributeList
Returns:
true if the next attribute was activated, false if no more attribute in this list.

getAttributeName

public final java.lang.String getAttributeName()
Get the name of the current attribute
Returns:
the name of the current attribute, or null if no attribute is actually current.

getAttributeValue

public final java.lang.String getAttributeValue()
Get the unquoted value of the current attribute
Returns:
the unquoted value of the current attribute, or null if no attribute is actually current.

getValueDelimiter

public final java.lang.String getValueDelimiter()
Get the quote surrounding the value of the current attribute
Returns:
"\'", "\"" or "" (the latter when no quote were surrounding the attribute value,) or null if no attribute is actually current.

getAttributeAsString

public final java.lang.String getAttributeAsString()
Get the attribute as a String, the value being surrounded by single or double quotes if these were specified on the start-tag.
Returns:
a String a described above.