DOMImplementationList
Stay organized with collections
Save and categorize content based on your preferences.
The DOMImplementationList
interface provides the abstraction
of an ordered collection of DOM implementations, without defining or
constraining how this collection is implemented. The items in the
DOMImplementationList
are accessible via an integral index,
starting from 0.
See also the Document Object Model (DOM) Level 3 Core Specification.
Public Method Summary
abstract
int
|
getLength()
The number of DOMImplementation s in the list.
|
abstract
DOMImplementation
|
item(int index)
Returns the index th item in the collection.
|
Public Methods
public
abstract
int
getLength
()
The number of DOMImplementation
s in the list. The range
of valid child node indices is 0 to length-1
inclusive.
Returns the index
th item in the collection. If
index
is greater than or equal to the number of
DOMImplementation
s in the list, this returns
null
.
Parameters
index |
Index into the collection. |
Returns
- The
DOMImplementation
at the index
th position in the DOMImplementationList
, or
null
if that is not a valid index.
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-07-10 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-07-10 UTC."],[[["\u003cp\u003e\u003ccode\u003eDOMImplementationList\u003c/code\u003e is an interface representing an ordered collection of DOM implementations, accessible by index.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods to get the total number of \u003ccode\u003eDOMImplementation\u003c/code\u003e objects (\u003ccode\u003egetLength\u003c/code\u003e) and retrieve a specific \u003ccode\u003eDOMImplementation\u003c/code\u003e by its index (\u003ccode\u003eitem\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eIndices for accessing \u003ccode\u003eDOMImplementation\u003c/code\u003e objects within the list start from 0.\u003c/p\u003e\n"],["\u003cp\u003eIf an invalid index is provided to the \u003ccode\u003eitem\u003c/code\u003e method, it returns \u003ccode\u003enull\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# DOMImplementationList\n\npublic interface **DOMImplementationList** \nThe `DOMImplementationList` interface provides the abstraction\nof an ordered collection of DOM implementations, without defining or\nconstraining how this collection is implemented. The items in the\n`DOMImplementationList` are accessible via an integral index,\nstarting from 0.\n\nSee also the [Document Object Model (DOM) Level 3 Core Specification](http://www.w3.org/TR/2004/REC-DOM-Level-3-Core-20040407). \n\n### Public Method Summary\n\n|----------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------|\n| abstract int | [getLength](../../../../reference/org/w3c/dom/DOMImplementationList.html#getLength())() The number of `DOMImplementation`s in the list. |\n| abstract [DOMImplementation](../../../../reference/org/w3c/dom/DOMImplementation.html) | [item](../../../../reference/org/w3c/dom/DOMImplementationList.html#item(int))(int index) Returns the `index`th item in the collection. |\n\nPublic Methods\n--------------\n\n#### public abstract int\n**getLength**\n()\n\nThe number of `DOMImplementation`s in the list. The range\nof valid child node indices is 0 to `length-1` inclusive. \n\n#### public abstract [DOMImplementation](../../../../reference/org/w3c/dom/DOMImplementation.html)\n**item**\n(int index)\n\nReturns the `index`th item in the collection. If\n`index` is greater than or equal to the number of\n`DOMImplementation`s in the list, this returns\n`null`. \n\n##### Parameters\n\n| index | Index into the collection. |\n|-------|----------------------------|\n\n##### Returns\n\n- The `DOMImplementation` at the `index` th position in the `DOMImplementationList`, or `null` if that is not a valid index."]]