|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.directory.shared.ldap.name.AttributeTypeAndValue
A Attribute Type And Value, which is the basis of all RDN. It contains a type, and a value. The type must not be case sensitive. Superfluous leading and trailing spaces MUST have been trimmed before. The value MUST be in UTF8 format, according to RFC 2253. If the type is in OID form, then the value must be a hexadecimal string prefixed by a '#' character. Otherwise, the string must respect the RC 2253 grammar. No further normalization will be done, because we don't have any knowledge of the Schema definition in the parser. We will also keep a User Provided form of the atav (Attribute Type And Value), called upName.
Constructor Summary | |
AttributeTypeAndValue()
Construct an empty AttributeTypeAndValue |
|
AttributeTypeAndValue(java.lang.String type,
java.lang.Object value)
Construct an AttributeTypeAndValue. |
Method Summary | |
java.lang.Object |
clone()
Implements the cloning. |
int |
compareTo(java.lang.Object object)
Compares two NameComponents. |
int |
compareToIgnoreCase(java.lang.Object object)
Compares two NameComponents. |
int |
getLength()
Get the upName length |
int |
getStart()
get the position in the original upName where this atav starts. |
java.lang.String |
getType()
Get the type of a AttributeTypeAndValue |
java.lang.String |
getUpName()
Get the user provided form of this attribute type and value |
java.lang.Object |
getValue()
Get the Value of a AttributeTypeAndValue |
int |
hashCode()
Gets the hashcode of this object. |
java.lang.String |
normalize()
A Normalized String representation of a AttributeTypeAndValue : - type is trimed and lowercased - value is trimed and lowercased |
void |
setType(java.lang.String type)
Store the type |
void |
setTypeNormalized(java.lang.String type)
Store the type, after having trimmed and lowercased it. |
void |
setValue(java.lang.Object value)
Store the value of a AttributeTypeAndValue. |
void |
setValueNormalized(java.lang.String value)
Store the value of a AttributeTypeAndValue, after having trimmed it. |
java.lang.String |
toString()
A String representation of a AttributeTypeAndValue. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeTypeAndValue()
public AttributeTypeAndValue(java.lang.String type, java.lang.Object value) throws javax.naming.InvalidNameException
type
- The typevalue
- the valueMethod Detail |
public java.lang.String getType()
public void setType(java.lang.String type) throws javax.naming.InvalidNameException
type
- The AttributeTypeAndValue type
javax.naming.InvalidNameException
public void setTypeNormalized(java.lang.String type) throws javax.naming.InvalidNameException
type
- The AttributeTypeAndValue type
javax.naming.InvalidNameException
public java.lang.Object getValue()
public void setValue(java.lang.Object value)
value
- The value of the AttributeTypeAndValuepublic int getLength()
public int getStart()
public java.lang.String getUpName()
public void setValueNormalized(java.lang.String value)
value
- The value of the AttributeTypeAndValuepublic java.lang.Object clone()
public int compareTo(java.lang.Object object)
compareTo
in interface java.lang.Comparable
object
-
public int compareToIgnoreCase(java.lang.Object object)
object
-
public java.lang.String normalize()
public int hashCode()
Object.hashCode()
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |