public class LeaderImpl extends Object implements Leader
| Constructor and Description |
|---|
LeaderImpl()
Default constructor.
|
LeaderImpl(String ldr)
Creates a new leader from a String object.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getBaseAddressOfData()
Returns the base address of data (positions 12-16).
|
char |
getCharCodingScheme()
Returns the character coding scheme (position 09).
|
char[] |
getEntryMap()
Returns the entry map (positions 20-23).
|
Long |
getId()
Gets the ID of the leader.
|
char[] |
getImplDefined1()
Returns implementation defined values (positions 07-08).
|
char[] |
getImplDefined2()
Returns implementation defined values (positions 17-19).
|
int |
getIndicatorCount()
Returns the indicator count (positions 10).
|
int |
getRecordLength()
Returns the logical record length (positions 00-04).
|
char |
getRecordStatus()
Returns the record status (positions 05).
|
int |
getSubfieldCodeLength()
Returns the subfield code length (position 11).
|
char |
getTypeOfRecord()
Returns the record type (position 06).
|
String |
marshal()
Creates a string object from this leader object.
|
void |
setBaseAddressOfData(int baseAddressOfData)
Sets the base address of data (positions 12-16).
|
void |
setCharCodingScheme(char charCodingScheme)
Sets the character encoding scheme (position 09).
|
void |
setEntryMap(char[] entryMap)
Sets the entry map (positions 20-23).
|
void |
setId(Long id)
Sets the ID for the leader.
|
void |
setImplDefined1(char[] implDefined1)
Sets implementation defined values (position 07-08).
|
void |
setImplDefined2(char[] implDefined2)
Sets implementation defined values (positions 17-19).
|
void |
setIndicatorCount(int indicatorCount)
Sets the indicator count (position 10).
|
void |
setRecordLength(int recordLength)
Sets the logical record length (positions 00-04).
|
void |
setRecordStatus(char recordStatus)
Sets the record status (position 05).
|
void |
setSubfieldCodeLength(int subfieldCodeLength)
Sets the subfield code length (position 11).
|
void |
setTypeOfRecord(char typeOfRecord)
Sets the type of record (position 06).
|
String |
toString()
Returns a string representation of this leader.
|
void |
unmarshal(String ldr)
Creates a leader object from a string object.
|
public LeaderImpl()
public LeaderImpl(String ldr)
ldr - the leader string valuepublic void setRecordLength(int recordLength)
setRecordLength in interface LeaderrecordLength - integer representing the record lengthpublic void setRecordStatus(char recordStatus)
setRecordStatus in interface LeaderrecordStatus - character representing the record statuspublic void setTypeOfRecord(char typeOfRecord)
setTypeOfRecord in interface LeadertypeOfRecord - character representing the type of recordpublic void setImplDefined1(char[] implDefined1)
setImplDefined1 in interface LeaderimplDefined1 - character array representing the implementation
defined datapublic void setCharCodingScheme(char charCodingScheme)
setCharCodingScheme in interface LeadercharCodingScheme - character representing the character encodingpublic void setIndicatorCount(int indicatorCount)
setIndicatorCount in interface LeaderindicatorCount - integer representing the number of indicators
present in a data fieldpublic void setSubfieldCodeLength(int subfieldCodeLength)
setSubfieldCodeLength in interface LeadersubfieldCodeLength - integer representing the subfield code lengthpublic void setBaseAddressOfData(int baseAddressOfData)
setBaseAddressOfData in interface LeaderbaseAddressOfData - integer representing the base address of datapublic void setImplDefined2(char[] implDefined2)
setImplDefined2 in interface LeaderimplDefined2 - character array representing the implementation
defined datapublic void setEntryMap(char[] entryMap)
setEntryMap in interface LeaderentryMap - character array representing the entry mappublic int getRecordLength()
getRecordLength in interface Leaderint- the record lengthpublic char getRecordStatus()
getRecordStatus in interface Leaderchar- the record statuspublic char getTypeOfRecord()
getTypeOfRecord in interface Leaderchar- the record typepublic char[] getImplDefined1()
getImplDefined1 in interface Leaderchar[]- implementation defined valuespublic char getCharCodingScheme()
getCharCodingScheme in interface Leaderchar- the character coding schemepublic int getIndicatorCount()
getIndicatorCount in interface Leaderint- the indicator countpublic int getSubfieldCodeLength()
getSubfieldCodeLength in interface Leaderint- the subfield code lengthpublic int getBaseAddressOfData()
getBaseAddressOfData in interface Leaderint- the base address of datapublic char[] getImplDefined2()
getImplDefined2 in interface Leaderchar[]- implementation defined valuespublic char[] getEntryMap()
getEntryMap in interface Leaderchar[]- the entry mappublic void unmarshal(String ldr)
Creates a leader object from a string object.
Indicator count and subfield code length are defaulted to 2 if they are not integer values.
public String marshal()
public String toString()
Example:
00714cam a2200205 a 4500
public void setId(Long id)
Copyright © 2014 FreeLibrary. All Rights Reserved.