Interface Normalizer<T>
- All Known Subinterfaces:
PolyStringNormalizer
,StringNormalizer
Normalizes and matches (arbitrary) values, typically strings.
-
Method Summary
Modifier and TypeMethodDescription@NotNull QName
getName()
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.boolean
Matches two values.boolean
matchRegex
(T a, String regex) Matches a value against regular expression (if supported).Returns a normalized version of the value.default String
normalizeString
(String orig) Temporary solution for untyped relation between normalizers vs.
-
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 intoPolyString
s.- Throws:
SchemaException
-