Class PolyStringNormNormalizer
java.lang.Object
com.evolveum.midpoint.prism.impl.polystring.PolyStringNormNormalizer
- All Implemented Interfaces:
Normalizer<PolyString>
Special normalizer that keeps only the `norm` value of
PolyString
instances.
It has no particular value besides making sure that MatchingRule.normalize(Object)
contract holds.-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescription@NotNull QName
getName()
Returns the qualified name identifying this normalizer.static <T> @NotNull PolyStringNormNormalizer
instance()
boolean
`true` if the normalizer is known to be the default one, i.e., one that does no transformations.boolean
match
(@Nullable PolyString a, @Nullable PolyString b) Matches two values.boolean
matchRegex
(PolyString a, String regex) Matches a value against regular expression (if supported).normalize
(PolyString orig) Returns a normalized version of the value.toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.evolveum.midpoint.prism.normalization.Normalizer
normalizeString
-
Constructor Details
-
PolyStringNormNormalizer
public PolyStringNormNormalizer()
-
-
Method Details
-
normalize
Description copied from interface:Normalizer
Returns a normalized version of the value.- Specified by:
normalize
in interfaceNormalizer<PolyString>
- Throws:
SchemaException
-
match
public boolean match(@Nullable @Nullable PolyString a, @Nullable @Nullable PolyString b) throws SchemaException Description copied from interface:Normalizer
Matches two values.- Specified by:
match
in interfaceNormalizer<PolyString>
- Throws:
SchemaException
-
matchRegex
Description copied from interface:Normalizer
Matches a value against regular expression (if supported).- Specified by:
matchRegex
in interfaceNormalizer<PolyString>
-
getName
Description copied from interface:Normalizer
Returns the qualified name identifying this normalizer.- Specified by:
getName
in interfaceNormalizer<PolyString>
-
isIdentity
public boolean isIdentity()Description copied from interface:Normalizer
`true` if the normalizer is known to be the default one, i.e., one that does no transformations.- Specified by:
isIdentity
in interfaceNormalizer<PolyString>
-
instance
-
toString
-