fr.gael.drb
Class DrbAbstractNodeList
java.lang.Object
fr.gael.drb.DrbAbstractSequence
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.
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DrbAbstractNodeList
public DrbAbstractNodeList()
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.
Copyright© 2001-2009 GAEL Consultant. All rights reserved. Use is subject to license terms .