org.w3c.dom.bootstrap
public class: DOMImplementationListImpl [javadoc |
source]
java.lang.Object
org.w3c.dom.bootstrap.DOMImplementationListImpl
All Implemented Interfaces:
DOMImplementationList
This class holds a list of DOMImplementations.
| Method from org.w3c.dom.bootstrap.DOMImplementationListImpl Summary: |
|---|
|
add, getLength, item |
| Method from org.w3c.dom.bootstrap.DOMImplementationListImpl Detail: |
public void add(DOMImplementation domImpl) {
sources.add(domImpl);
}
Add a DOMImplementation in the list. |
public int getLength() {
return sources.size();
}
The number of DOMImplementations in the list. The range
of valid child node indices is 0 to length-1 inclusive. |
public DOMImplementation item(int index) {
try {
return (DOMImplementation) sources.elementAt(index);
} catch (ArrayIndexOutOfBoundsException e) {
return null;
}
}
Returns the indexth item in the collection. If
index is greater than or equal to the number of
DOMImplementations in the list, this returns
null. |