Class NameOrNumericIdNormalizer
- 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
-
- org.apache.directory.api.ldap.model.schema.normalizers.NameOrNumericIdNormalizer
-
- All Implemented Interfaces:
Serializable
,SchemaObject
public class NameOrNumericIdNormalizer extends Normalizer
A name or numeric id normalizer. Needs an OID registry to operate properly. The OID registry is injected into this class after instantiation if a setSchemaManager(SchemaManager) method is exposed.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static NameOrNumericIdNormalizer
INSTANCE
A static instance of this normalizer-
Fields inherited from class org.apache.directory.api.ldap.model.schema.Normalizer
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description NameOrNumericIdNormalizer()
Creates a new instance of GeneralizedTimeNormalizer.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
normalize(String value)
Gets the normalized value of AssertionValues.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.-
Methods inherited from class org.apache.directory.api.ldap.model.schema.Normalizer
equals, 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
-
INSTANCE
public static final NameOrNumericIdNormalizer INSTANCE
A static instance of this normalizer
-
-
Constructor Detail
-
NameOrNumericIdNormalizer
public NameOrNumericIdNormalizer()
Creates a new instance of GeneralizedTimeNormalizer.
-
-
Method Detail
-
normalize
public String normalize(String value) throws LdapException
Gets the normalized value of AssertionValues.- Specified by:
normalize
in classNormalizer
- 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 String normalize(String value, PrepareString.AssertionType assertionType) throws LdapException
Gets the normalized value of a substring assertion.- Specified by:
normalize
in classNormalizer
- 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.- Overrides:
setSchemaManager
in classNormalizer
- Parameters:
schemaManager
- the schemaManager to store
-
-