org.jfree.workbook
Class NamesManager

java.lang.Object
  |
  +--org.jfree.workbook.NamesManager

public class NamesManager
extends java.lang.Object

Maintains a list of names.


Field Summary
protected  java.util.List names
          Storage for the names.
 
Constructor Summary
NamesManager()
          Default constructor.
 
Method Summary
 void addName(java.lang.String name, java.lang.String value)
          Adds a name to the list.
 int getNameCount()
          Returns the number of names in the list.
 java.util.Iterator getNamesIterator()
          Returns an iterator that provides access to the names.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

names

protected java.util.List names
Storage for the names.

Constructor Detail

NamesManager

public NamesManager()
Default constructor.

Method Detail

addName

public void addName(java.lang.String name,
                    java.lang.String value)
Adds a name to the list. Need to add code to make sure the name is not a duplicate and some checks on the validity of the name.

Parameters:
name - the name.
value - the value.

getNameCount

public int getNameCount()
Returns the number of names in the list.

Returns:
The number of names in the list.

getNamesIterator

public java.util.Iterator getNamesIterator()
Returns an iterator that provides access to the names.

Returns:
The iterator.