Class ComplexMetadata

java.lang.Object
io.goobi.viewer.model.metadata.ComplexMetadata

public final class ComplexMetadata extends Object
Representation of one or more Solr documents of DOCTYPE 'Metadata'. Several documents may be combined into one CompleMetadata object if the share the same 'MD_REFID'. They each represent a translation for a different language for the same data. The language is taken from the value of 'LABEL'.
Author:
florian
  • Method Details

    • getFromSolrDoc

      public static ComplexMetadata getFromSolrDoc(org.apache.solr.common.SolrDocument doc)
    • getMetadataFromDocuments

      public static List<ComplexMetadata> getMetadataFromDocuments(List<org.apache.solr.common.SolrDocument> docs)
    • getFromMultilanganguageDocs

      public static ComplexMetadata getFromMultilanganguageDocs(List<org.apache.solr.common.SolrDocument> docs)
    • getField

      public String getField()
    • getType

      public String getType()
    • getOwnerId

      public String getOwnerId()
    • getTopStructIdentifier

      public String getTopStructIdentifier()
    • getId

      public String getId()
    • getMetadata

      public Map<String,List<de.intranda.metadata.multilanguage.IMetadataValue>> getMetadata()
    • getMetadataFields

      public List<String> getMetadataFields()
    • getValues

      public List<de.intranda.metadata.multilanguage.IMetadataValue> getValues(String fieldName)
    • getFirstValue

      public de.intranda.metadata.multilanguage.IMetadataValue getFirstValue(String fieldName)
    • getValues

      public List<String> getValues(String fieldName, Locale locale)
    • getFirstValue

      public String getFirstValue(String fieldName, Locale locale)
    • getValues

      public List<de.intranda.metadata.multilanguage.IMetadataValue> getValues()
    • getFirstValue

      public de.intranda.metadata.multilanguage.IMetadataValue getFirstValue()
    • getValues

      public List<String> getValues(Locale locale)
    • getFirstValue

      public String getFirstValue(Locale locale)
    • hasValue

      public boolean hasValue(String fieldName)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getConfiguredValue

      public de.intranda.metadata.multilanguage.IMetadataValue getConfiguredValue(Metadata config)