public final class ElementNodeList extends NodeList
The NodeList interface is best suited to array storage, whereas an Element stores children as a linked list. To compensate, we'll track our position in the linked list so that normal forward iterations should be efficient.
ATTR_CHANGED, CHILD_ADDED, CHILD_REMOVED, DESCENDENT_ADDED, DESCENDENT_ATTR_CHANGED, DESCENDENT_REMOVED, DESCENDENT_VALUE_CHANGED, PARENT_CHANGED, PERMS_LOCK_CLEARED, PERMS_LOCK_SET, PROTO_ATTR_CHANGED, PROTO_CHILD_ADDED, PROTO_CHILD_REMOVED, PROTO_DESCENDENT_ADDED, PROTO_DESCENDENT_ATTR_CHANGED, PROTO_DESCENDENT_REMOVED, PROTO_DESCENDENT_VALUE_CHANGED, PROTO_VALUE_CHANGED, UPDATED, VALUE_CHANGED| Modifier and Type | Method and Description |
|---|---|
void |
append(Obj newNode)
Appends an object to the end of this list.
|
Object |
clone()
Create a copy of this list.
|
String |
getClassAtom()
Returns the atomic name of this element's class.
|
String |
getClassName()
Gets the name of this object's class.
|
Node |
getNamedItem(String name)
Gets the first child of this node list with the given name.
|
Node |
getNamedItem(String aName,
String aClassName,
int nTargetOccurrence)
Get the first child of this node with the given
name |
void |
insert(Obj newNode,
Obj refNode)
Inserts an object before a specific node in this list.
|
Obj |
item(int index)
Gets this list's n'th object.
|
int |
length()
Returns the number of objects in this list.
|
void |
remove(Obj removeNode)
Removes an object from this list.
|
getScriptTableisReadOnly, isReadOnlyaddPeer, addPeeredNode, clearPeers, deafen, getClassTag, getPeer, getScriptMethodInfo, getScriptProperty, getScriptThis, invokeFunction, isDeaf, isMute, isSameClass, isSameClass, isSameClass, mute, notifyPeers, peerRemoved, removePeer, removePeeredNode, sendMessenge, setClass, setClassTag, setScriptProperty, unDeafen, unMute, updateFromPeer, validateUsage, validateUsageFailedIsFatalpublic void append(Obj newNode)
ListBaseappend in class ListBasenewNode - the node to be appended.ListBase.append(Obj)public Object clone()
public String getClassAtom()
ObjgetClassAtom in class ListBaseObj.getClassAtom()public String getClassName()
ObjgetClassName in class ListBaseObj.getClassName()public Node getNamedItem(String name)
NodeListgetNamedItem in class NodeListname - the name of the child node.public Node getNamedItem(String aName, String aClassName, int nTargetOccurrence)
NodeListnamegetNamedItem in class NodeListaName - the name of the node to search for.aClassName - the class of node to search for, ignored if null. If non-null, this String must be interned.nTargetOccurrence - the occurrence to search for.name and classname.NodeList.getNamedItem(String, String, int)public void insert(Obj newNode, Obj refNode)
ListBaseinsert in class ListBasenewNode - the object to be inserted.refNode - the object to insert before.ListBase.insert(Obj, Obj)public Obj item(int index)
ListBaseitem in class ListBaseindex - the 0-based index of the node within this list.ListBase.item(int)public int length()
ListBasepublic void remove(Obj removeNode)
ListBaseremove in class ListBaseremoveNode - the object to be removed.ListBase.remove(Obj)Copyright © 2010 - 2020 Adobe. All Rights Reserved