Class MarcSubfield

java.lang.Object
de.gwdg.metadataqa.marc.MarcSubfield
All Implemented Interfaces:
Serializable

public class MarcSubfield extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • getCode

      public String getCode()
    • getValue

      public String getValue()
    • getField

      public DataField getField()
    • setField

      public void setField(DataField field)
    • getLinkage

      public Linkage getLinkage()
    • setLinkage

      public void setLinkage(Linkage linkage)
    • getReferencePath

      public String getReferencePath()
    • setReferencePath

      public void setReferencePath(String referencePath)
    • getLabel

      public String getLabel()
    • resolve

      public String resolve()
      Resolve the subfield value.
      Returns:
      Either the original value of the subfield or its label.
    • split

      public List<String> split()
    • getDefinition

      public SubfieldDefinition getDefinition()
    • setDefinition

      public void setDefinition(SubfieldDefinition definition)
    • getMarcRecord

      public BibliographicRecord getMarcRecord()
    • setMarcRecord

      public void setMarcRecord(BibliographicRecord marcRecord)
    • getCodeForIndex

      public String getCodeForIndex()
      Get the index code for this subfield. If there's no definition, the code is just the subfield code. If there's a definition, the code is the index code from the definition. E.g. no definition: "a" -> "_a", definition: see SubfieldDefinition.getCodeForIndex()
      Returns:
      The index code for this subfield.
      See Also:
    • parseContent

      public Map<String,String> parseContent()
    • getKeyValuePairs

      public Map<String,List<String>> getKeyValuePairs(DataFieldKeyGenerator keyGenerator)
    • toString

      public String toString()
      Overrides:
      toString in class Object