Package totalcross.xml
Class AttributeList.Iterator
- java.lang.Object
-
- totalcross.xml.AttributeList.Iterator
-
- Enclosing class:
- AttributeList
public class AttributeList.Iterator extends java.lang.ObjectClass to iterate over each attribute of anAttributeList
-
-
Constructor Summary
Constructors Constructor Description Iterator()Constructs anIteratorover each attribute in the outerAttributeList.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetAttributeAsString()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.StringgetAttributeName()Gets the name of the current attribute.java.lang.StringgetAttributeValue()Gets the unquoted value of the current attribute.java.lang.StringgetValueDelimiter()Gets the quote surrounding the value of the current attribute.booleannext()Makes current the next attribute in thisAttributeList.
-
-
-
Method Detail
-
next
public final boolean next()
Makes current the next attribute in thisAttributeList.- Returns:
trueif the next attribute was activated, orfalseif there are no more attribute in this list.
-
getAttributeName
public final java.lang.String getAttributeName()
Gets the name of the current attribute.- Returns:
- The name of the current attribute, or
nullif no attribute is actually current.
-
getAttributeValue
public final java.lang.String getAttributeValue()
Gets the unquoted value of the current attribute.- Returns:
- The unquoted value of the current attribute, or
nullif no attribute is actually current.
-
getValueDelimiter
public final java.lang.String getValueDelimiter()
Gets the quote surrounding the value of the current attribute.- Returns:
\',\", or\0(the latter when no quote were surrounding the attribute value) ornullif no attribute is actually current.
-
getAttributeAsString
public final 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.- Returns:
- The string a described above.
-
-