Data Request Broker
2-3-release

fr.gael.drb
Interface DrbAttributeList

All Superinterfaces:
DrbSequence
All Known Implementing Classes:
DrbDefaultAttributeList

public interface DrbAttributeList
extends DrbSequence

Collection of attributes. This interface provides primary operations to handle collections of DrbAttribute.


Method Summary
 int getLength()
          The number of items in the list.
 DrbAttribute getNamedItem(String name)
          Returns the item matching a specific name.
 DrbAttribute item(int index)
          Returns a specific item of the list.
 
Methods inherited from interface fr.gael.drb.DrbSequence
addItem, atomize, getItem, removeItem
 

Method Detail

item

DrbAttribute item(int index)
Returns a specific item of the list. The item is identified by its position (i.e. index or sequence number) in th list of attributes. The order depends on the implementation as well as from the operation that created the list. The index starts from 0 and shall not be greater or equal to the item count of the list. A null reference is returned if the provided index is outside the list bounds.

Parameters:
index - The position of the item starting from 0 and not greater or equal to the item count in the list.
Returns:
A reference to specified item or null if no such attribute.

getNamedItem

DrbAttribute getNamedItem(String name)
Returns the item matching a specific name. The name is a local name without any prefix.

Parameters:
name - The name to match.
Returns:
A reference to specified items or null if no such attribute.

getLength

int getLength()
The number of items in the list. This number can be 0 if the list is empty but shall never be negative.

Specified by:
getLength in interface DrbSequence
Returns:
The number of attributes is the list.

Data Request Broker - DRB API®
2-3-release

Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .