public class ControlFieldImpl extends VariableFieldImpl implements ControlField
Control fields are variable fields identified by tags beginning with two zero's. They are comprised of data and a field terminator and do not contain indicators or subfield codes. The structure of a control field according to the MARC standard is as follows:
DATA_ELEMENT FIELD_TERMINATOR
| Modifier and Type | Method and Description |
|---|---|
boolean |
find(String aPattern)
Finds a match to a regular expression pattern in the
ControlField
's data. |
String |
getData()
Gets the
ControlField data. |
void |
setData(String aData)
Sets the
ControlField data. |
void |
setTag(String aTag)
Sets the tag of a
ControlField. |
String |
toString()
Returns a string representation of this control field.
|
compareTo, getId, getTag, setIdclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitgetId, getTag, setIdcompareTopublic void setTag(String aTag)
ControlField.setTag in interface VariableFieldsetTag in class VariableFieldImplaTag - The tag of a ControlFieldpublic void setData(String aData)
ControlField data.setData in interface ControlFieldaData - The data for the ControlFieldpublic String getData()
ControlField data.getData in interface ControlFieldControlField's datapublic String toString()
For example:
001 12883376
toString in class VariableFieldImplpublic boolean find(String aPattern)
ControlField
's data.find in interface VariableFieldaPattern - The regular expression pattern to compare against the
ControlField's dataCopyright © 2014 FreeLibrary. All Rights Reserved.