BeanAttributeList implements a list of Attributes which are
the properties of a JavaBean.
| Modifier and Type | Field and Description |
|---|---|
| private BeanAttribute[] | attributes
The attributes |
| private BeanMetaData | beanMetaData
The BeanElement that this |
| private BeanElement | parent
The BeanElement that this |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | add(BeanAttribute
element to be appended to this list object)Overrides java. Implements java. |
| public void | add(int
index at which the specified element is to be inserted index, BeanAttribute element to be inserted object)Overrides java. Implements java. |
| public BeanAttribute | |
| public BeanAttribute | |
| public BeanAttribute | |
| public void | clear()
Overrides java. Implements java. |
| protected BeanAttribute | |
| public BeanAttribute | get(int
index of the element to return index)Implements abstract java. Implements java. |
| public Object | |
| public BeanElement | |
| public QName | |
| public boolean | remove(Object
element to be removed from this list, if present object)Overrides java. Implements java. |
| public BeanAttribute | remove(int
the index of the element to be removed index)Overrides java. Implements java. |
| public BeanAttribute | set(int
index of the element to replace index, BeanAttribute element to be stored at the specified position object)Overrides java. Implements java. |
| public void | |
| public int | size()
Implements abstract java. Implements java. |
| attributes | back to summary |
|---|---|
| private BeanAttribute[] attributes The attributes | |
| beanMetaData | back to summary |
|---|---|
| private BeanMetaData beanMetaData The BeanElement that this | |
| parent | back to summary |
|---|---|
| private BeanElement parent The BeanElement that this | |
| BeanAttributeList | back to summary |
|---|---|
| public BeanAttributeList(BeanElement parent, BeanMetaData beanMetaData) | |
| BeanAttributeList | back to summary |
|---|---|
| public BeanAttributeList(BeanElement parent) | |
| add | back to summary |
|---|---|
| public boolean add(BeanAttribute object) Overrides java. Implements java. Doc from java. Appends the specified element to the end of this list (optional operation). Lists that support this operation may place limitations on what elements may be added to this list. In particular, some lists will refuse to add null elements, and others will impose restrictions on the type of elements that may be added. List classes should clearly specify in their documentation any restrictions on what elements may be added.
| |
| add | back to summary |
|---|---|
| public void add(int index, BeanAttribute object) Overrides java. Implements java. Doc from java. Inserts the specified element at the specified position in this list (optional operation). Shifts the element currently at that position (if any) and any subsequent elements to the right (adds one to their indices).
| |
| attribute | back to summary |
|---|---|
| public BeanAttribute attribute(String name) | |
| attribute | back to summary |
|---|---|
| public BeanAttribute attribute(QName qname) | |
| attribute | back to summary |
|---|---|
| public BeanAttribute attribute(int index) | |
| clear | back to summary |
|---|---|
| public void clear() Overrides java. Implements java. Doc from java. Removes all of the elements from this list (optional operation). The list will be empty after this call returns. | |
| createAttribute | back to summary |
|---|---|
| protected BeanAttribute createAttribute(BeanElement element, int index) | |
| get | back to summary |
|---|---|
| public BeanAttribute get(int index) Implements abstract java. Implements java. Doc from java. Returns the element at the specified position in this list.
| |
| getData | back to summary |
|---|---|
| public Object getData(int index) | |
| getParent | back to summary |
|---|---|
| public BeanElement getParent() | |
| getQName | back to summary |
|---|---|
| public QName getQName(int index) | |
| remove | back to summary |
|---|---|
| public boolean remove(Object object) Overrides java. Implements java. Doc from java. Removes the first occurrence of the specified element from this list,
if it is present (optional operation). If this list does not contain
the element, it is unchanged. More formally, removes the element with
the lowest index
| |
| remove | back to summary |
|---|---|
| public BeanAttribute remove(int index) Overrides java. Implements java. Doc from java. Removes the element at the specified position in this list (optional operation). Shifts any subsequent elements to the left (subtracts one from their indices). Returns the element that was removed from the list.
| |
| set | back to summary |
|---|---|
| public BeanAttribute set(int index, BeanAttribute object) Overrides java. Implements java. Doc from java. Replaces the element at the specified position in this list with the specified element (optional operation).
| |
| setData | back to summary |
|---|---|
| public void setData(int index, Object data) | |
| size | back to summary |
|---|---|
| public int size() Implements abstract java. Implements java. Doc from java. Returns the number of elements in this list. If this list contains
more than
| |