Package com.adobe.xfa
Class ArrayNodeList
- java.lang.Object
-
- com.adobe.xfa.Obj
-
- com.adobe.xfa.ListBase
-
- com.adobe.xfa.NodeList
-
- com.adobe.xfa.ArrayNodeList
-
-
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
-
-
Constructor Summary
Constructors Constructor Description ArrayNodeList()default constructorArrayNodeList(Element e)Create an ArrayNodeList from the children of an Element.ArrayNodeList(java.util.List<? extends Node> list)Create a new ArrayNodeList from an existing one.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidappend(Obj newNode)Appends an object to the end of this list.java.lang.Objectclone()Creates a copy of this node list.java.lang.StringgetClassAtom()Returns the atomic name of this element's class.java.lang.StringgetClassName()Gets the name of this object's class.NodegetNamedItem(java.lang.String name)Gets the first child of this node list with the given name.NodegetNamedItem(java.lang.String aName, java.lang.String aClassName, int nTargetOccurrence)Get the first child of this node with the givennamevoidinsert(Obj newNode, Obj refNode)Inserts an object before a specific node in this list.Objitem(int index)Gets this list's n'th object.intlength()Returns the number of objects in this list.voidremove(Obj removeNode)Removes an object from this list.-
Methods inherited from class com.adobe.xfa.NodeList
getScriptTable
-
Methods inherited from class com.adobe.xfa.ListBase
isReadOnly, isReadOnly
-
Methods 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
-
-
-
-
Constructor Detail
-
ArrayNodeList
public ArrayNodeList()
default constructor
-
ArrayNodeList
public ArrayNodeList(java.util.List<? extends Node> list)
Create a new ArrayNodeList from an existing one.- Parameters:
list- to clone
-
ArrayNodeList
public ArrayNodeList(Element e)
Create an ArrayNodeList from the children of an Element. All children of the element will be added to the list.- Parameters:
e- The Element to grab children from.
-
-
Method Detail
-
append
public void append(Obj newNode)
Description copied from class:ListBaseAppends an object to the end of this list.- Specified by:
appendin classListBase- Parameters:
newNode- the node to be appended.- See Also:
ListBase.append(Obj)
-
clone
public java.lang.Object clone()
Description copied from class:NodeListCreates a copy of this node list.This method does not make copies of the underlying object implementations, it just place them in a new storage.
-
getClassAtom
public java.lang.String 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:
Obj.getClassAtom()
-
getClassName
public java.lang.String 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:
Obj.getClassName()
-
getNamedItem
public Node getNamedItem(java.lang.String name)
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
public Node getNamedItem(java.lang.String aName, java.lang.String aClassName, int nTargetOccurrence)
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:
NodeList.getNamedItem(String, String, int)
-
insert
public void insert(Obj newNode, Obj refNode)
Description copied from class:ListBaseInserts an object before a specific node in this list.- Specified by:
insertin classListBase- Parameters:
newNode- the object to be inserted.refNode- the object to insert before.- See Also:
ListBase.insert(Obj, Obj)
-
item
public Obj item(int index)
Description copied from class:ListBaseGets this list's n'th object.- Specified by:
itemin classListBase- Parameters:
index- the 0-based index of the node within this list.- Returns:
- the n'th node.
- See Also:
ListBase.item(int)
-
length
public int length()
Description copied from class:ListBaseReturns the number of objects in this list.- Specified by:
lengthin classListBase- Returns:
- the length of this list.
- See Also:
ListBase.length()
-
remove
public void remove(Obj removeNode)
Description copied from class:ListBaseRemoves an object from this list.- Specified by:
removein classListBase- Parameters:
removeNode- the object to be removed.- See Also:
ListBase.remove(Obj)
-
-