public interface Record extends Serializable
| Modifier and Type | Method and Description |
|---|---|
void |
addVariableField(VariableField field)
Adds a
VariableField. |
List<VariableField> |
find(String pattern)
Returns a List of VariableField objects that have a data element that
matches the given regular expression.
|
List<VariableField> |
find(String[] tag,
String pattern)
Returns a List of VariableField objects with the given tags that have a
data element that matches the given regular expression.
|
List<VariableField> |
find(String tag,
String pattern)
Returns a List of VariableField objects with the given tag that have a
data element that matches the given regular expression.
|
List<ControlField> |
getControlFields()
Returns a list of control fields
|
String |
getControlNumber()
Returns the control number or
null if no control number is
available. |
ControlField |
getControlNumberField()
Returns the control number field or
null if no control
number field is available. |
List<DataField> |
getDataFields()
Returns a list of data fields
|
Long |
getId()
Returns the identifier.
|
Leader |
getLeader()
Returns the
Leader. |
String |
getType()
Returns the type of record.
|
VariableField |
getVariableField(String tag)
Returns the first instance of the variable field with the given tag.
|
List<VariableField> |
getVariableFields()
Returns a list of variable fields
|
List<VariableField> |
getVariableFields(String tag)
Returns a list of variable fields with the given tag.
|
List<VariableField> |
getVariableFields(String[] tag)
Returns a list of variable fields for the given tags.
|
void |
removeVariableField(VariableField field)
Removes a variable field from the collection.
|
void |
setId(Long id)
Sets the identifier.
|
void |
setLeader(Leader leader)
Sets the
Leader. |
void |
setType(String type)
Sets the type of record.
|
void setId(Long id)
id - the identifierLong getId()
void setType(String type)
type - the type of recordString getType()
void addVariableField(VariableField field)
VariableField.field - the VariableFieldvoid removeVariableField(VariableField field)
field - the variable fieldList<VariableField> getVariableFields()
List<ControlField> getControlFields()
List<DataField> getDataFields()
ControlField getControlNumberField()
null if no control
number field is available.String getControlNumber()
null if no control number is
available. This method returns the data for a ControlField
with tag 001.VariableField getVariableField(String tag)
List<VariableField> getVariableFields(String tag)
List<VariableField> getVariableFields(String[] tag)
For example:
String tags = { "100", "245", "260", "300" };
List fields = record.getVariableFields(tags);
Leader getLeader()
Leader.Leadervoid setLeader(Leader leader)
Leader.leader - the LeaderList<VariableField> find(String pattern)
See Pattern for more information about Java
regular expressions.
pattern - the regular expressionList<VariableField> find(String tag, String pattern)
See Pattern for more information about Java
regular expressions.
tag - the tag valuepattern - the regular expressionList<VariableField> find(String[] tag, String pattern)
See Pattern for more information about Java
regular expressions.
tag - the tag valuespattern - the regular expressionCopyright © 2014 FreeLibrary. All Rights Reserved.