public class RegexNormalizer extends Normalizer
| Modifier and Type | Field and Description |
|---|---|
private Matcher[] |
matchers
the set of regular expressions used to transform values
|
private Pattern[] |
regexes
the perl 5 regex engine
|
serialVersionUIDdescription, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification| Constructor and Description |
|---|
RegexNormalizer(String oid,
Pattern[] regexes)
Creates a Perl5 regular expression based normalizer.
|
| Modifier and Type | Method and Description |
|---|---|
String |
normalize(String value)
Gets the normalized value.
|
Value<?> |
normalize(Value<?> value)
Gets the normalized value.
|
String |
toString() |
equals, setSchemaManagercopy, getBytecode, getFqcn, isValid, setBytecode, setFqcnaddExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setSchemaName, setSpecification, unlockprivate final Pattern[] regexes
private final Matcher[] matchers
public Value<?> normalize(Value<?> value)
normalize in class Normalizervalue - the value to normalize. It must *not* be null !public String normalize(String value)
normalize in class Normalizervalue - the value to normalize. It must *not* be null !public String toString()
NormalizertoString in class NormalizerObject.toString()Copyright © 2003–2017 The Apache Software Foundation. All rights reserved.