com.jrefinery.workbook
Class NamesManager
java.lang.Object
|
+--com.jrefinery.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. |
|
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. |
void |
writeNames(java.io.PrintStream out,
java.lang.String indent)
Writes a names element in the Gnumeric format. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
names
protected java.util.List names
- Storage for the names.
NamesManager
public NamesManager()
- Default constructor.
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.
writeNames
public void writeNames(java.io.PrintStream out,
java.lang.String indent)
- Writes a names element in the Gnumeric format.
- Parameters:
out - The output stream.indent - The indentation.