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 long
serialVersionUID
The mandatory serialVersionUID
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
abstract String
normalize(String value)
Gets the normalized value of AssertionValues.abstract String
normalize(String value, PrepareString.AssertionType assertionType)
Gets the normalized value of a substring assertion.void
setSchemaManager(SchemaManager schemaManager)
Store the SchemaManager in this instance.String
toString()
-
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, 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
-
-
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:
equals
in interfaceSchemaObject
- Overrides:
equals
in classLoadableSchemaObject
-
-