Package io.goobi.viewer.model.metadata
Class MetadataValue
java.lang.Object
io.goobi.viewer.model.metadata.MetadataValue
- All Implemented Interfaces:
Serializable
Wrapper class for metadata parameter value groups, so that JSF can iterate through them properly.
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionvoidapplyHighlightingToParamValue(int paramIndex, Set<String> searchTerms) Applies (full HTML) search hit value highlighting to all values for the given parameter index.getComboValueShort(int index) getComboValueShort.getDisplayValue(boolean includeLabels) getDisplayValue(Locale locale) getDisplayValue(Locale locale, boolean includeLabels) getGroupTypeForUrl.getIddoc()getLabel()Getter for the fieldmasterValue.getNormDataUrl(String key) getNormDataUrl.getNormDataUrl(String key, boolean urlEncode) getNormDataUrl.getNormDataUrlKeys.Getter for the fieldnormDataUrls.Getter for the fieldparamLabels.getParamLabelWithColon(int index) getParamLabelWithColon.Getter for the fieldparamMasterValueFragments.Getter for the fieldparamPrefixes.Getter for the fieldparamSuffixes.Getter for the fieldparamUrls.getParamValue(String paramLabel) getParamValue.Getter for the fieldparamValues.getParamValues(String paramLabel) booleanhasParamValue(String paramLabel) hasParamValue.booleanbooleanbooleanisParamValueBlank(int index) setCitationItemDataProvider(CitationDataProvider citationItemDataProvider) setCitationProcessor(de.undercouch.citeproc.CSL citationProcessor) setDocstrct(String docstrct) setGroupType(String groupType) Setter for the fieldgroupType.voidvoidsetMasterValue(String masterValue) Setter for the fieldmasterValue.voidsetOwnerIddoc(String ownerIddoc) voidsetTopstruct(String topstruct) toString()
-
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
getComboValueShort.
- Parameters:
index- a int.- Returns:
- a
Stringobject.
-
getParamLabelWithColon
getParamLabelWithColon.
- Parameters:
index- a int.- Returns:
- the paramLabels
-
getParamLabels
Getter for the field
paramLabels.- Returns:
- the paramLabels
-
getParamValues
Getter for the field
paramValues.- Returns:
- the paramValues
-
getParamMasterValueFragments
Getter for the field
paramMasterValueFragments.- Returns:
- the paramMasterValueFragments
-
getParamPrefixes
Getter for the field
paramPrefixes.- Returns:
- the paramPrefixes
-
getParamSuffixes
Getter for the field
paramSuffixes.- Returns:
- the paramSuffixes
-
getParamUrls
Getter for the field
paramUrls.- Returns:
- the paramUrls
-
getNormDataUrls
Getter for the field
normDataUrls.- Returns:
- the normDataUrls
-
getNormDataUrlKeys
getNormDataUrlKeys.
- Returns:
- a
Listobject.
-
getNormDataUrl
getNormDataUrl.
- Parameters:
key- aStringobject.- Returns:
- Not URL-encoded norm data URL
-
getNormDataUrl
getNormDataUrl.
- Parameters:
key- aStringobject.urlEncode- a boolean.- Returns:
- if urlEncode=true, then URL-encoded norm data URL; otherwise not encoded norm data URL
-
getCitationValues
- Returns:
- the citationValues
-
getChildValues
- Returns:
- the childValues
-
isAccessRestricted
public boolean isAccessRestricted()- Returns:
- true if thids.accessConditions not empty; false otherwise
-
getAccessConditions
- Returns:
- the accessConditions
-
hasParamValue
hasParamValue.
- Parameters:
paramLabel- aStringobject.- Returns:
- a boolean.
-
getParamValue
getParamValue.
-
getParamValues
- Parameters:
paramLabel-- Returns:
- List of parameter values for the given paramLabel
-
applyHighlightingToParamValue
Applies (full HTML) search hit value highlighting to all values for the given parameter index.- Parameters:
paramIndex- Metadata parameter indexsearchTerms- Set of search terms
-
getIddoc
- Returns:
- the iddoc
-
setIddoc
- Parameters:
iddoc- the iddoc to set
-
getOwnerIddoc
- Returns:
- the ownerIddoc
-
setOwnerIddoc
- Parameters:
ownerIddoc- the ownerIddoc to set
-
getDisplayValue
- Returns:
- Display value for the current locale
-
getDisplayValue
- Parameters:
includeLabels-- Returns:
- Display value for the current locale
-
getDisplayValue
- Parameters:
locale-- Returns:
- Display value for the given locale
-
getDisplayValue
- Parameters:
locale-includeLabels-- Returns:
- Display value for the given locale
-
getMasterValue
Getter for the field
masterValue.- Returns:
- the masterValue
-
setMasterValue
Setter for the field
masterValue.- Parameters:
masterValue- the masterValue to set
-
getGroupTypeForUrl
getGroupTypeForUrl.
- Returns:
- the groupType
-
setGroupType
Setter for the field
groupType.- Parameters:
groupType- the groupType to set- Returns:
- this
-
getDocstrct
- Returns:
- the docstrct
-
setDocstrct
- Parameters:
docstrct- the docstrct to set- Returns:
- this
-
getTopstruct
- Returns:
- the topstruct
-
setTopstruct
- Parameters:
topstruct- the topstruct to set
-
getLabel
- Returns:
- the label
-
setLabel
- Parameters:
label- the label to set- Returns:
- this
-
setCitationProcessor
- Parameters:
citationProcessor- the citationProcessor to set- Returns:
- this
-
setCitationItemDataProvider
- Parameters:
citationItemDataProvider- the citationItemDataProvider to set- Returns:
- this
-
toString
-
getCombinedValue
-