public class BaseObject
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
_rcsid |
protected java.util.HashMap |
fields |
| Constructor and Description |
|---|
BaseObject()
Construct an empty one.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear the current object.
|
java.lang.Object |
getValue(java.lang.String fieldName)
Get a field by name.
|
java.util.Iterator |
listFields()
Get the list of fields that currently have
values.
|
void |
setValue(java.lang.String fieldName,
java.lang.Object fieldValue)
Set a field by name.
|
public static final java.lang.String _rcsid
protected java.util.HashMap fields
public void clear()
public java.util.Iterator listFields()
public java.lang.Object getValue(java.lang.String fieldName)
fieldName - is the name of the field.public void setValue(java.lang.String fieldName,
java.lang.Object fieldValue)
fieldName - is the name of the field.fieldValue - is the value, or null if the field should be removed.