Interface Tag

    • Method Detail

      • writeTo

        void writeTo​(CharArray out)
        Write out the complete tag in its original form, preserving original formatting.
      • getName

        String getName()
        Name of tag (ie. element name).
      • getType

        int getType()
        Type of tag:
        <blah> - Tag.OPEN
        </blah> - Tag.CLOSE
        <blah/> - Tag.EMPTY
      • getAttributeCount

        int getAttributeCount()
        Number of attributes in tag.
      • getAttributeIndex

        int getAttributeIndex​(String name,
                              boolean caseSensitive)
        Determine which attribute has the specified name.
      • getAttributeName

        String getAttributeName​(int index)
        Get name of attribute.
      • getAttributeValue

        String getAttributeValue​(int index)
        Get value of an attribute. If this is an empty attribute (i.e. just a name, without a value), null is returned.
      • getAttributeValue

        String getAttributeValue​(String name,
                                 boolean caseSensitive)
        Get value of an attribute. If this is an empty attribute (i.e. just a name, without a value), null is returned.
      • hasAttribute

        boolean hasAttribute​(String name,
                             boolean caseSensitive)
        Determine if an attribute is present.