org.marc4j.marc
Interface Leader

All Superinterfaces:
Serializable
All Known Implementing Classes:
LeaderImpl

public interface Leader
extends Serializable

Represents a record label in a MARC record.

Version:
$Revision: 1.15 $
Author:
Bas Peters

Method Summary
 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()
          Returns the identifier.
 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 identifier.
 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).
 void unmarshal(String ldr)
           Creates a leader object from a string object.
 

Method Detail

setId

void setId(Long id)
Sets the identifier.

The purpose of this identifier is to provide an identifier for persistency.

Parameters:
id - the identifier

getId

Long getId()
Returns the identifier.

Returns:
Long - the identifier

setRecordLength

void setRecordLength(int recordLength)
Sets the logical record length (positions 00-04).

Parameters:
recordLength - integer representing the record length

setRecordStatus

void setRecordStatus(char recordStatus)
Sets the record status (position 05).

Parameters:
recordStatus - character representing the record status

setTypeOfRecord

void setTypeOfRecord(char typeOfRecord)
Sets the type of record (position 06).

Parameters:
typeOfRecord - character representing the type of record

setImplDefined1

void setImplDefined1(char[] implDefined1)
Sets implementation defined values (position 07-08).

Parameters:
implDefined1 - character array representing the implementation defined data

setCharCodingScheme

void setCharCodingScheme(char charCodingScheme)
Sets the character encoding scheme (position 09).

Parameters:
charCodingScheme - character representing the character encoding

setIndicatorCount

void setIndicatorCount(int indicatorCount)
Sets the indicator count (position 10).

Parameters:
indicatorCount - integer representing the number of indicators present in a data field

setSubfieldCodeLength

void setSubfieldCodeLength(int subfieldCodeLength)
Sets the subfield code length (position 11).

Parameters:
subfieldCodeLength - integer representing the subfield code length

setBaseAddressOfData

void setBaseAddressOfData(int baseAddressOfData)
Sets the base address of data (positions 12-16).

Parameters:
baseAddressOfData - integer representing the base address of data

setImplDefined2

void setImplDefined2(char[] implDefined2)
Sets implementation defined values (positions 17-19).

Parameters:
implDefined2 - character array representing the implementation defined data

setEntryMap

void setEntryMap(char[] entryMap)
Sets the entry map (positions 20-23).

Parameters:
entryMap - character array representing the entry map

getRecordLength

int getRecordLength()
Returns the logical record length (positions 00-04).

Returns:
int- the record length

getRecordStatus

char getRecordStatus()
Returns the record status (positions 05).

Returns:
char- the record status

getTypeOfRecord

char getTypeOfRecord()
Returns the record type (position 06).

Returns:
char- the record type

getImplDefined1

char[] getImplDefined1()
Returns implementation defined values (positions 07-08).

Returns:
char[]- implementation defined values

getCharCodingScheme

char getCharCodingScheme()
Returns the character coding scheme (position 09).

Returns:
char- the character coding scheme

getIndicatorCount

int getIndicatorCount()
Returns the indicator count (positions 10).

Returns:
int- the indicator count

getSubfieldCodeLength

int getSubfieldCodeLength()
Returns the subfield code length (position 11).

Returns:
int- the subfield code length

getBaseAddressOfData

int getBaseAddressOfData()
Returns the base address of data (positions 12-16).

Returns:
int- the base address of data

getImplDefined2

char[] getImplDefined2()
Returns implementation defined values (positions 17-19).

Returns:
char[]- implementation defined values

getEntryMap

char[] getEntryMap()
Returns the entry map (positions 20-23).

Returns:
char[]- the entry map

unmarshal

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.

Parameters:
ldr - the leader

marshal

String marshal()
Creates a string object from this leader object.

Returns:
String - the string object from this leader object


Copyright © 2002-2006 Bas Peters. All Rights Reserved.