Class NoOpNormalizer
java.lang.Object
org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
org.apache.directory.api.ldap.model.schema.Normalizer
org.apache.directory.api.ldap.model.schema.normalizers.NoOpNormalizer
- All Implemented Interfaces:
Serializable, SchemaObject
No op (pass through or do nothing) normalizer returning what its given.
- Author:
- Apache Directory Project
- See Also:
-
Field Summary
Fields inherited from class Normalizer
serialVersionUIDFields inherited from class AbstractSchemaObject
description, extensions, h, isEnabled, isObsolete, locked, names, objectType, oid, schemaName, specification -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor for NoOpNormalizer used when we must set the OID after instantiating the Normalizer.NoOpNormalizer(String oid) Creates a new instance of NoOpNormalizer. -
Method Summary
Modifier and TypeMethodDescriptionbyte[]normalize(byte[] value) Returns the value argument as-is without alterations all the time.Returns the value argument as-is without alterations all the time.normalize(String value, PrepareString.AssertionType assertionType) Gets the normalized value of a substring assertion.Methods inherited from class Normalizer
equals, setSchemaManager, toStringMethods inherited from class LoadableSchemaObject
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcnMethods inherited from class AbstractSchemaObject
addExtension, addExtension, addName, clear, compareOid, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, rehash, rehashBase, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
Constructor Details
-
NoOpNormalizer
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 Details
-
normalize
Returns the value argument as-is without alterations all the time.- Specified by:
normalizein classNormalizer- Parameters:
value- any value- Returns:
- the value argument returned as-is
- See Also:
-
normalize
Gets the normalized value of a substring assertion.- Specified by:
normalizein classNormalizer- Parameters:
value- the substring value to normalize. It must *not* be null !assertionType- The type of assertion- Returns:
- the normalized form for a value
-
normalize
public byte[] normalize(byte[] value) Returns the value argument as-is without alterations all the time.- Parameters:
value- any value- Returns:
- the value argument returned as-is
- See Also:
-