Package org.dom4j.tree
Class ContentListFacade
java.lang.Object
java.util.AbstractCollection<E>
java.util.AbstractList
org.dom4j.tree.ContentListFacade
- All Implemented Interfaces:
Iterable,Collection,List
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
-
Field Summary
Fields inherited from class java.util.AbstractList
modCount -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidbooleanbooleanaddAll(int index, Collection collection) booleanaddAll(Collection collection) protected Nodevoidclear()booleanbooleanget(int index) protected ListintbooleanisEmpty()intremove(int index) booleanbooleanintsize()Object[]toArray()Object[]Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, removeRange, subListMethods inherited from class java.util.AbstractCollection
retainAll, toStringMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArrayMethods inherited from interface java.util.List
replaceAll, retainAll, sort, spliterator
-
Constructor Details
-
ContentListFacade
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
add
- Specified by:
addin interfaceList- Overrides:
addin classAbstractList
-
set
- Specified by:
setin interfaceList- Overrides:
setin classAbstractList
-
remove
- Specified by:
removein interfaceCollection- Specified by:
removein interfaceList- Overrides:
removein classAbstractCollection
-
remove
- Specified by:
removein interfaceList- Overrides:
removein classAbstractList
-
addAll
- Specified by:
addAllin interfaceCollection- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractCollection
-
addAll
- Specified by:
addAllin interfaceList- Overrides:
addAllin classAbstractList
-
clear
public void clear()- Specified by:
clearin interfaceCollection- Specified by:
clearin interfaceList- Overrides:
clearin classAbstractList
-
removeAll
- Specified by:
removeAllin interfaceCollection- Specified by:
removeAllin interfaceList- Overrides:
removeAllin classAbstractCollection
-
size
public int size()- Specified by:
sizein interfaceCollection- Specified by:
sizein interfaceList- Specified by:
sizein classAbstractCollection
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection- Specified by:
isEmptyin interfaceList- Overrides:
isEmptyin classAbstractCollection
-
contains
- Specified by:
containsin interfaceCollection- Specified by:
containsin interfaceList- Overrides:
containsin classAbstractCollection
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList- Overrides:
toArrayin classAbstractCollection
-
toArray
- Specified by:
toArrayin interfaceCollection- Specified by:
toArrayin interfaceList- Overrides:
toArrayin classAbstractCollection
-
containsAll
- Specified by:
containsAllin interfaceCollection- Specified by:
containsAllin interfaceList- Overrides:
containsAllin classAbstractCollection
-
get
- Specified by:
getin interfaceList- Specified by:
getin classAbstractList
-
indexOf
- Specified by:
indexOfin interfaceList- Overrides:
indexOfin classAbstractList
-
lastIndexOf
- Specified by:
lastIndexOfin interfaceList- Overrides:
lastIndexOfin classAbstractList
-
asNode
-
getBackingList
-