public class SubfieldImpl extends Object implements Subfield
| Constructor and Description |
|---|
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. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
find(String pattern)
|
char |
getCode()
Gets the
Subfield code. |
String |
getData()
Gets the
Subfield data. |
Long |
getId()
Gets the ID for this
Subfield. |
void |
setCode(char code)
Sets the
Subfield code. |
void |
setData(String data)
Sets the
Subfield data. |
void |
setId(Long id)
Sets the ID for this
Subfield. |
String |
toString()
Returns a string representation of this subfield.
|
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 elementpublic void setCode(char code)
Subfield code.public char getCode()
Subfield code.public boolean find(String pattern)
public String toString()
Example:
$aSummerland /
Copyright © 2014 FreeLibrary. All Rights Reserved.