Class 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:
  • Field Details

  • Constructor Details

    • NameOrNumericIdNormalizer

      public NameOrNumericIdNormalizer()
      Creates a new instance of NameOrNumericIdNormalizer.
  • Method Details

    • normalize

      public String normalize(String value) throws LdapException
      Gets the normalized value of AssertionValues.
      Specified by:
      normalize in class Normalizer
      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 class Normalizer
      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 class Normalizer
      Parameters:
      schemaManager - the schemaManager to store