org.dom4j.bean
Class BeanAttributeList

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--org.dom4j.bean.BeanAttributeList
All Implemented Interfaces:
Collection, List

public class BeanAttributeList
extends AbstractList

BeanAttributeList implements a list of Attributes which are the properties of a JavaBean.

Version:
$Revision: 1.5 $
Author:
James Strachan

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
BeanAttributeList(BeanElement parent)
           
BeanAttributeList(BeanElement parent, BeanMetaData beanMetaData)
           
 
Method Summary
 void add(int index, Object object)
           
 boolean add(Object object)
           
 BeanAttribute attribute(int index)
           
 Attribute attribute(QName qname)
           
 Attribute attribute(String name)
           
 void clear()
           
protected  BeanAttribute createAttribute(BeanElement parent, int index)
           
 Object get(int index)
           
 Object getData(int index)
           
 BeanElement getParent()
           
 QName getQName(int index)
           
 Object remove(int index)
           
 boolean remove(Object object)
           
 Object set(int index, Object object)
           
 void setData(int index, Object data)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
addAll, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, removeRange, 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.List
addAll, contains, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
 

Constructor Detail

BeanAttributeList

public BeanAttributeList(BeanElement parent,
                         BeanMetaData beanMetaData)

BeanAttributeList

public BeanAttributeList(BeanElement parent)
Method Detail

attribute

public Attribute attribute(String name)

attribute

public Attribute 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 interface List
Specified by:
size in class AbstractCollection

get

public Object get(int index)
Specified by:
get in interface List
Specified by:
get in class AbstractList

add

public boolean add(Object object)
Specified by:
add in interface List
Overrides:
add in class AbstractList

add

public void add(int index,
                Object object)
Specified by:
add in interface List
Overrides:
add in class AbstractList

set

public Object set(int index,
                  Object object)
Specified by:
set in interface List
Overrides:
set in class AbstractList

remove

public boolean remove(Object object)
Specified by:
remove in interface List
Overrides:
remove in class AbstractCollection

remove

public Object remove(int index)
Specified by:
remove in interface List
Overrides:
remove in class AbstractList

clear

public void clear()
Specified by:
clear in interface List
Overrides:
clear in class AbstractList

createAttribute

protected BeanAttribute createAttribute(BeanElement parent,
                                        int index)


Copyright © 2002-2003 MetaStuff Ltd.. All Rights Reserved.