|
||||||||||
| 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[].
| Field Summary | |
|---|---|
static boolean |
BINARY
|
static boolean |
STRING
Two flags used to tell if the value is HR or not in serialization |
| Method Summary | |
|---|---|
Value<T> |
clone()
Clone a Value |
AttributeType |
getAttributeType()
Get the associated AttributeType |
byte[] |
getBytes()
Get the wrapped value as a byte[]. |
T |
getNormReference()
Gets a reference to the the normalized (canonical) representation for the wrapped value. |
T |
getNormValue()
Gets the normalized (canonical) representation for the wrapped string. |
T |
getReference()
Gets a reference to the wrapped value. |
String |
getString()
Get the wrapped value as a String. |
T |
getValue()
Get the wrapped value. |
boolean |
isHumanReadable()
Tells if the current value is Human Readable |
boolean |
isInstanceOf(AttributeType attributeType)
Check if the value is stored into an instance of the given AttributeType, or one of its ascendant. |
boolean |
isNull()
Check if the contained value is null or not |
boolean |
isSchemaAware()
Tells if the value is schema aware or not. |
boolean |
isValid(SyntaxChecker checker)
Uses the syntaxChecker associated with the attributeType to check if the value is valid. |
int |
length()
|
| Methods inherited from interface java.io.Externalizable |
|---|
readExternal, writeExternal |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Field Detail |
|---|
static final boolean STRING
static final boolean BINARY
| Method Detail |
|---|
Value<T> clone()
boolean isNull()
true if the inner value is null.AttributeType getAttributeType()
boolean isInstanceOf(AttributeType attributeType)
attributeType - The AttributeType we are looking at
true if the value is associated with the given
attributeType or one of its ascendantT getValue()
byte[] getBytes()
String getString()
T getReference()
boolean isSchemaAware()
true if the value is sxhema aware
boolean isValid(SyntaxChecker checker)
throws LdapInvalidAttributeValueException
checker - the SyntaxChecker to use to validate the value
true if the value is valid
LdapInvalidAttributeValueException - if the value cannot be validatedT getNormValue()
T getNormReference()
boolean isHumanReadable()
true if the value is a String, false otherwiseint length()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||