public abstract class TdbStructuredField extends TdbField
| Modifier and Type | Method and Description |
|---|---|
void |
appendValue(java.lang.String val)
Append a new subfield to the field.
|
void |
appendValues(java.util.Collection<java.lang.String> values)
Append several new subfields to the field.
|
void |
clear()
Clear the field's content; leaves the display form intact
|
int |
getFieldSize()
Retrieve the size of the value in the field.
|
java.lang.String |
getValue(int index)
Get the subfield value at the defined index.
|
int |
getValueCount()
Retrieve the count of the values in the field.
|
void |
insertValue(int index,
java.lang.String value)
Inserts a new subfield into the field.
|
void |
insertValues(int index,
java.util.Collection<java.lang.String> values)
Inserts several new subfields into the field.
|
boolean |
isPartial()
Returns true if this field contains a partial value.
|
java.util.List<java.lang.String> |
originalValues()
Retrieve a display form of the field's content -- see TdbField.getOriginalValues()
for more detail.
|
void |
removeValue(int index)
Removes a subfield from the field.
|
void |
setValue(int index,
java.lang.String val)
Set the defined subfield to the provided value.
|
java.lang.String |
toString()
Retrieves a simple newline-delimited version of the field's content, complete
with search term markup, if defined.
|
java.util.List<java.lang.String> |
values()
Retrieve the current content of the field -- see TdbField.getValues() for more
detail.
|
getName, getOwnerComponent, getType, isChangedpublic java.util.List<java.lang.String> originalValues()
originalValues in class TdbFieldpublic java.util.List<java.lang.String> values()
public void clear()
public int getFieldSize()
getFieldSize in class TdbFieldTdbField.getFieldSize()public boolean isPartial()
isPartial in class TdbFieldTdbField.isPartial()public java.lang.String getValue(int index)
throws TdbException
getValue in class TdbFieldindex - Zero-based index of item to retrieveTdbExceptionpublic void setValue(int index,
java.lang.String val)
throws TdbException
setValue in class TdbFieldindex - Zero-based ndex of subfield to modify.val - Value to assignTdbExceptionpublic void appendValue(java.lang.String val)
throws TdbException
appendValue in class TdbFieldval - The value to append to the fieldTdbExceptionpublic void appendValues(java.util.Collection<java.lang.String> values)
throws TdbException
appendValues in class TdbFieldvalues - The value to append to the fieldTdbExceptionpublic int getValueCount()
throws TdbException
getValueCount in class TdbFieldTdbExceptionpublic void insertValue(int index,
java.lang.String value)
throws TdbException
insertValue in class TdbFieldindex - Zero-based index at which to insert the new subfield.value - The value to insert into the field.TdbException - If the index is out of bounds or the value is invalid.public void insertValues(int index,
java.util.Collection<java.lang.String> values)
throws TdbException
insertValues in class TdbFieldindex - Zero-based index at which to insert the new subfield.values - The values to insert into the field.TdbException - If the index is out of bounds or the value is invalid.public void removeValue(int index)
throws TdbException
removeValue in class TdbFieldindex - Zero-based index from which to remove a subfield.TdbException - If the index is out of bounds.