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
public abstract class Normalizer extends LoadableSchemaObject
Converts attribute values to a canonical form.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static longserialVersionUIDThe mandatory serialVersionUID-
Fields inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedNormalizer()Use this default constructor when the Normalizer must be instantiated before setting the OID.protectedNormalizer(String oid)The Normalizer base constructor.
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)abstract Stringnormalize(String value)Gets 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.StringtoString()-
Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcn
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, computeHashCode, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
The mandatory serialVersionUID- See Also:
- Constant Field Values
-
-
Constructor Detail
-
Normalizer
protected Normalizer(String oid)
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 Detail
-
normalize
public abstract String normalize(String value) throws LdapException
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
public void setSchemaManager(SchemaManager schemaManager)
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
public boolean equals(Object o)
- Specified by:
equalsin interfaceSchemaObject- Overrides:
equalsin classLoadableSchemaObject
-
-