|
||||||||||
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, 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)
|
java.lang.String |
get()
Get the stored value. |
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. |
int |
hashCode()
|
boolean |
isBinary()
Tells if the current value is Binary or String |
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, getNormalizedValueReference, getReference, isNormalized, isNull, 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 nullMethod Detail |
---|
public java.lang.String get()
get
in interface Value<java.lang.String>
get
in class AbstractValue<java.lang.String>
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.Object
Object.hashCode()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Two ClientStringValue are equals if their normalized values are equal
public boolean isBinary()
true
if the value is Binary, false
otherwisepublic void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
Externalizable.readExternal(ObjectInput)
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
java.io.IOException
Externalizable.writeExternal(ObjectOutput)
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |