Class UnimarcLeader
java.lang.Object
de.gwdg.metadataqa.marc.dao.MarcControlField
de.gwdg.metadataqa.marc.dao.MarcPositionalControlField
de.gwdg.metadataqa.marc.dao.MarcLeader
de.gwdg.metadataqa.marc.dao.UnimarcLeader
- All Implemented Interfaces:
Extractable, Validatable, Serializable
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class MarcLeader
MarcLeader.Type -
Field Summary
Fields inherited from class MarcLeader
baseAddressOfData, bibliographicLevel, defaultType, descriptiveCatalogingForm, encodingLevel, indicatorCount, lengthOfTheImplementationDefinedPortion, lengthOfTheLengthOfFieldPortion, lengthOfTheStartingCharacterPositionPortion, recordLength, recordStatus, subfieldCodeCount, type, typeOfControl, typeOfRecordFields inherited from class MarcPositionalControlField
recordType, valuesList, valuesMapFields inherited from class MarcControlField
content, definition, initializationErrors, marcRecord, validationErrors -
Constructor Summary
ConstructorsConstructorDescriptionUnimarcLeader(UnimarcLeaderDefinition leaderDefinition, String content) UnimarcLeader(UnimarcLeaderDefinition leaderDefinition, String content, MarcLeader.Type defaultType) -
Method Summary
Modifier and TypeMethodDescriptionvoidInitializes the field by processing the content of the leader.protected voidGiven the content of the leader (essentially values of the field with the LEADER tag), e.g. 02794cam0 2200709 450, it processes the content and divides it into the predefined fields within the leader, as well as the map of values.voidsetHierarchicalLevelCode(ControlValue hierarchicalLevelCode) voidsetMarcRecord(BibliographicRecord marcRecord) toString()Methods inherited from class MarcLeader
get, getBaseAddressOfData, getBibliographicLevel, getDescriptiveCatalogingForm, getEncodingLevel, getIndicatorCount, getLeaderString, getLengthOfTheImplementationDefinedPortion, getLengthOfTheLengthOfFieldPortion, getLengthOfTheStartingCharacterPositionPortion, getMap, getRecordLength, getRecordStatus, getSubfieldByPosition, getSubfieldCodeCount, getType, getTypeOfControl, getTypeOfRecord, resolve, resolveMethods inherited from class MarcPositionalControlField
getCardinality, getControlValueByPosition, getKeyValuePairs, getKeyValuePairs, getLabel, getMqTag, getTag, getValuesList, registerControlValueMethods inherited from class MarcControlField
getContent, getDefinition, getInitializationErrors, getKeyValuePairs, getKeyValuePairs, getSolrKey, getValidationErrors, validateMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface Extractable
getKeyValuePairs, getKeyValuePairs, getKeyValuePairsMethods inherited from interface Validatable
getValidationErrors, validate
-
Constructor Details
-
UnimarcLeader
-
UnimarcLeader
public UnimarcLeader(UnimarcLeaderDefinition leaderDefinition, String content, MarcLeader.Type defaultType)
-
-
Method Details
-
initialize
public void initialize()Initializes the field by processing the content of the leader. It also sets the type of the record. Processing the content means that the given content gets divided into the predefined fields within the leader, as well as the map of values, so that the both can be utilized. -
processContent
protected void processContent()Given the content of the leader (essentially values of the field with the LEADER tag), e.g. 02794cam0 2200709 450, it processes the content and divides it into the predefined fields within the leader, as well as the map of values. From the example, the first five characters are the record length, and they get assigned to therecordLengthfield, and so on.- Specified by:
processContentin classMarcPositionalControlField
-
setMarcRecord
- Overrides:
setMarcRecordin classMarcPositionalControlField
-
toString
-
getHierarchicalLevelCode
-
setHierarchicalLevelCode
-