|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Value<T>
A interface for wrapping attribute values stored into an EntryAttribute. These values can be a String or a byte[].
Method Summary | |
---|---|
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. |
java.lang.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. |
Methods inherited from interface java.io.Externalizable |
---|
readExternal, writeExternal |
Methods inherited from interface java.lang.Comparable |
---|
compareTo |
Method Detail |
---|
Value<T> clone()
boolean isNull()
true
if the inner value is null.T get()
byte[] getBytes()
java.lang.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 value
true
if the value is valid
LdapException
- 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 value
LdapException
- if the value cannot be normalizedboolean isBinary()
true
if the value is Binary, false
otherwiseint length()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |