org.apache.directory.shared.ldap.schema
Class GeneralizedTimeNormalizer
java.lang.Object
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
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 |
GeneralizedTimeNormalizer
public GeneralizedTimeNormalizer()
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-2009 Apache Software Foundation. All Rights Reserved.