|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Record
Represents a MARC record.
Method Summary | |
---|---|
void |
addVariableField(VariableField field)
Adds a VariableField . |
List |
find(String pattern)
Returns a List of VariableField objects that have a data element that matches the given regular expression. |
List |
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 |
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 |
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 |
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 |
getVariableFields()
Returns a list of variable fields |
List |
getVariableFields(String tag)
Returns a list of variable fields with the given tag. |
List |
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. |
Method Detail |
---|
void setId(Long id)
The purpose of this identifier is to provide an identifier for persistency.
id
- the identifierLong getId()
void setType(String type)
type
- the type of recordString getType()
void addVariableField(VariableField field)
VariableField
.
field
- the VariableField
IllegalAddException
- when the parameter is not a VariableField
instancevoid removeVariableField(VariableField field)
field
- the variable fieldList getVariableFields()
List getControlFields()
List 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 getVariableFields(String tag)
List getVariableFields(String[] tag)
For example:
String tags = { "100", "245", "260", "300" }; List fields = record.getVariableFields(tags);
Leader getLeader()
Leader
.
Leader
void setLeader(Leader leader)
Leader
.
leader
- the Leader
List find(String pattern)
See Pattern
for more information about Java
regular expressions.
pattern
- the regular expression
List find(String tag, String pattern)
See Pattern
for more information about Java
regular expressions.
tag
- the tag valuepattern
- the regular expression
List find(String[] tag, String pattern)
See Pattern
for more information about Java
regular expressions.
tag
- the tag valuespattern
- the regular expression
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |