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
public class NoOpNormalizer extends Normalizer
No op (pass through or do nothing) normalizer returning what its given.- Author:
- Apache Directory Project
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class org.apache.directory.api.ldap.model.schema.Normalizer
serialVersionUID
-
-
Constructor Summary
Constructors Constructor Description NoOpNormalizer()
Default 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]
normalize(byte[] value)
Returns the value argument as-is without alterations all the time.String
normalize(String value)
Returns the value argument as-is without alterations all the time.String
normalize(String value, PrepareString.AssertionType assertionType)
Gets the normalized value of a substring assertion.-
Methods inherited from class org.apache.directory.api.ldap.model.schema.Normalizer
equals, setSchemaManager, toString
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.LoadableSchemaObject
copy, getBytecode, getFqcn, hashCode, isValid, setBytecode, setFqcn
-
Methods inherited from class org.apache.directory.api.ldap.model.schema.AbstractSchemaObject
addExtension, addExtension, addName, clear, copy, getDescription, getExtension, getExtensions, getName, getNames, getObjectType, getOid, getSchemaName, getSpecification, hasExtension, isDisabled, isEnabled, isObsolete, lock, setDescription, setEnabled, setExtensions, setNames, setNames, setObsolete, setOid, setSchemaName, setSpecification, unlock
-
-
-
-
Constructor Detail
-
NoOpNormalizer
public NoOpNormalizer(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 String normalize(String value)
Returns the value argument as-is without alterations all the time.- Specified by:
normalize
in classNormalizer
- Parameters:
value
- any value- Returns:
- the value argument returned as-is
- See Also:
Normalizer.normalize(String)
-
normalize
public String normalize(String value, PrepareString.AssertionType assertionType)
Gets the normalized value of a substring assertion.- Specified by:
normalize
in 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:
Normalizer.normalize(String)
-
-