Class Normalizer
java.lang.Object
org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.Normalizer
- All Implemented Interfaces:
Serializable, SchemaObject
- Direct Known Subclasses:
BooleanNormalizer, DeepTrimNormalizer, DeepTrimToLowerNormalizer, DnNormalizer, GeneralizedTimeNormalizer, NameOrNumericIdNormalizer, NoOpNormalizer, NumericNormalizer, ObjectIdentifierNormalizer, RegexNormalizer, TelephoneNumberNormalizer, UniqueMemberNormalizer
Converts attribute values to a canonical form.
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longDeclares the Serial Version UidFields inherited from class AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedUse this default constructor when the Normalizer must be instantiated before setting the OID.protectedNormalizer(String oid) The Normalizer base constructor. -
Method Summary
Modifier and TypeMethodDescriptionbooleanabstract StringGets the normalized value of AssertionValues.abstract Stringnormalize(String value, PrepareString.AssertionType assertionType) Gets the normalized value of a substring assertion.voidsetSchemaManager(SchemaManager schemaManager) Store the SchemaManager in this instance.toString()Methods inherited from class LoadableSchemaObject
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcnMethods inherited from class AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, rehash, rehashBase, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
Field Details
-
serialVersionUID
public static final long serialVersionUIDDeclares the Serial Version Uid- See Also:
-
-
Constructor Details
-
Normalizer
The Normalizer base constructor. We use it's MR OID to initialize the SchemaObject instance- Parameters:
oid- The associated OID. It's the element's MR OID
-
Normalizer
protected Normalizer()Use this default constructor when the Normalizer must be instantiated before setting the OID.
-
-
Method Details
-
normalize
Gets the normalized value of AssertionValues.- Parameters:
value- the value to normalize. It must *not* be null !- Returns:
- the normalized form for a value
- Throws:
LdapException- if an error results during normalization
-
normalize
public abstract String normalize(String value, PrepareString.AssertionType assertionType) throws LdapException Gets the normalized value of a substring assertion.- Parameters:
value- the substring value to normalize. It must *not* be null !assertionType- The type of assertion- Returns:
- the normalized form for a value
- Throws:
LdapException- if an error results during normalization
-
setSchemaManager
Store the SchemaManager in this instance. It may be necessary for some normalizer which needs to have access to the oidNormalizer Map.- Parameters:
schemaManager- the schemaManager to store
-
equals
- Specified by:
equalsin interfaceSchemaObject- Overrides:
equalsin classLoadableSchemaObject
-
toString
-