Package com.adobe.xfa
Class ElementNodeList
java.lang.Object
com.adobe.xfa.Obj
com.adobe.xfa.ListBase
com.adobe.xfa.NodeList
com.adobe.xfa.ElementNodeList
- All Implemented Interfaces:
Peer
This class implements the NodeList interface based on a set of nodes
represented as the children of an element.
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.
-
Field Summary
Fields inherited from interface com.adobe.xfa.ut.Peer
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 -
Method Summary
Modifier and TypeMethodDescriptionvoidAppends an object to the end of this list.clone()Create a copy of this list.Returns the atomic name of this element's class.Gets the name of this object's class.getNamedItem(String name) Gets the first child of this node list with the given name.getNamedItem(String aName, String aClassName, int nTargetOccurrence) Get the first child of this node with the givennamevoidInserts an object before a specific node in this list.item(int index) Gets this list's n'th object.intlength()Returns the number of objects in this list.voidRemoves an object from this list.Methods inherited from class com.adobe.xfa.NodeList
getScriptTableMethods inherited from class com.adobe.xfa.ListBase
isReadOnly, isReadOnlyMethods inherited from class com.adobe.xfa.Obj
addPeer, 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, validateUsageFailedIsFatal
-
Method Details
-
append
Description copied from class:ListBaseAppends an object to the end of this list. -
clone
Create a copy of this list.
This method does not make copies of the underlying object implementations, it just place them in a new storage. -
getClassAtom
Description copied from class:ObjReturns the atomic name of this element's class.- Overrides:
getClassAtomin classListBase- Returns:
- the class name as an interned string.
- See Also:
-
getClassName
Description copied from class:ObjGets the name of this object's class. Overriden by derived classes such as Element that have a local name that may be returned instead.- Overrides:
getClassNamein classListBase- Returns:
- the class name.
- See Also:
-
getNamedItem
Description copied from class:NodeListGets the first child of this node list with the given name.- Specified by:
getNamedItemin classNodeList- Parameters:
name- the name of the child node.- Returns:
- the first child of this node with the given name.
-
getNamedItem
Description copied from class:NodeListGet the first child of this node with the givenname- Specified by:
getNamedItemin classNodeList- Parameters:
aName- 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.- Returns:
- the first child of this node with the given
nameand classname. - See Also:
-
insert
Description copied from class:ListBaseInserts an object before a specific node in this list. -
item
Description copied from class:ListBaseGets this list's n'th object. -
length
public int length()Description copied from class:ListBaseReturns the number of objects in this list. -
remove
Description copied from class:ListBaseRemoves an object from this list.
-