|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.marc4j.marc.impl.SubfieldImpl
public class SubfieldImpl
Represents a subfield in a MARC record.
Constructor Summary | |
---|---|
SubfieldImpl()
Creates a new Subfield . |
|
SubfieldImpl(char code)
Creates a new Subfield and sets the data element
identifier. |
|
SubfieldImpl(char code,
String data)
Creates a new Subfield and sets the data element
identifier and the data element. |
Method Summary | |
---|---|
boolean |
find(String pattern)
Returns true if the given regular expression matches a subsequence of the data element. |
char |
getCode()
Returns the data element identifier. |
String |
getData()
Returns the data element. |
Long |
getId()
Returns the identifier. |
void |
setCode(char code)
Sets the data element identifier. |
void |
setData(String data)
Sets the data element. |
void |
setId(Long id)
Sets the identifier. |
String |
toString()
Returns a string representation of this subfield. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public SubfieldImpl()
Subfield
.
public SubfieldImpl(char code)
Subfield
and sets the data element
identifier.
code
- the data element identifierpublic SubfieldImpl(char code, String data)
Subfield
and sets the data element
identifier and the data element.
code
- the data element identifierdata
- the data elementMethod Detail |
---|
public void setCode(char code)
Subfield
setCode
in interface Subfield
code
- the data element identifierpublic char getCode()
Subfield
getCode
in interface Subfield
public void setData(String data)
Subfield
setData
in interface Subfield
data
- the data elementpublic String getData()
Subfield
getData
in interface Subfield
public boolean find(String pattern)
Subfield
find
in interface Subfield
pattern
- the regular expression
public String toString()
Example:
$aSummerland /
toString
in class Object
public void setId(Long id)
Subfield
The purpose of this identifier is to provide an identifier for persistency.
setId
in interface Subfield
id
- the identifierpublic Long getId()
Subfield
getId
in interface Subfield
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |