public interface DataField extends VariableField
Data fields are variable fields identified by tags beginning with ASCII numeric values other than two zero's. Data fields contain indicators, subfield codes, data and a field terminator.
| Modifier and Type | Method and Description |
|---|---|
void |
addSubfield(int aIndex,
Subfield aSubfield)
Inserts a
Subfield at the specified position. |
void |
addSubfield(Subfield aSubfield)
Adds the supplied
Subfield to the DataField. |
int |
countSubfields()
Returns the number of subfields in this
DataField. |
char |
getIndicator1()
Returns the first indicator of the
DataField |
char |
getIndicator2()
Returns the second indicator of the
DataField. |
Subfield |
getSubfield(char aCode)
Returns the first
Subfield with the given code. |
List<Subfield> |
getSubfields()
|
List<Subfield> |
getSubfields(char aCode)
|
void |
removeSubfield(Subfield aSubfield)
Removes a
Subfield. |
void |
setIndicator1(char aFirstInd)
Sets the first indicator of the
DataField. |
void |
setIndicator2(char aSecondInd)
Sets the second indicator of the
DataField. |
compareTochar getIndicator1()
DataFieldDataFieldvoid setIndicator1(char aFirstInd)
DataField.aFirstInd - The first indicator of the DataFieldchar getIndicator2()
DataField.DataFieldvoid setIndicator2(char aSecondInd)
DataField.aSecondInd - The second indicator of the DataFieldSubfield getSubfield(char aCode)
Subfield with the given code.aCode - The subfield code of the Subfield to returnSubfield or null if no subfield is foundvoid addSubfield(Subfield aSubfield)
Subfield to the DataField.aSubfield - The Subfield objectIllegalAddException - when the parameter is not a
Subfield instancevoid addSubfield(int aIndex,
Subfield aSubfield)
Subfield at the specified position.aIndex - The position at which to add the SubfieldaSubfield - The Subfield to add to the
DataFieldIllegalAddException - when the supplied Subfield is of
the wrong typevoid removeSubfield(Subfield aSubfield)
Subfield.aSubfield - The Subfield to removeint countSubfields()
DataField.DataFieldCopyright © 2014 FreeLibrary. All Rights Reserved.