Package io.goobi.viewer.controller.model
Class StringMatchConfiguration
java.lang.Object
io.goobi.viewer.controller.model.StringMatchConfiguration
A matcher read from a configuration node which matches strings based on certain criteria
- Author:
- florian
-
Constructor Summary
ConstructorDescriptionStringMatchConfiguration
(String includeRegex) StringMatchConfiguration
(String includeRegex, String excludeRegex) StringMatchConfiguration
(String includeRegex, String excludeRegex, List<String> allowedValues) StringMatchConfiguration
(List<String> allowedValues) -
Method Summary
Modifier and TypeMethodDescriptionstatic StringMatchConfiguration
fromConfig
(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) boolean
-
Constructor Details
-
StringMatchConfiguration
public StringMatchConfiguration(String includeRegex, String excludeRegex, List<String> allowedValues) - Parameters:
includeRegex
-excludeRegex
-allowedValues
-
-
StringMatchConfiguration
- Parameters:
allowedValues
-
-
StringMatchConfiguration
- Parameters:
includeRegex
-excludeRegex
-
-
StringMatchConfiguration
- Parameters:
includeRegex
-
-
-
Method Details
-
test
-
fromConfig
public static StringMatchConfiguration fromConfig(org.apache.commons.configuration2.HierarchicalConfiguration<org.apache.commons.configuration2.tree.ImmutableNode> config) - Parameters:
config
-- Returns:
StringMatchConfiguration
-