|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--ORG.oclc.xml.om.ElementCollection
This class provides a collection interface to elements similar to the element collections found in the Internet Explorer 4.0 Dynamic HTML object model.
| Constructor Summary | |
ElementCollection(Element root)
Creates new collection object for given element. |
|
ElementCollection(Element root,
Name tag,
int type)
Creates a new collection for iterating over the immediate children of the given root node that have matching tag names and/or element types. |
|
| Method Summary | |
Element |
getChild(int index)
Retrieves a specified item from the collection by index. |
int |
getLength()
Retrieves the number of items in the collection. |
Object |
item(String name)
Retrieves a named item or a collection of matching items. |
Element |
item(String name,
int index)
Retrieves a specified item from the collection of matching items. |
| Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
| Constructor Detail |
public ElementCollection(Element root)
public ElementCollection(Element root,
Name tag,
int type)
root - The root to form the collection around.tag - The name of the tag; this parameter can be null if the name is not important.type - The element type. Element.ELEMENT is the most
common. If
the element type is not important, pass -1.| Method Detail |
public int getLength()
public Object item(String name)
name - The name of the item or collection of matching items.Element, ElementCollection,
or null.public Element getChild(int index)
index - The index of the item in the element collection.
public Element item(String name,
int index)
name - The name of the matching items.index - The index of the specific matching item to return.
|
Open SiteSearch 4.1.1 Final |
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||