org.apache.directory.shared.ldap.schema
Class GeneralizedTimeNormalizer

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.GeneralizedTimeNormalizer
All Implemented Interfaces:
java.io.Serializable, Normalizer

public class GeneralizedTimeNormalizer
extends java.lang.Object
implements 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, it is removed - 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.

Version:
$Rev: 491034 $
Author:
Apache Directory Project
See Also:
Serialized Form

Constructor Summary
GeneralizedTimeNormalizer()
           
 
Method Summary
 java.lang.Object normalize(java.lang.Object value)
          Gets the normalized value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeneralizedTimeNormalizer

public GeneralizedTimeNormalizer()
Method Detail

normalize

public java.lang.Object normalize(java.lang.Object value)
                           throws javax.naming.NamingException
Description copied from interface: Normalizer
Gets the normalized value.

Specified by:
normalize in interface Normalizer
Parameters:
value - the value to normalize. It must *not* be null !
Returns:
the normalized form for a value
Throws:
javax.naming.NamingException - if an error results during normalization


Copyright © 2003-2011 Apache Software Foundation. All Rights Reserved.