Package io.goobi.viewer.model.metadata
Class MetadataReplaceRule
java.lang.Object
io.goobi.viewer.model.metadata.MetadataReplaceRule
- All Implemented Interfaces:
Serializable
Defines a search-and-replace rule applied to metadata values before display.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnumerates the matching strategies for a replace rule: character-level, string-level, or regular expression. -
Constructor Summary
ConstructorsConstructorDescriptionMetadataReplaceRule(Object key, String replacement, MetadataReplaceRule.MetadataReplaceRuleType type) MetadataReplaceRule(Object key, String replacement, String conditions, MetadataReplaceRule.MetadataReplaceRuleType type) -
Method Summary
-
Constructor Details
-
MetadataReplaceRule
public MetadataReplaceRule(Object key, String replacement, MetadataReplaceRule.MetadataReplaceRuleType type) - Parameters:
key- the string, char, or regex pattern to matchreplacement- the replacement stringtype- the type of matching rule (CHAR, STRING, or REGEX)
-
MetadataReplaceRule
public MetadataReplaceRule(Object key, String replacement, String conditions, MetadataReplaceRule.MetadataReplaceRuleType type) - Parameters:
key- the string, char, or regex pattern to matchreplacement- the replacement stringconditions- Optional condition Solr querytype- the type of matching rule (CHAR, STRING, or REGEX)
-
-
Method Details
-
getType
-
getKey
-
getReplacement
-
getConditions
-