Class HTMLAllCollectionImpl
java.lang.Object
org.loboevolution.js.AbstractScriptableDelegate
org.loboevolution.html.node.AbstractList<Node>
org.loboevolution.html.dom.domimpl.HTMLAllCollectionImpl
- All Implemented Interfaces:
Iterable<Node>,Collection<Node>,List<Node>,SequencedCollection<Node>,HTMLAllCollection,ScriptableDelegate
The HTMLAllCollectionImpl class.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintReturns the number of elements in the collection.Returns the item with index index from the collection (determined by tree order).Returns the item with ID or name name from the collection.Returns all tags by name.toString()Methods inherited from class org.loboevolution.html.node.AbstractList
add, add, addAll, addAll, clear, contains, containsAll, get, getList, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, setList, size, subList, toArray, toArrayMethods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptableMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
addFirst, addLast, equals, getFirst, getLast, hashCode, removeFirst, removeLast, replaceAll, reversed, sort, spliterator
-
Constructor Details
-
HTMLAllCollectionImpl
-
-
Method Details
-
getLength
public int getLength()Returns the number of elements in the collection.- Specified by:
getLengthin interfaceHTMLAllCollection- Returns:
- a
Integerobject.
-
item
Returns the item with index index from the collection (determined by tree order).- Specified by:
itemin interfaceHTMLAllCollection- Parameters:
index- the name or index- Returns:
- a
Nodeobject.
-
namedItem
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.
- Specified by:
namedItemin interfaceHTMLAllCollection- Parameters:
name- the name- Returns:
- a
Objectobject.
-
tags
Returns all tags by name.- Specified by:
tagsin interfaceHTMLAllCollection- Parameters:
tag- the name of tag- Returns:
- a
HTMLAllCollectionobject.
-
toString
-