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 void
configure(PolyStringNormalizerConfigurationType configuration)
protected PolyStringNormalizerConfigurationType
getConfiguration()
protected boolean
isBlank(String s)
protected String
lowerCase(String s)
protected String
nfkd(String s)
Unicode Normalization Form Compatibility Decomposition (NFKD)String
normalize(String orig)
Returns a normalized version of the string.protected abstract String
normalizeCore(String s)
protected String
postprocess(String s)
protected String
preprocess(String s)
protected String
removeAll(String s, int lowerCode, int upperCode)
protected String
removeAll(String s, Pattern pattern)
protected String
replaceAll(String s, Pattern pattern, String replacement)
String
toString()
protected String
trim(String s)
protected String
trimWhitespace(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:
configure
in interfaceConfigurableNormalizer
-
getConfiguration
protected PolyStringNormalizerConfigurationType getConfiguration()
-
isBlank
protected boolean isBlank(String s)
-
normalize
public String normalize(String orig)
Description copied from interface:PolyStringNormalizer
Returns a normalized version of the string.- Specified by:
normalize
in interfacePolyStringNormalizer
- Returns:
- normalized version of the string
-
-