org.dom4j.tree

Class BackedList

public class BackedList extends ArrayList

BackedList represents a list of content of a {@link org.dom4j.Branch}. Changes to the list will be reflected in the branch, though changes to the branch will not be reflected in this list.

Version: $Revision: 1.14 $

Author: James Strachan

Constructor Summary
BackedList(AbstractBranch branch, List branchContent)
BackedList(AbstractBranch branch, List branchContent, int capacity)
BackedList(AbstractBranch branch, List branchContent, List initialContent)
Method Summary
booleanadd(Object object)
voidadd(int index, Object object)
booleanaddAll(Collection collection)
booleanaddAll(int index, Collection collection)
voidaddLocal(Object object)
Performs a local addition which is not forward through to the Branch or backing list
protected NodeasNode(Object object)
voidclear()
booleanremove(Object object)
Objectremove(int index)
Objectset(int index, Object object)

Constructor Detail

BackedList

public BackedList(AbstractBranch branch, List branchContent)

BackedList

public BackedList(AbstractBranch branch, List branchContent, int capacity)

BackedList

public BackedList(AbstractBranch branch, List branchContent, List initialContent)

Method Detail

add

public boolean add(Object object)

add

public void add(int index, Object object)

addAll

public boolean addAll(Collection collection)

addAll

public boolean addAll(int index, Collection collection)

addLocal

public void addLocal(Object object)
Performs a local addition which is not forward through to the Branch or backing list

Parameters: object DOCUMENT ME!

asNode

protected Node asNode(Object object)

clear

public void clear()

remove

public boolean remove(Object object)

remove

public Object remove(int index)

set

public Object set(int index, Object object)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge