|
|||||||||||
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.
Constructor Summary | |
AttributeTypeAndValue()
Construct an empty AttributeTypeAndValue |
|
AttributeTypeAndValue(java.lang.String type,
java.lang.String 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. |
java.lang.String |
getType()
Get the type of a AttributeTypeAndValue |
java.lang.String |
getValue()
Get the Value of a AttributeTypeAndValue |
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.String 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, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public AttributeTypeAndValue()
public AttributeTypeAndValue(java.lang.String type, java.lang.String 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.String getValue()
public void setValue(java.lang.String value)
value
- The value of the AttributeTypeAndValuepublic 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 java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |