Class AbstractConfigurablePolyStringNormalizer
java.lang.Object
com.evolveum.midpoint.prism.impl.polystring.BaseStringNormalizer
com.evolveum.midpoint.prism.impl.polystring.AbstractConfigurablePolyStringNormalizer
- All Implemented Interfaces:
ConfigurableNormalizer
,Normalizer<String>
,StringNormalizer
,PolyStringNormalizer
- Direct Known Subclasses:
AlphanumericPolyStringNormalizer
,Ascii7PolyStringNormalizer
,PassThroughPolyStringNormalizer
public abstract class AbstractConfigurablePolyStringNormalizer
extends BaseStringNormalizer
implements PolyStringNormalizer, ConfigurableNormalizer
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
configure
(PolyStringNormalizerConfigurationType configuration) protected PolyStringNormalizerConfigurationType
boolean
Matches two values.boolean
matchRegex
(String a, String regex) Matches a value against regular expression (if supported).Intentionally not throwingSchemaException
, unlike the method that is being overridden.protected abstract String
protected @NotNull String
postprocess
(@NotNull String s) protected @NotNull String
protected @NotNull String
replaceAll
(@NotNull String s, Pattern pattern, String replacement) toString()
Methods inherited from class com.evolveum.midpoint.prism.impl.polystring.BaseStringNormalizer
isIdentity, poly
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
getName, isIdentity, normalizeString
Methods inherited from interface com.evolveum.midpoint.prism.normalization.StringNormalizer
poly
-
Constructor Details
-
AbstractConfigurablePolyStringNormalizer
public AbstractConfigurablePolyStringNormalizer()
-
-
Method Details
-
configure
- Specified by:
configure
in interfaceConfigurableNormalizer
-
getConfiguration
-
replaceAll
-
removeAll
-
normalize
Description copied from interface:PolyStringNormalizer
Intentionally not throwingSchemaException
, unlike the method that is being overridden.- Specified by:
normalize
in interfaceNormalizer<String>
- Specified by:
normalize
in interfacePolyStringNormalizer
-
match
public boolean match(@Nullable @Nullable String a, @Nullable @Nullable String b) throws SchemaException Description copied from interface:Normalizer
Matches two values.- Specified by:
match
in interfaceNormalizer<String>
- Throws:
SchemaException
-
matchRegex
Description copied from interface:Normalizer
Matches a value against regular expression (if supported).- Specified by:
matchRegex
in interfaceNormalizer<String>
- Throws:
SchemaException
-
normalizeCore
-
postprocess
-
toString
- Overrides:
toString
in classBaseStringNormalizer
-