Data Request Broker
2-3-release

fr.gael.drb
Class DrbAbstractNodeList

java.lang.Object
  extended by fr.gael.drb.DrbAbstractSequence
      extended by fr.gael.drb.DrbAbstractNodeList
All Implemented Interfaces:
DrbNodeList, DrbSequence

public abstract class DrbAbstractNodeList
extends DrbAbstractSequence
implements DrbNodeList

This class provides a skeletal implementation of the DrbNodeList interface, to minimize the effort required to implement this interface.


Constructor Summary
DrbAbstractNodeList()
           
 
Method Summary
 DrbItem getItem(int index)
          Returns a specific item of the list.
 DrbNode getNamedItem(String name, int occurence)
          Returns an occurence of item matching a specific name.
 
Methods inherited from class fr.gael.drb.DrbAbstractSequence
addItem, addItem, atomize, removeItem
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface fr.gael.drb.DrbNodeList
getLength, item
 
Methods inherited from interface fr.gael.drb.DrbSequence
addItem, atomize, removeItem
 

Constructor Detail

DrbAbstractNodeList

public DrbAbstractNodeList()
Method Detail

getItem

public DrbItem getItem(int index)
Returns a specific item of the list.

Specified by:
getItem in interface DrbSequence
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 item.

getNamedItem

public DrbNode getNamedItem(String name,
                            int occurence)
Returns an occurence of item matching a specific name. The occurence number starts from 1. The name is a local name without any prefix.A null reference is returned if the provided occurrence is outside the list bounds.

Specified by:
getNamedItem in interface DrbNodeList
Parameters:
name - The name to match.
occurence - The occurence number of the desired child.
Returns:
A reference to specified item or null if no such node.

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

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