Package com.adobe.xfa

Class ListBase

  • All Implemented Interfaces:
    Peer
    Direct Known Subclasses:
    NodeList, XFAList

    public abstract class ListBase
    extends Obj
    A base class for all lists that are used in the XFA scripting object model. That includes primarily node lists, but also lists of deltas. This class combined with XFAList correspond to the C++ XFAListImpl class.
    • Method Detail

      • append

        public abstract void append​(Obj oObj)
        Appends an object to the end of this list.
        Parameters:
        oObj - the node to be appended.
      • getClassAtom

        public java.lang.String getClassAtom()
        Description copied from class: Obj
        Returns the atomic name of this element's class.
        Overrides:
        getClassAtom in class Obj
        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 class Obj
        Returns:
        the class name.
        See Also:
        Obj.getClassName()
      • insert

        public abstract void insert​(Obj newObj,
                                    Obj refObj)
        Inserts an object before a specific node in this list.
        Parameters:
        newObj - the object to be inserted.
        refObj - the object to insert before.
      • isReadOnly

        public boolean isReadOnly()
      • isReadOnly

        public void isReadOnly​(boolean bReadOnly)
      • item

        public abstract Obj item​(int n)
        Gets this list's n'th object.
        Parameters:
        n - the 0-based index of the node within this list.
        Returns:
        the n'th node.
      • length

        public abstract int length()
        Returns the number of objects in this list.
        Returns:
        the length of this list.
      • remove

        public abstract void remove​(Obj obj)
        Removes an object from this list.
        Parameters:
        obj - the object to be removed.