Package org.dom4j.bean
Class BeanAttributeList
- java.lang.Object
 - 
- java.util.AbstractCollection<E>
 - 
- java.util.AbstractList<Attribute>
 - 
- org.dom4j.bean.BeanAttributeList
 
 
 
 
- 
public class BeanAttributeList extends AbstractList<Attribute>
BeanAttributeListimplements a list of Attributes which are the properties of a JavaBean. 
- 
- 
Field Summary
- 
Fields inherited from class java.util.AbstractList
modCount 
 - 
 
- 
Constructor Summary
Constructors Constructor Description BeanAttributeList(BeanElement parent)BeanAttributeList(BeanElement parent, BeanMetaData beanMetaData) 
- 
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(int index, BeanAttribute object)booleanadd(BeanAttribute object)BeanAttributeattribute(int index)BeanAttributeattribute(String name)BeanAttributeattribute(QName qname)voidclear()protected BeanAttributecreateAttribute(BeanElement element, int index)BeanAttributeget(int index)ObjectgetData(int index)BeanElementgetParent()QNamegetQName(int index)BeanAttributeremove(int index)booleanremove(Object object)BeanAttributeset(int index, BeanAttribute object)voidsetData(int index, Object data)intsize()- 
Methods inherited from class java.util.AbstractList
add, add, addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, set, subList 
- 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray, toString 
- 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray 
- 
Methods inherited from interface java.util.List
addAll, contains, containsAll, isEmpty, removeAll, replaceAll, retainAll, sort, spliterator, toArray, toArray 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
BeanAttributeList
public BeanAttributeList(BeanElement parent, BeanMetaData beanMetaData)
 
- 
BeanAttributeList
public BeanAttributeList(BeanElement parent)
 
 - 
 
- 
Method Detail
- 
attribute
public BeanAttribute attribute(String name)
 
- 
attribute
public BeanAttribute attribute(QName qname)
 
- 
attribute
public BeanAttribute attribute(int index)
 
- 
getParent
public BeanElement getParent()
 
- 
getQName
public QName getQName(int index)
 
- 
getData
public Object getData(int index)
 
- 
setData
public void setData(int index, Object data) 
- 
size
public int size()
- Specified by:
 sizein interfaceCollection<Attribute>- Specified by:
 sizein interfaceList<Attribute>- Specified by:
 sizein classAbstractCollection<Attribute>
 
- 
get
public BeanAttribute get(int index)
 
- 
add
public boolean add(BeanAttribute object)
 
- 
add
public void add(int index, BeanAttribute object) 
- 
set
public BeanAttribute set(int index, BeanAttribute object)
 
- 
remove
public boolean remove(Object object)
- Specified by:
 removein interfaceCollection<Attribute>- Specified by:
 removein interfaceList<Attribute>- Overrides:
 removein classAbstractCollection<Attribute>
 
- 
remove
public BeanAttribute remove(int index)
 
- 
clear
public void clear()
- Specified by:
 clearin interfaceCollection<Attribute>- Specified by:
 clearin interfaceList<Attribute>- Overrides:
 clearin classAbstractList<Attribute>
 
- 
createAttribute
protected BeanAttribute createAttribute(BeanElement element, int index)
 
 - 
 
 -