站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss 4.0.1 sp1 jmx API Documentation 英文版文档

AttributeList (JBoss/JMX API) - JBoss 4.0.1 sp1 jmx API Documentation 英文版文档


javax.management
Class AttributeList

java.lang.Object
  extended byjava.util.AbstractCollection
      extended byjava.util.AbstractList
          extended byjava.util.ArrayList
              extended byjavax.management.AttributeList
All Implemented Interfaces:
Cloneable, Collection, List, RandomAccess, Serializable

public class AttributeList
extends ArrayList

A list of a MBean attributes.

An AttributeList can be used to get and set multiple MBean attributes in one invocation.

It is an array list that can only contain Attributes

Note: AttributeLists must be externally synchronized.

Version:
$Revision: 1.2 $
Author:
Adrian Brock.
See Also:
Attribute, Serialized Form

Field Summary
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AttributeList()
          Contruct a new empty attribute list.
AttributeList(AttributeList list)
          Contruct a new attribute from another attribute list.
AttributeList(int initialCapacity)
          Contruct a new empty attriute list with an initial capacity.
 
Method Summary
 void add(Attribute object)
          Append an Attribute to the list.
 void add(int index, Attribute object)
          Insert a new Attribute into the list at the specified location.
 boolean addAll(AttributeList list)
          Append the attributes the passed list to the end of this list.
 boolean addAll(int index, AttributeList list)
          Insert all the attributes in the passed list at the specified location in this list.
 void set(int index, Attribute object)
          Change the attribute at the specified location.
 
Methods inherited from class java.util.ArrayList
add, add, addAll, addAll, clear, clone, contains, ensureCapacity, get, indexOf, isEmpty, lastIndexOf, remove, removeRange, set, size, toArray, toArray, trimToSize
 
Methods inherited from class java.util.AbstractList
equals, hashCode, iterator, listIterator, listIterator, subList
 
Methods inherited from class java.util.AbstractCollection
containsAll, remove, removeAll, retainAll, toString
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
containsAll, equals, hashCode, iterator, listIterator, listIterator, remove, removeAll, retainAll, subList
 

Constructor Detail

AttributeList

public AttributeList()
Contruct a new empty attribute list.


AttributeList

public AttributeList(int initialCapacity)
Contruct a new empty attriute list with an initial capacity.

Parameters:
initialCapacity - the initial capacity reserved.

AttributeList

public AttributeList(AttributeList list)
Contruct a new attribute from another attribute list. The order is determined by the ArrayList's iterator.

Parameters:
list - the attribute list to copy.
Method Detail

add

public void add(Attribute object)
Append an Attribute to the list.

Parameters:
object - the attribute to append.

add

public void add(int index,
                Attribute object)
Insert a new Attribute into the list at the specified location.

Parameters:
index - the location to insert the attribute.
object - the attribute to insert.

set

public void set(int index,
                Attribute object)
Change the attribute at the specified location.

Parameters:
index - the location of he attribute to change.
object - the new attribute.

addAll

public boolean addAll(AttributeList list)
Append the attributes the passed list to the end of this list.

Parameters:
list - the attributes appended.
Returns:
true when the list changes as a result of this operation, false otherwise.

addAll

public boolean addAll(int index,
                      AttributeList list)
Insert all the attributes in the passed list at the specified location in this list.

Parameters:
index - the location where the attributes are inserted.
list - the attributes inserted.
Returns:
true when the list changes as a result of this operation, false otherwise.


Copyright © 2002 JBoss Group, LLC. All Rights Reserved.