|
||||||||||
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 | |
---|---|
void |
clear()
Reset the value |
Value<T> |
clone()
|
T |
get()
Get the wrapped value. |
T |
getCopy()
Get a copy of the stored value. |
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. |
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 |
void |
normalize()
Normalize the value. |
void |
normalize(Normalizer normalizer)
Normalize the value. |
void |
set(T wrapped)
Sets the wrapped 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.void set(T wrapped)
wrapped
- the value to set: either a String, URI, or a byte[]T get()
T getReference()
T getCopy()
void clear()
boolean isNormalized()
true
if the value has already been normalized.boolean isValid()
true
if the value is validboolean isValid(SyntaxChecker checker) throws javax.naming.NamingException
checker
- the SyntaxChecker to use to validate the value
true
if the value is valid
javax.naming.NamingException
- if the value cannot be validatedvoid setNormalized(boolean normalized)
normalized
- the value : true or falseT getNormalizedValue()
T getNormalizedValueReference()
T getNormalizedValueCopy()
void normalize() throws javax.naming.NamingException
javax.naming.NamingException
- if the value cannot be normalizedvoid normalize(Normalizer normalizer) throws javax.naming.NamingException
normalizer
- the normalizer to apply to the value
javax.naming.NamingException
- if the value cannot be normalizedboolean isBinary()
true
if the value is Binary, false
otherwise
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |