org.dom4j.tree

Class ContentListFacade

public class ContentListFacade extends AbstractList

ContentListFacade represents a facade of the content of a {@link org.dom4j.Branch} which is returned via calls to the {@link org.dom4j.Branch#content} method to allow users to modify the content of a {@link org.dom4j.Branch} directly using the {@link List} interface. This list is backed by the branch such that changes to the list will be reflected in the branch and changes to the branch will be reflected in this list.

Version: $Revision: 1.11 $

Author: James Strachan

Constructor Summary
ContentListFacade(AbstractBranch branch, List branchContent)
Method Summary
booleanadd(Object object)
voidadd(int index, Object object)
booleanaddAll(Collection collection)
booleanaddAll(int index, Collection collection)
protected NodeasNode(Object object)
voidclear()
booleancontains(Object o)
booleancontainsAll(Collection c)
Objectget(int index)
protected ListgetBackingList()
intindexOf(Object o)
booleanisEmpty()
intlastIndexOf(Object o)
booleanremove(Object object)
Objectremove(int index)
booleanremoveAll(Collection c)
Objectset(int index, Object object)
intsize()
Object[]toArray()
Object[]toArray(Object[] a)

Constructor Detail

ContentListFacade

public ContentListFacade(AbstractBranch branch, List branchContent)

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)

asNode

protected Node asNode(Object object)

clear

public void clear()

contains

public boolean contains(Object o)

containsAll

public boolean containsAll(Collection c)

get

public Object get(int index)

getBackingList

protected List getBackingList()

indexOf

public int indexOf(Object o)

isEmpty

public boolean isEmpty()

lastIndexOf

public int lastIndexOf(Object o)

remove

public boolean remove(Object object)

remove

public Object remove(int index)

removeAll

public boolean removeAll(Collection c)

set

public Object set(int index, Object object)

size

public int size()

toArray

public Object[] toArray()

toArray

public Object[] toArray(Object[] a)
Copyright B) 2005 MetaStuff Ltd. All Rights Reserved. Hosted by

SourceForge