Class AttributeList.Iterator

  • Enclosing class:
    AttributeList

    public class AttributeList.Iterator
    extends java.lang.Object
    Class to iterate over each attribute of an AttributeList
    • Constructor Summary

      Constructors 
      Constructor Description
      Iterator()
      Constructs an Iterator over each attribute in the outer AttributeList.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Iterator

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

      • next

        public final boolean next()
        Makes current the next attribute in this AttributeList.
        Returns:
        true if the next attribute was activated, or false if 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 null if 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 null if 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) or null if 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.