org.apache.directory.shared.ldap.schema.normalizers
Class GeneralizedTimeNormalizer
java.lang.Object
org.apache.directory.shared.ldap.schema.normalizers.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.String |
normalize(java.lang.String value)
Gets the normalized value. |
Value<?> |
normalize(Value<?> 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 Value<?> normalize(Value<?> value)
throws javax.naming.NamingException
- 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
normalize
public java.lang.String normalize(java.lang.String value)
throws javax.naming.NamingException
- 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 © 2004-2009 The Apache Software Foundation. All Rights Reserved.