public class RegexNormalizer extends Normalizer
serialVersionUID
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, setSchemaManager
copy, getBytecode, getFqcn, isValid, setBytecode, setFqcn
addExtension, addExtension, addName, clear, 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, unlock
public RegexNormalizer(String oid, Pattern[] regexes)
oid
- The MR OID to use for this Normalizerregexes
- the set of regular expressions used to transform valuespublic Value<?> normalize(Value<?> value)
normalize
in class Normalizer
value
- the value to normalize. It must *not* be null !public String normalize(String value)
normalize
in class Normalizer
value
- the value to normalize. It must *not* be null !public String toString()
Normalizer
toString
in class Normalizer
Object.toString()
Copyright © 2003–2018 The Apache Software Foundation. All rights reserved.