Class GeneralizedTimeNormalizer

All Implemented Interfaces:
Serializable, SchemaObject

public class GeneralizedTimeNormalizer extends Normalizer
Normalizer which normalize a time following those rules :
  • if minutes are ommited, then they are replaced by 00
  • if seconds are ommited, then they are replaced by 00
  • if fraction is 0 or omitted, it is replaced by 000
  • the time is supposed to be expressed in Zulu (GMT), so increment is applied to hours/days/yeah, and a Z is added at the end
Note : there is no Substring for this type of values.
Author:
Apache Directory Project
See Also:
  • Constructor Details

    • GeneralizedTimeNormalizer

      public GeneralizedTimeNormalizer()
      Creates a new instance of GeneralizedTimeNormalizer.
  • 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