|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.shared.ldap.entry.AbstractValue<java.lang.String>
org.apache.directory.shared.ldap.entry.client.ClientStringValue
public class ClientStringValue
A server side schema aware wrapper around a String attribute value. This value wrapper uses schema information to syntax check values, and to compare them for equality and ordering. It caches results and invalidates them when the wrapped value changes.
| Field Summary |
|---|
| Fields inherited from class org.apache.directory.shared.ldap.entry.AbstractValue |
|---|
normalized, normalizedValue, same, valid, wrapped |
| Constructor Summary | |
|---|---|
ClientStringValue()
Creates a ServerStringValue without an initial wrapped value. |
|
ClientStringValue(java.lang.String wrapped)
Creates a ServerStringValue with an initial wrapped String value. |
|
| Method Summary | |
|---|---|
ClientStringValue |
clone()
Get a clone of the Client Value |
int |
compareTo(Value<java.lang.String> value)
|
boolean |
equals(java.lang.Object obj)
|
byte[] |
getBytes()
Get the wrapped value as a byte[]. |
java.lang.String |
getCopy()
Get a copy of the stored value. |
java.lang.String |
getNormalizedValue()
Gets the normalized (canonical) representation for the wrapped string. |
java.lang.String |
getNormalizedValueCopy()
Gets a copy of the the normalized (canonical) representation for the wrapped value. |
java.lang.String |
getString()
Get the wrapped value as a String. |
int |
hashCode()
|
boolean |
isBinary()
Tells if the current value is Binary or String |
int |
length()
|
void |
normalize(Normalizer normalizer)
Normalize the value. |
void |
readExternal(java.io.ObjectInput in)
|
void |
set(java.lang.String wrapped)
Sets the wrapped String value. |
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
| Methods inherited from class org.apache.directory.shared.ldap.entry.AbstractValue |
|---|
clear, get, getNormalizedValueReference, getReference, isNormalized, isNull, isSame, isValid, isValid, normalize, setNormalized |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ClientStringValue()
public ClientStringValue(java.lang.String wrapped)
wrapped - the value to wrap which can be null| Method Detail |
|---|
public java.lang.String getCopy()
public final void set(java.lang.String wrapped)
set in interface Value<java.lang.String>set in class AbstractValue<java.lang.String>wrapped - the byte array to use as the wrapped valueServerValue#set(Object)public java.lang.String getNormalizedValue()
getNormalizedValue in interface Value<java.lang.String>getNormalizedValue in class AbstractValue<java.lang.String>public java.lang.String getNormalizedValueCopy()
public final void normalize(Normalizer normalizer)
throws javax.naming.NamingException
Normalizer - The normalizer to apply to the value
javax.naming.NamingException - If the value cannot be normalizedpublic int compareTo(Value<java.lang.String> value)
java.lang.IllegalStateException - on failures to extract the comparator, or the
normalizers needed to perform the required comparisons based on the schemaServerValue#compareTo(ServerValue)public ClientStringValue clone()
clone in interface Value<java.lang.String>clone in class AbstractValue<java.lang.String>public int hashCode()
hashCode in class java.lang.ObjectObject.hashCode()public boolean equals(java.lang.Object obj)
equals in class java.lang.ObjectTwo ClientStringValue are equals if their normalized values are equalpublic boolean isBinary()
true if the value is Binary, false otherwisepublic int length()
public byte[] getBytes()
public java.lang.String getString()
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundExceptionExternalizable.readExternal(ObjectInput)
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
java.io.IOExceptionExternalizable.writeExternal(ObjectOutput)public java.lang.String toString()
toString in class java.lang.ObjectObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||