Package io.goobi.viewer.model.metadata
Class ComplexMetadata
java.lang.Object
io.goobi.viewer.model.metadata.ComplexMetadata
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 Summary
Modifier and TypeMethodDescriptionde.intranda.metadata.multilanguage.IMetadataValue
getConfiguredValue
(Metadata config) getField()
de.intranda.metadata.multilanguage.IMetadataValue
de.intranda.metadata.multilanguage.IMetadataValue
getFirstValue
(String fieldName) getFirstValue
(String fieldName, Locale locale) getFirstValue
(Locale locale) static ComplexMetadata
getFromMultilanganguageDocs
(List<org.apache.solr.common.SolrDocument> docs) static ComplexMetadata
getFromSolrDoc
(org.apache.solr.common.SolrDocument doc) getId()
static List<ComplexMetadata>
getMetadataFromDocuments
(List<org.apache.solr.common.SolrDocument> docs) getType()
List<de.intranda.metadata.multilanguage.IMetadataValue>
List<de.intranda.metadata.multilanguage.IMetadataValue>
boolean
toString()
-
Method Details
-
getFromSolrDoc
-
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
-
getType
-
getOwnerId
-
getTopStructIdentifier
-
getId
-
getMetadata
-
getMetadataFields
-
getValues
-
getFirstValue
-
getValues
-
getFirstValue
-
getValues
-
getFirstValue
public de.intranda.metadata.multilanguage.IMetadataValue getFirstValue() -
getValues
-
getFirstValue
-
hasValue
-
toString
-
getConfiguredValue
-