public class AttributeList.Iterator
extends java.lang.Object
AttributeList
Constructor and Description |
---|
Iterator()
Constructs an
Iterator over each attribute in the outer AttributeList . |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAttributeAsString()
Gets the attribute as a string, the value being surrounded by single or double quotes if these were specified in the start-tag.
|
java.lang.String |
getAttributeName()
Gets the name of the current attribute.
|
java.lang.String |
getAttributeValue()
Gets the unquoted value of the current attribute.
|
java.lang.String |
getValueDelimiter()
Gets the quote surrounding the value of the current attribute.
|
boolean |
next()
Makes current the next attribute in this
AttributeList . |
public Iterator()
Iterator
over each attribute in the outer AttributeList
.public final boolean next()
AttributeList
.true
if the next attribute was activated, or false
if there are no more attribute in this list.public final java.lang.String getAttributeName()
null
if no attribute is actually current.public final java.lang.String getAttributeValue()
null
if no attribute is actually current.public final java.lang.String getValueDelimiter()
\'
, \"
, or \0
(the latter when no quote were surrounding the attribute value) or
null
if no attribute is actually current.public final java.lang.String getAttributeAsString()