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
-
Method Summary
Modifier and TypeMethodDescriptionint
Returns 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, toArray
Methods inherited from class org.loboevolution.js.AbstractScriptableDelegate
getScriptable, setScriptable
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods 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:
getLength
in interfaceHTMLAllCollection
- Returns:
- a
Integer
object.
-
item
Returns the item with index index from the collection (determined by tree order).- Specified by:
item
in interfaceHTMLAllCollection
- Parameters:
index
- the name or index- Returns:
- a
Node
object.
-
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:
namedItem
in interfaceHTMLAllCollection
- Parameters:
name
- the name- Returns:
- a
Object
object.
-
tags
Returns all tags by name.- Specified by:
tags
in interfaceHTMLAllCollection
- Parameters:
tag
- the name of tag- Returns:
- a
HTMLAllCollection
object.
-
toString
-