|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ORG.oclc.fmts.MarcBuilder
The MarcBuilder class has the utilities to build a Marc record from a DataDir. It is used by the ZBase Newton formatting classes to build MARC records to return in a Z39.50 response.
Field Summary | |
protected int |
charSet
integer data type containing the character set of the input data. |
boolean |
orderNumerically
boolean indicating whether to order input nodes numerically or leave them alone and let the caller be responsible for the order. |
Constructor Summary | |
MarcBuilder()
Constructs a MarcBuilder object. |
Method Summary | |
void |
addAllAsSubfield(int marcTag,
char marcSubfieldChar,
DataDir dir)
Adds all the sub-Elements of the input Directory node to the Marc record as subfields of the input tag using the input character subfield identifer. |
void |
addAllWithOriginalSubfield(int marcTag,
DataDir dir)
Adds all the sub-Elements of the input Directory node to the Marc record as subfields of the input tag using their original subfield character. |
void |
addFieldData(int marcTag,
int data)
Adds a new Marc Field for the input tag and integer data. |
void |
addFieldData(int marcTag,
int data,
boolean newNode)
Adds a new Marc Field for the input tag and integer data and adds a new Marc node for the tag if the input boolean is true. |
void |
addFieldData(int marcTag,
String data)
Adds a new Marc Field for the input tag and String data. |
void |
addFieldData(int marcTag,
String data,
boolean newNode)
Adds a new Marc Field for the input tag and String data and adds a new Marc node for the tag if the input boolean is true. |
void |
addIndicators(int marcTag,
String data)
Add the indicators to the Marc field for the input marc tag and String data. |
void |
addOnlySubfield(int marcTag,
char subfieldChar,
DataDir dir)
Adds only the sub-Elements of the input Directory node to the Marc record as subfields of the input tag if they match the input character subfield identifer. |
void |
addSubFieldData(int marcTag,
char subfield,
int data)
Adds a new Marc Subfield for the input tag, character subfield identifier, and integer data. |
void |
addSubFieldData(int marcTag,
char subfield,
int data,
boolean newNode)
Adds a new Marc Subfield for the input tag, character subfield identifier, integer data, and creates a new Marc node for the tag if the input boolean is true. |
void |
addSubFieldData(int marcTag,
char subfield,
String data)
Adds a new Marc Subfield for the input tag, character subfield identifier, String data and the subfield is added under the existing tag if it already exists. |
void |
addSubFieldData(int marcTag,
char subfield,
String data,
boolean newNode)
Adds a new Marc Subfield for the input tag, character subfield identifier, String data, and creates a new Marc Node if the input boolean is true. |
void |
addSubFieldData(int marcTag,
int subfieldTag,
String data)
Adds a new Marc Subfield for the input tag, integer subfield identifier, and String data. |
void |
addSubFieldData(int marcTag,
int subfieldTag,
String data,
boolean newNode)
Adds a new Marc Subfield for the input tag, integer subfield identifier, String data, and creates a new Marc node for the tag if the input boolean is true. |
void |
appendHoldingsData(DataDir dir)
Parses the OCLC Library Holdings Directory tag (277) to create the MarcNode in field 948. |
void |
appendSubFieldData(int marcTag,
char subfield,
String data)
Appends data to existing Marc Subfield for the input tag, character subfield identifier, and String data. |
void |
appendSubFieldData(int marcTag,
int subfieldTag,
String data)
Appends data to an existing Marc Subfield for the input tag, integer subfield identifier, and String data. |
char |
bibliographicLevel()
Returns a character containing the MARC bibliographic level. |
void |
bibliographicLevel(char bibliographicLevel)
Sets the bibliographic Level to the input character. |
String |
buildIt()
Builds ands returns a Marc record String from all the nodes stored in MarcBuilder. |
char |
catalogingSourceCode()
Returns a character containing the MARC cataloging source code. |
void |
catalogingSourceCode(char code)
Sets the cataloging Source Code to the input character. |
void |
charSet(int charSet)
Sets the character set value for the input Data. |
void |
contentsNature(String contentsCodes)
Sets MARC 008 nature of contents value to the input string. |
void |
countryCode(String countryCode)
Sets the Country of Publication Code to the input string. |
String |
date1()
Returns a String containing the MARC 008 date1 field. |
void |
date1(String date)
Sets the date1 value to the input string. |
String |
date2()
Returns a String containing the MARC 008 date2 field. |
void |
date2(String date)
Sets the date2 value to the input string. |
String |
dateRecordEntered()
Returns a String containing the MARC date record entered. |
void |
dateRecordEntered(String date)
Sets the date record entered to the input string - If the charSet=EBCDIC, the input data is converted to ASCII |
char |
descriptiveCatalogingForm()
Returns a character containing the MARC descriptivce Cataloging Form; |
void |
descriptiveCatalogingForm(char code)
Sets the descriptive Cataloging Form to the input character. |
char |
encodingLevel()
Returns a character containing the MARC encoding level. |
void |
encodingLevel(char encodingLevel)
Sets the encoding level to the input character. |
char |
formOfItem()
Returns a character containing the MARC-008 form of item. |
DataDir |
getDir(int rootFieldid)
Converts the marc string to a DataDir object. |
char |
govtPubCode()
Returns a character containing the MARC-008 government publication code. |
void |
govtPublicationCode(char code)
Sets the fixed field 008 government publication code to the input character. |
void |
init()
Initializes the MarcBuilder for a new Marc record. |
void |
itemForm(char form)
Sets the fixed field 008 form of item to the input character. |
void |
languageCode(String languageCode)
Sets the language Code to the input string. |
String |
languageIndex()
Returns a String containing the MARC language index. |
String |
marcString()
Returns a String containing the Marc data record. |
char |
modifiedRecordIndicator()
Returns a character containing the MARC modified record value. |
void |
modifiedRecordIndicator(char indicator)
Sets the modifiedRecordIndicator to the input character. |
String |
natureOfContents()
Returns a String containing the MARC 008 nature of contents (bytes 24-27) field. |
void |
newField(int marcTag)
Creates a new Marc field node for the input marcTag. |
void |
publicationStatus(char status)
Sets the fixed field 008 publicationStatus to the input character. |
char |
pubStatus()
Returns a character containing the MARC-008 publication status. |
char |
recordStatus()
Returns a character containing the MARC record status. |
void |
recordStatus(char recordStatus)
Sets the recordStatus to the input character recordStatus. |
char |
recordType()
Returns a character containing the MARC record type. |
void |
recordType(char recordType)
Sets the Marc recordType to the input character. |
void |
serialType(char type)
Sets the fixed field 008 serial type to the input character. |
String |
testMarcValidity()
Tests the validity of the formatted marc string by creating a DataDir of the MarcBuilder object and returns a String with the results. |
String |
toString()
Generates a String representation of this object. |
char |
typeOfSerial()
Returns a character containing the MARC-008 serialType. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
wait,
wait,
wait |
Field Detail |
protected int charSet
public boolean orderNumerically
Constructor Detail |
public MarcBuilder()
Method Detail |
public void init()
public final char recordStatus()
public final char recordType()
public final char bibliographicLevel()
public final char encodingLevel()
public final String natureOfContents()
public final String dateRecordEntered()
public final String date1()
public final String date2()
public final String languageIndex()
public final char modifiedRecordIndicator()
public final char catalogingSourceCode()
public final char descriptiveCatalogingForm()
public final char pubStatus()
public final char typeOfSerial()
public final char formOfItem()
public final char govtPubCode()
public final void recordStatus(char recordStatus)
recordStatus
- public final void publicationStatus(char status)
publication
- statuspublic final void serialType(char type)
publication
- statuspublic final void itemForm(char form)
form
- - the code of the form of itempublic final void govtPublicationCode(char code)
code
- char indicating the value to set the code.public final void recordType(char recordType)
public final void bibliographicLevel(char bibliographicLevel)
public final void encodingLevel(char encodingLevel)
public final void charSet(int charSet)
public final void dateRecordEntered(String date)
public final void date1(String date)
public final void date2(String date)
public final void contentsNature(String contentsCodes)
public final void countryCode(String countryCode)
public final void languageCode(String languageCode)
public final void modifiedRecordIndicator(char indicator)
the
- indicatorpublic final void catalogingSourceCode(char code)
public final void descriptiveCatalogingForm(char code)
public final void newField(int marcTag)
marcTag
- the MARC tag valuepublic final void addAllAsSubfield(int marcTag, char marcSubfieldChar, DataDir dir)
marcTag
- the MarcTag for the datamarcSubfieldChar
- the subfield for all the data elementsdir
- the root directory node to retrieve all the elements frompublic final void addOnlySubfield(int marcTag, char subfieldChar, DataDir dir)
marcTag
- the MarcTag for the datasubfieldChar
- the subfield to look fordir
- the root directory node to retrieve all the elements frompublic final void addAllWithOriginalSubfield(int marcTag, DataDir dir)
marcTag
- the MarcTag for the datadir
- the root directory node to retrieve all the elements frompublic final void addFieldData(int marcTag, String data)
marcTag
- the MARC tagdata
- the MARC datapublic final void addFieldData(int marcTag, String data, boolean newNode)
marcTag
- the MARC tagdata
- the MARC datanewNode
- boolean indicating whether a new marc node for the input tag should be createdpublic final void addFieldData(int marcTag, int data)
marcTag
- the MARC tagdata
- the integer MARC datapublic final void addFieldData(int marcTag, int data, boolean newNode)
marcTag
- the MARC tagdata
- the integer MARC datanewNode
- boolean indicating whether a new marc node for the input tag should be createdpublic final void addIndicators(int marcTag, String data)
marcTag
- the MARC tagdata
- the indicator string - should be 2 charspublic final void addSubFieldData(int marcTag, char subfield, String data)
marcTag
- the MARC tagsubfield
- the subfield characterdata
- the field datapublic final void addSubFieldData(int marcTag, char subfield, String data, boolean newNode)
marcTag
- the MARC tagsubfield
- the subfield characterdata
- the field datanewNode
- boolean indicating whether a new marc node for the input tag should be createdpublic final void addSubFieldData(int marcTag, int subfieldTag, String data)
marcTag
- the MARC tagsubfieldTag
- the integer value of the subfield that
will get converted to the appropriate characterdata
- the subfield datapublic final void addSubFieldData(int marcTag, int subfieldTag, String data, boolean newNode)
marcTag
- the MARC tagsubfieldTag
- the integer value of the subfield that
will get converted to the appropriate characterdata
- the subfield datanewNode
- boolean indicating whether a new marc node for the input tag should be createdpublic final void addSubFieldData(int marcTag, char subfield, int data)
marcTag
- the MARC tagsubfield
- the subfield characterdata
- the integer field datapublic final void addSubFieldData(int marcTag, char subfield, int data, boolean newNode)
marcTag
- the MARC tagsubfield
- the subfield characterdata
- the integer field datanewNode
- boolean indicating whether a new marc node for the input tag should be createdpublic final void appendSubFieldData(int marcTag, char subfield, String data)
marcTag
- the MARC tagsubfield
- the subfield charcterdata
- the field datapublic final void appendSubFieldData(int marcTag, int subfieldTag, String data)
marcTag
- the MARC tagsubfieldTag
- the integer value of the subfield that
will get converted to the appropriate characterdata
- the subfield datapublic final void appendHoldingsData(DataDir dir)
dir
- pointing to the 277 tagFormatBerUtil
public String testMarcValidity()
public DataDir getDir(int rootFieldid)
public String toString()
public String marcString()
public String buildIt()
|
Open SiteSearch 4.1.1 Final |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |