public interface Record
extends java.io.Serializable, java.lang.Cloneable
Essentially, a Record is defined as an object whose state is entirely mutable through public methods; this makes them easily saved, restored, edited, and cloned.
| Modifier and Type | Method and Description |
|---|---|
java.lang.Object |
clone()
Clones the Record.
|
java.util.Iterator |
editableFields()
A list of PropertyDescriptors describing all the editable (readable and
writable) in this Record.
|
java.util.Map |
getAllFieldValues()
Field values for all readable fields.
|
FieldDef |
getField(java.lang.String fieldName)
Returns a PropertyDescriptor for the given field.
|
java.lang.Object |
getFieldValue(java.lang.String fieldName)
Gets the value for a given field.
|
java.util.Map |
getFieldValues()
Field values for all editable fields.
|
java.util.Iterator |
readableFields()
A list of PropertyDescriptors describing all the readable fields in this
Record.
|
void |
setFieldValue(java.lang.String fieldName,
java.lang.Object value)
Sets the value for a given field.
|
void |
setFieldValues(java.util.Map newFields)
Sets field values.
|
FieldDef getField(java.lang.String fieldName)
java.util.Iterator readableFields()
java.util.Iterator editableFields()
java.lang.Object getFieldValue(java.lang.String fieldName)
throws NoSuchFieldInRecordException
NoSuchFieldInRecordExceptionvoid setFieldValue(java.lang.String fieldName,
java.lang.Object value)
throws NoSuchFieldInRecordException,
java.lang.IllegalArgumentException
NoSuchFieldInRecordExceptionjava.lang.IllegalArgumentExceptionjava.util.Map getFieldValues()
java.util.Map getAllFieldValues()
void setFieldValues(java.util.Map newFields)
Invalid fields are ignored.
newFields - A dictionary of fieldnames associated with their values.java.lang.Object clone()