Interface Normalizer<T>
- All Known Subinterfaces:
PolyStringNormalizer,StringNormalizer
Normalizes and matches (arbitrary) values, typically strings.
-
Method Summary
Modifier and TypeMethodDescription@NotNull QNamegetName()Returns the qualified name identifying this normalizer.boolean`true` if the normalizer is known to be the default one, i.e., one that does no transformations.booleanMatches two values.booleanmatchRegex(T a, String regex) Matches a value against regular expression (if supported).Returns a normalized version of the value.default StringnormalizeString(String orig) Temporary solution for untyped relation between normalizers vs. matching rules.
-
Method Details
-
normalize
Returns a normalized version of the value.- Throws:
SchemaException
-
match
Matches two values.- Throws:
SchemaException
-
matchRegex
Matches a value against regular expression (if supported).- Throws:
SchemaException
-
getName
Returns the qualified name identifying this normalizer. -
isIdentity
boolean isIdentity()`true` if the normalizer is known to be the default one, i.e., one that does no transformations. -
normalizeString
Temporary solution for untyped relation between normalizers vs. matching rules. (See the wildcard return type ofMatchingRule.getNormalizer(). We often need to normalize strings intoPolyStrings.- Throws:
SchemaException
-