|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.marc4j.marc.impl.VariableFieldImpl
org.marc4j.marc.impl.ControlFieldImpl
public class ControlFieldImpl
Represents a control field in a MARC record.
Constructor Summary | |
---|---|
ControlFieldImpl()
Creates a new ControlField . |
|
ControlFieldImpl(String tag)
Creates a new ControlField and sets the tag name. |
|
ControlFieldImpl(String tag,
String data)
Creates a new ControlField and sets the tag name and the
data element. |
Method Summary | |
---|---|
boolean |
find(String pattern)
Returns true if the given regular expression matches a subsequence of a data element within the variable field. |
String |
getData()
Returns the data element |
Long |
getId()
Returns the identifier. |
void |
setData(String data)
Sets the data element. |
void |
setId(Long id)
Sets the identifier. |
String |
toString()
Returns a string representation of this control field. |
Methods inherited from class org.marc4j.marc.impl.VariableFieldImpl |
---|
compareTo, getTag, setTag |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.marc4j.marc.VariableField |
---|
getTag, setTag |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Constructor Detail |
---|
public ControlFieldImpl()
ControlField
.
public ControlFieldImpl(String tag)
ControlField
and sets the tag name.
public ControlFieldImpl(String tag, String data)
ControlField
and sets the tag name and the
data element.
Method Detail |
---|
public void setData(String data)
ControlField
setData
in interface ControlField
data
- the data elementpublic String getData()
ControlField
getData
in interface ControlField
public String toString()
Example:
001 12883376
toString
in class VariableFieldImpl
public boolean find(String pattern)
VariableField
See Pattern
for more information about Java
regular expressions.
find
in interface VariableField
pattern
- the regular expression
public void setId(Long id)
VariableField
The purpose of this identifier is to provide an identifier for persistency.
setId
in interface VariableField
id
- the identifierpublic Long getId()
VariableField
getId
in interface VariableField
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |