T
- The valye typepublic interface Value<T> extends Cloneable, Externalizable, Comparable<Value<T>>
Modifier and Type | Field and Description |
---|---|
static boolean |
BINARY
A flag used to tell if the value is not HR in serialization
|
static boolean |
STRING
A flag used to tell if the value is HR in serialization
|
Modifier and Type | Method and Description |
---|---|
void |
apply(AttributeType attributeType)
Apply the AttributeType to this value.
|
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 user provided value as a String.
|
T |
getValue()
Get the User Provided 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() |
readExternal, writeExternal
compareTo
static final boolean STRING
static final boolean BINARY
boolean isNull()
true
if the inner value is null.AttributeType getAttributeType()
boolean isInstanceOf(AttributeType attributeType)
attributeType
- The AttributeType we are looking attrue
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 awareboolean isValid(SyntaxChecker checker) throws LdapInvalidAttributeValueException
checker
- the SyntaxChecker to use to validate the valuetrue
if the value is validLdapInvalidAttributeValueException
- if the value cannot be validatedT getNormValue()
T getNormReference()
boolean isHumanReadable()
true
if the value is a String, false
otherwiseint length()
void apply(AttributeType attributeType) throws LdapInvalidAttributeValueException
attributeType
- The AttributeType to applyLdapInvalidAttributeValueException
- If we have some invalide valueCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.