org.apache.directory.shared.ldap.schema.normalizers
Class NoOpNormalizer

java.lang.Object
  extended by org.apache.directory.shared.ldap.schema.AbstractSchemaObject
      extended by org.apache.directory.shared.ldap.schema.LoadableSchemaObject
          extended by org.apache.directory.shared.ldap.schema.Normalizer
              extended by org.apache.directory.shared.ldap.schema.normalizers.NoOpNormalizer
All Implemented Interfaces:
java.io.Serializable, SchemaObject

public class NoOpNormalizer
extends Normalizer

No op (pass through or do nothing) normalizer returning what its given.

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

Field Summary
static long serialVersionUID
          The serial UID
 
Fields inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
description, extensions, isEnabled, isObsolete, isReadOnly, locked, names, objectType, oid, schemaName, specification
 
Constructor Summary
NoOpNormalizer()
          Default constructor for NoOpNormalizer used when we must set the OID after instantiating the Normalizer.
NoOpNormalizer(java.lang.String oid)
          Creates a new instance of NoOpNormalizer.
 
Method Summary
 java.lang.String normalize(java.lang.String value)
          Returns the value argument as-is without alterations all the time.
 Value<?> normalize(Value<?> value)
          Returns the value argument as-is without alterations all the time.
 
Methods inherited from class org.apache.directory.shared.ldap.schema.Normalizer
equals, setSchemaManager, toString
 
Methods inherited from class org.apache.directory.shared.ldap.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, isValid, registerOid, setBytecode, setFqcn
 
Methods inherited from class org.apache.directory.shared.ldap.schema.AbstractSchemaObject
addExtension, addName, addToRegistries, clear, compareOid, copy, getDescription, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hashCode, isDisabled, isEnabled, isObsolete, isReadOnly, lock, removeFromRegistries, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setReadOnly, setRegistries, setSchemaName, setSpecification
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

serialVersionUID

public static final long serialVersionUID
The serial UID

See Also:
Constant Field Values
Constructor Detail

NoOpNormalizer

public NoOpNormalizer(java.lang.String oid)
Creates a new instance of NoOpNormalizer.

Parameters:
oid - The MR OID to use with this Normalizer

NoOpNormalizer

public NoOpNormalizer()
Default constructor for NoOpNormalizer used when we must set the OID after instantiating the Normalizer.

Method Detail

normalize

public Value<?> normalize(Value<?> value)
Returns the value argument as-is without alterations all the time.

Specified by:
normalize in class Normalizer
Parameters:
value - any value
Returns:
the value argument returned as-is
See Also:
org.apache.directory.shared.ldap.schema.Normalizer#normalize(java.lang.Object)

normalize

public java.lang.String normalize(java.lang.String value)
Returns the value argument as-is without alterations all the time.

Specified by:
normalize in class Normalizer
Parameters:
value - any value
Returns:
the value argument returned as-is
See Also:
org.apache.directory.shared.ldap.schema.Normalizer#normalize(java.lang.Object)


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