Class AbstractPolyStringNormalizer
- java.lang.Object
-
- com.evolveum.midpoint.prism.impl.polystring.AbstractPolyStringNormalizer
-
- All Implemented Interfaces:
ConfigurableNormalizer,PolyStringNormalizer
- Direct Known Subclasses:
AlphanumericPolyStringNormalizer,Ascii7PolyStringNormalizer,PassThroughPolyStringNormalizer
public abstract class AbstractPolyStringNormalizer extends Object implements PolyStringNormalizer, ConfigurableNormalizer
-
-
Constructor Summary
Constructors Constructor Description AbstractPolyStringNormalizer()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description voidconfigure(PolyStringNormalizerConfigurationType configuration)protected PolyStringNormalizerConfigurationTypegetConfiguration()protected booleanisBlank(String s)protected StringlowerCase(String s)protected Stringnfkd(String s)Unicode Normalization Form Compatibility Decomposition (NFKD)Stringnormalize(String orig)Returns a normalized version of the string.protected abstract StringnormalizeCore(String s)protected Stringpostprocess(String s)protected Stringpreprocess(String s)protected StringremoveAll(String s, int lowerCode, int upperCode)protected StringremoveAll(String s, Pattern pattern)protected StringreplaceAll(String s, Pattern pattern, String replacement)StringtoString()protected Stringtrim(String s)protected StringtrimWhitespace(String s)-
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.polystring.PolyStringNormalizer
getName
-
-
-
-
Method Detail
-
configure
public void configure(PolyStringNormalizerConfigurationType configuration)
- Specified by:
configurein interfaceConfigurableNormalizer
-
getConfiguration
protected PolyStringNormalizerConfigurationType getConfiguration()
-
isBlank
protected boolean isBlank(String s)
-
normalize
public String normalize(String orig)
Description copied from interface:PolyStringNormalizerReturns a normalized version of the string.- Specified by:
normalizein interfacePolyStringNormalizer- Returns:
- normalized version of the string
-
-