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>
BeanAttributeList
implements 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 void
add(int index, BeanAttribute object)
boolean
add(BeanAttribute object)
BeanAttribute
attribute(int index)
BeanAttribute
attribute(String name)
BeanAttribute
attribute(QName qname)
void
clear()
protected BeanAttribute
createAttribute(BeanElement element, int index)
BeanAttribute
get(int index)
Object
getData(int index)
BeanElement
getParent()
QName
getQName(int index)
BeanAttribute
remove(int index)
boolean
remove(Object object)
BeanAttribute
set(int index, BeanAttribute object)
void
setData(int index, Object data)
int
size()
-
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:
size
in interfaceCollection<Attribute>
- Specified by:
size
in interfaceList<Attribute>
- Specified by:
size
in 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:
remove
in interfaceCollection<Attribute>
- Specified by:
remove
in interfaceList<Attribute>
- Overrides:
remove
in classAbstractCollection<Attribute>
-
remove
public BeanAttribute remove(int index)
-
clear
public void clear()
- Specified by:
clear
in interfaceCollection<Attribute>
- Specified by:
clear
in interfaceList<Attribute>
- Overrides:
clear
in classAbstractList<Attribute>
-
createAttribute
protected BeanAttribute createAttribute(BeanElement element, int index)
-
-