public interface Value<T> extends Cloneable, Externalizable, Comparable<Value<T>>
Modifier and Type | Method and Description |
---|---|
Value<T> |
clone() |
T |
get()
Get the wrapped value.
|
byte[] |
getBytes()
Get the wrapped value as a byte[].
|
T |
getNormalizedValue()
Gets the normalized (canonical) representation for the wrapped string.
|
T |
getNormalizedValueCopy()
Gets a copy of the the normalized (canonical) representation
for the wrapped value.
|
T |
getNormalizedValueReference()
Gets a reference to the the normalized (canonical) representation
for the wrapped value.
|
T |
getReference()
Get a reference on the stored value.
|
String |
getString()
Get the wrapped value as a String.
|
boolean |
isBinary()
Tells if the current value is Binary or String
|
boolean |
isNormalized()
Tells if the value has already be normalized or not.
|
boolean |
isNull()
Check if the contained value is null or not
|
boolean |
isValid()
Tells if the value is valid.
|
boolean |
isValid(SyntaxChecker checker)
Tells if the value is valid wrt a Syntax checker
|
int |
length() |
void |
normalize()
Normalize the value.
|
void |
normalize(Normalizer normalizer)
Normalize the value.
|
void |
setNormalized(boolean normalized)
Set the normalized flag.
|
readExternal, writeExternal
compareTo
boolean isNull()
true
if the inner value is null.T get()
byte[] getBytes()
String getString()
T getReference()
boolean isNormalized()
true
if the value has already been normalized.boolean isValid()
true
if the value is validboolean isValid(SyntaxChecker checker) throws LdapException
checker
- the SyntaxChecker to use to validate the valuetrue
if the value is validLdapException
- if the value cannot be validatedvoid setNormalized(boolean normalized)
normalized
- the value : true or falseT getNormalizedValue()
T getNormalizedValueReference()
T getNormalizedValueCopy()
void normalize() throws LdapException
LdapException
- if the value cannot be normalizedvoid normalize(Normalizer normalizer) throws LdapException
normalizer
- the normalizer to apply to the valueLdapException
- if the value cannot be normalizedboolean isBinary()
true
if the value is Binary, false
otherwiseint length()
Copyright © 2003-2012 Apache Software Foundation. All Rights Reserved.