Interface HTMLAllCollection

All Known Implementing Classes:
HTMLAllCollectionImpl

public interface HTMLAllCollection
The interface Html all collection.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Returns the number of elements in the collection.
    item(Object index)
    Returns the item with index index from the collection (determined by tree order).
    Returns the item with ID or name name from the collection.
    tags(String tag)
    Returns all tags by name.
  • Method Details

    • getLength

      int getLength()
      Returns the number of elements in the collection.
      Returns:
      a Integer object.
    • item

      Node item(Object index)
      Returns the item with index index from the collection (determined by tree order).
      Parameters:
      index - the name or index
      Returns:
      a Node object.
    • namedItem

      Object namedItem(String name)
      Returns the item with ID or name name from the collection.

      If there are multiple matching items, then an HTMLCollection object containing all those elements is returned.

      Parameters:
      name - the name
      Returns:
      a Object object.
    • tags

      Returns all tags by name.
      Parameters:
      tag - the name of tag
      Returns:
      a HTMLAllCollection object.