org.dom4j.tree
Class ContentListFacade
java.lang.Object
java.util.AbstractCollection
java.util.AbstractList
org.dom4j.tree.ContentListFacade
- All Implemented Interfaces:
- Collection, List
- public class ContentListFacade
- extends AbstractList
ContentListFacade
represents a facade of the content of a
Branch
which is returned via calls to the Branch.content()
method to allow users to modify the content of a
Branch
directly using the 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
ContentListFacade
public ContentListFacade(AbstractBranch branch,
List branchContent)
add
public boolean add(Object object)
add
public void add(int index,
Object object)
set
public Object set(int index,
Object object)
remove
public boolean remove(Object object)
remove
public Object remove(int index)
addAll
public boolean addAll(Collection collection)
addAll
public boolean addAll(int index,
Collection collection)
clear
public void clear()
removeAll
public boolean removeAll(Collection c)
size
public int size()
isEmpty
public boolean isEmpty()
contains
public boolean contains(Object o)
toArray
public Object[] toArray()
toArray
public Object[] toArray(Object[] a)
containsAll
public boolean containsAll(Collection c)
get
public Object get(int index)
indexOf
public int indexOf(Object o)
lastIndexOf
public int lastIndexOf(Object o)
asNode
protected Node asNode(Object object)
getBackingList
protected List getBackingList()
Copyright © 2001-2005 MetaStuff Ltd.. All Rights Reserved.