Package io.goobi.viewer.model.metadata
Class MetadataParameter
java.lang.Object
io.goobi.viewer.model.metadata.MetadataParameter
- All Implemented Interfaces:
Serializable
MetadataParameter class.
- See Also:
-
Nested Class Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic MetadataParameter
createFromConfig
(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config, boolean topstructValueFallbackDefaultValue) boolean
Getter for the fielddefaultValue
.getKey()
Getter for the fieldkey
.Getter for the fieldmasterValueFragment
.Getter for the fieldprefix
.Getter for the fieldreplaceRules
.Getter for the fieldsource
.Getter for the fieldsuffix
.getType()
Getter for the fieldtype
.int
hashCode()
boolean
isAddUrl()
isAddUrl.boolean
boolean
isTopstructValueFallback.setAddUrl
(boolean addUrl) setCondition
(String condition) setDefaultValue
(String defaultValue) setDestination
(String destination) setMasterValueFragment
(String masterValueFragment) setPattern
(String pattern) setRemoveHighlighting
(boolean removeHighlighting) setReplaceRules
(List<MetadataReplaceRule> replaceRules) setTopstructValueFallback
(boolean topstructValueFallback) Setter for the fieldtype
.toString()
-
Constructor Details
-
MetadataParameter
public MetadataParameter()
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
getSource
Getter for the field
source
.- Returns:
- the source
-
setSource
- Parameters:
source
- the source to set- Returns:
- this
-
getDestination
- Returns:
- the destination
-
setDestination
- Parameters:
destination
- the destination to set- Returns:
- this
-
getType
Getter for the field
type
.- Returns:
- the type
-
setType
Setter for the field
type
.- Parameters:
type
- the type to set- Returns:
- this
-
getKey
Getter for the field
key
.- Returns:
- the key
-
setKey
- Parameters:
key
- the key to set- Returns:
- this
-
getAltKey
- Returns:
- the altKey
-
setAltKey
- Parameters:
altKey
- the altKey to set- Returns:
- this
-
getMasterValueFragment
Getter for the field
masterValueFragment
.- Returns:
- the masterValueFragment
-
setMasterValueFragment
- Parameters:
masterValueFragment
- the masterValueFragment to set- Returns:
- this
-
getDefaultValue
Getter for the field
defaultValue
.- Returns:
- the defaultValue
-
setDefaultValue
- Parameters:
defaultValue
- the defaultValue to set- Returns:
- this
-
getPrefix
Getter for the field
prefix
.- Returns:
- the prefix
-
setPrefix
- Parameters:
prefix
- the prefix to set- Returns:
- this
-
getSuffix
Getter for the field
suffix
.- Returns:
- the suffix
-
setSuffix
- Parameters:
suffix
- the suffix to set- Returns:
- this
-
getCondition
- Returns:
- the condition
-
setCondition
- Parameters:
condition
- the condition to set- Returns:
- this
-
getPattern
- Returns:
- the pattern
-
setPattern
- Parameters:
pattern
- the pattern to set- Returns:
- this
-
isAddUrl
public boolean isAddUrl()isAddUrl.
- Returns:
- the addUrl
-
setAddUrl
- Parameters:
addUrl
- the addUrl to set- Returns:
- this
-
isTopstructValueFallback
public boolean isTopstructValueFallback()isTopstructValueFallback.
- Returns:
- the dontUseTopstructValue
-
setTopstructValueFallback
- Parameters:
topstructValueFallback
- the topstructValueFallback to set- Returns:
- this
-
isRemoveHighlighting
public boolean isRemoveHighlighting()- Returns:
- the removeHighlighting
-
setRemoveHighlighting
- Parameters:
removeHighlighting
- the removeHighlighting to set- Returns:
- this
-
getReplaceRules
Getter for the field
replaceRules
.- Returns:
- the replaceRules
-
setReplaceRules
- Parameters:
replaceRules
- the replaceRules to set- Returns:
MetadataParameter
-
toString
-
createFromConfig
public static MetadataParameter createFromConfig(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config, boolean topstructValueFallbackDefaultValue) - Parameters:
config
-topstructValueFallbackDefaultValue
-- Returns:
MetadataParameter
-