public interface FieldManager
Each managed field is represented by a FieldInfo
instance, and is available using the getter methods by name and field number.
Modifier and Type | Field and Description |
---|---|
static int |
DS_FIELDS_MAX
The maximum number of fields that can be used.
|
static int |
DS_FIELDS_NUM_MAX
The maximum field number for any field.
|
static int |
DS_FIELDS_NUM_MIN
The minimum field number for any field.
|
Modifier and Type | Method and Description |
---|---|
void |
addField(String name,
int number)
Adds a new field to this
FieldManager . |
FieldInfo |
getFieldByName(String name)
Gets the FieldInfo for a field, given a field name.
|
FieldInfo |
getFieldByNumber(int num)
Gets the FieldInfo for a field, given a field number.
|
int |
getFieldCount()
The number of configured fields, both those configured
via XML and those added manually using the addField method.
|
Iterator |
iterator()
An iterator of all the existing fields.
|
static final int DS_FIELDS_MAX
static final int DS_FIELDS_NUM_MIN
static final int DS_FIELDS_NUM_MAX
void addField(String name, int number)
Adds a new field to this FieldManager
.
name
- the name of this field.number
- the field number.FieldLimitReachedException
- if DS_FIELDS_MAX
fields have already been added
to the FieldManager.IllegalArgumentException
- if the name or number is already defined,
if the name argument is null, or if the specified number
is less than DS_FIELDS_NUM_MIN
greater than DS_FIELDS_NUM_MAX
.FieldInfo getFieldByName(String name)
name
- the name of the field.FieldInfo getFieldByNumber(int num)
num
- the field number.int getFieldCount()
Iterator iterator()
Please send bug reports and comments to Caplin support