Class MetadataValue

java.lang.Object
io.goobi.viewer.model.metadata.MetadataValue
All Implemented Interfaces:
Serializable

public class MetadataValue extends Object implements Serializable
Wrapper class for metadata parameter value groups, so that JSF can iterate through them properly.
See Also:
  • Method Details

    • isParamValueBlank

      public boolean isParamValueBlank(int index)
      Parameters:
      index -
      Returns:
      true if value at index blank; false otherwise
    • isAllParamValuesBlank

      public boolean isAllParamValuesBlank()
      Returns:
      true if all of the param values are empty or blank; false otherwise
    • getComboValueShort

      public String getComboValueShort(int index)

      getComboValueShort.

      Parameters:
      index - a int.
      Returns:
      a String object.
    • getParamLabelWithColon

      public String getParamLabelWithColon(int index)

      getParamLabelWithColon.

      Parameters:
      index - a int.
      Returns:
      the paramLabels
    • getParamLabels

      public List<String> getParamLabels()

      Getter for the field paramLabels.

      Returns:
      the paramLabels
    • getParamValues

      public List<List<String>> getParamValues()

      Getter for the field paramValues.

      Returns:
      the paramValues
    • getParamMasterValueFragments

      public List<String> getParamMasterValueFragments()

      Getter for the field paramMasterValueFragments.

      Returns:
      the paramMasterValueFragments
    • getParamPrefixes

      public List<String> getParamPrefixes()

      Getter for the field paramPrefixes.

      Returns:
      the paramPrefixes
    • getParamSuffixes

      public List<String> getParamSuffixes()

      Getter for the field paramSuffixes.

      Returns:
      the paramSuffixes
    • getParamUrls

      public List<String> getParamUrls()

      Getter for the field paramUrls.

      Returns:
      the paramUrls
    • getNormDataUrls

      public Map<String,String> getNormDataUrls()

      Getter for the field normDataUrls.

      Returns:
      the normDataUrls
    • getNormDataUrlKeys

      public List<String> getNormDataUrlKeys()

      getNormDataUrlKeys.

      Returns:
      a List object.
    • getNormDataUrl

      public String getNormDataUrl(String key)

      getNormDataUrl.

      Parameters:
      key - a String object.
      Returns:
      Not URL-encoded norm data URL
    • getNormDataUrl

      public String getNormDataUrl(String key, boolean urlEncode)

      getNormDataUrl.

      Parameters:
      key - a String object.
      urlEncode - a boolean.
      Returns:
      if urlEncode=true, then URL-encoded norm data URL; otherwise not encoded norm data URL
    • getCitationValues

      public Map<String,List<String>> getCitationValues()
      Returns:
      the citationValues
    • getChildValues

      public List<MetadataValue> getChildValues()
      Returns:
      the childValues
    • hasParamValue

      public boolean hasParamValue(String paramLabel)

      hasParamValue.

      Parameters:
      paramLabel - a String object.
      Returns:
      a boolean.
    • getParamValue

      public String getParamValue(String paramLabel)

      getParamValue.

      Parameters:
      paramLabel - a String object.
      Returns:
      a String object.
    • getParamValues

      public List<String> getParamValues(String paramLabel)
      Parameters:
      paramLabel -
      Returns:
      List of parameter values for the given paramLabel
    • applyHighlightingToParamValue

      public void applyHighlightingToParamValue(int paramIndex, Set<String> searchTerms)
      Applies (full HTML) search hit value highlighting to all values for the given parameter index.
      Parameters:
      paramIndex - Metadata parameter index
      searchTerms - Set of search terms
    • getIddoc

      public String getIddoc()
      Returns:
      the iddoc
    • setIddoc

      public void setIddoc(String iddoc)
      Parameters:
      iddoc - the iddoc to set
    • getOwnerIddoc

      public String getOwnerIddoc()
      Returns:
      the ownerIddoc
    • setOwnerIddoc

      public void setOwnerIddoc(String ownerIddoc)
      Parameters:
      ownerIddoc - the ownerIddoc to set
    • getDisplayValue

      public String getDisplayValue()
      Returns:
      Display value for the current locale
    • getDisplayValue

      public String getDisplayValue(boolean includeLabels)
      Parameters:
      includeLabels -
      Returns:
      Display value for the current locale
    • getDisplayValue

      public String getDisplayValue(Locale locale)
      Parameters:
      locale -
      Returns:
      Display value for the given locale
    • getDisplayValue

      public String getDisplayValue(Locale locale, boolean includeLabels)
      Parameters:
      locale -
      includeLabels -
      Returns:
      Display value for the given locale
    • getMasterValue

      public String getMasterValue()

      Getter for the field masterValue.

      Returns:
      the masterValue
    • setMasterValue

      public void setMasterValue(String masterValue)

      Setter for the field masterValue.

      Parameters:
      masterValue - the masterValue to set
    • getGroupTypeForUrl

      public String getGroupTypeForUrl()

      getGroupTypeForUrl.

      Returns:
      the groupType
    • setGroupType

      public MetadataValue setGroupType(String groupType)

      Setter for the field groupType.

      Parameters:
      groupType - the groupType to set
      Returns:
      this
    • getDocstrct

      public String getDocstrct()
      Returns:
      the docstrct
    • setDocstrct

      public MetadataValue setDocstrct(String docstrct)
      Parameters:
      docstrct - the docstrct to set
      Returns:
      this
    • getTopstruct

      public String getTopstruct()
      Returns:
      the topstruct
    • setTopstruct

      public void setTopstruct(String topstruct)
      Parameters:
      topstruct - the topstruct to set
    • getLabel

      public String getLabel()
      Returns:
      the label
    • setLabel

      public MetadataValue setLabel(String label)
      Parameters:
      label - the label to set
      Returns:
      this
    • setCitationProcessor

      public MetadataValue setCitationProcessor(de.undercouch.citeproc.CSL citationProcessor)
      Parameters:
      citationProcessor - the citationProcessor to set
      Returns:
      this
    • setCitationItemDataProvider

      public MetadataValue setCitationItemDataProvider(CitationDataProvider citationItemDataProvider)
      Parameters:
      citationItemDataProvider - the citationItemDataProvider to set
      Returns:
      this
    • toString

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

      public String getCombinedValue()