Class UnimarcFunctionalAnalyzer
java.lang.Object
de.gwdg.metadataqa.marc.analysis.functional.FunctionalAnalyzer
de.gwdg.metadataqa.marc.analysis.functional.UnimarcFunctionalAnalyzer
Analyzes a UNIMARC record and counts the FRBR functions. In other words, it counts how many FRBR user tasks are
supported by the provided record.
-
Field Summary
Fields inherited from class de.gwdg.metadataqa.marc.analysis.functional.FunctionalAnalyzer
frbrFunctionLister, recordCounter -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidanalyzeRecord(BibliographicRecord bibliographicRecord) Should be implemented to analyze a record and count the FRBR functions.protected voidcountDataField(DataFieldDefinition definition, DataField dataField, Map<FRBRFunction, FunctionValue> recordCounter) Methods inherited from class de.gwdg.metadataqa.marc.analysis.functional.FunctionalAnalyzer
addRecordCounterToCollector, addRecordCounterToHistogram, calculatePercentage, consumeRecord, countDataFields, countFunctions, getCollector, getFrbrFunctionLister, getHistogram, initializeCounter, percentOf, prepareHistogram
-
Constructor Details
-
UnimarcFunctionalAnalyzer
-
-
Method Details
-
analyzeRecord
Description copied from class:FunctionalAnalyzerShould be implemented to analyze a record and count the FRBR functions. It should create the recordCounter map and return it. It is used in the method consumeRecord().- Specified by:
analyzeRecordin classFunctionalAnalyzer- Parameters:
bibliographicRecord- The record to be analyzed and counted.
-
countDataField
protected void countDataField(DataFieldDefinition definition, DataField dataField, Map<FRBRFunction, FunctionValue> recordCounter) - Specified by:
countDataFieldin classFunctionalAnalyzer
-