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 void
append(Obj newNode)
Appends an object to the end of this list.java.lang.Object
clone()
Creates a copy of this node list.java.lang.String
getClassAtom()
Returns the atomic name of this element's class.java.lang.String
getClassName()
Gets the name of this object's class.Node
getNamedItem(java.lang.String name)
Gets the first child of this node list with the given name.Node
getNamedItem(java.lang.String aName, java.lang.String aClassName, int nTargetOccurrence)
Get the first child of this node with the givenname
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.-
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:ListBase
Appends an object to the end of this list.- Specified by:
append
in classListBase
- Parameters:
newNode
- the node to be appended.- See Also:
ListBase.append(Obj)
-
clone
public java.lang.Object clone()
Description copied from class:NodeList
Creates 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:Obj
Returns the atomic name of this element's class.- Overrides:
getClassAtom
in classListBase
- Returns:
- the class name as an interned string.
- See Also:
Obj.getClassAtom()
-
getClassName
public java.lang.String getClassName()
Description copied from class:Obj
Gets 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:
getClassName
in classListBase
- Returns:
- the class name.
- See Also:
Obj.getClassName()
-
getNamedItem
public Node getNamedItem(java.lang.String name)
Description copied from class:NodeList
Gets the first child of this node list with the given name.- Specified by:
getNamedItem
in 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:NodeList
Get the first child of this node with the givenname
- Specified by:
getNamedItem
in 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
name
and classname. - See Also:
NodeList.getNamedItem(String, String, int)
-
insert
public void insert(Obj newNode, Obj refNode)
Description copied from class:ListBase
Inserts an object before a specific node in this list.- Specified by:
insert
in 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:ListBase
Gets this list's n'th object.- Specified by:
item
in 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:ListBase
Returns the number of objects in this list.- Specified by:
length
in classListBase
- Returns:
- the length of this list.
- See Also:
ListBase.length()
-
remove
public void remove(Obj removeNode)
Description copied from class:ListBase
Removes an object from this list.- Specified by:
remove
in classListBase
- Parameters:
removeNode
- the object to be removed.- See Also:
ListBase.remove(Obj)
-
-