|
||||||||||
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
public class 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(String type,
Object value)
Construct an AttributeTypeAndValue. |
Method Summary | |
---|---|
Object |
clone()
Implements the cloning. |
int |
compareTo(Object object)
Compares two NameComponents. |
int |
compareToIgnoreCase(Object object)
Compares two NameComponents. |
int |
getLength()
Get the upName length |
String |
getNormalizedValue()
Get the normalized Value of a AttributeTypeAndValue |
String |
getNormType()
Get the normalized type of a AttributeTypeAndValue |
int |
getStart()
get the position in the original upName where this atav starts. |
String |
getUpName()
Get the user provided form of this attribute type and value |
String |
getUpType()
Get the user provided type of a AttributeTypeAndValue |
Object |
getValue()
Get the Value of a AttributeTypeAndValue |
int |
hashCode()
Gets the hashcode of this object. |
String |
normalize()
A Normalized String representation of a AttributeTypeAndValue : - type is trimed and lowercased - value is trimed and lowercased, and special characters are escaped if needed. |
void |
setType(String type)
Store the type |
void |
setTypeNormalized(String type)
Store the type, after having trimmed and lowercased it. |
void |
setValue(Object value)
Store the value of a AttributeTypeAndValue. |
void |
setValueNormalized(String value)
Store the value of a AttributeTypeAndValue, after having trimmed it. |
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(String type, Object value) throws InvalidNameException
type
- The typevalue
- the value
InvalidNameException
Method Detail |
---|
public String getNormType()
public String getUpType()
public void setType(String type) throws InvalidNameException
type
- The AttributeTypeAndValue type
InvalidNameException
public void setTypeNormalized(String type) throws InvalidNameException
type
- The AttributeTypeAndValue type
InvalidNameException
public Object getValue()
public String getNormalizedValue()
public void setValue(Object value)
value
- The value of the AttributeTypeAndValuepublic int getLength()
public int getStart()
public String getUpName()
public void setValueNormalized(String value)
value
- The value of the AttributeTypeAndValuepublic Object clone()
clone
in class Object
public int compareTo(Object object)
compareTo
in interface Comparable
object
-
public int compareToIgnoreCase(Object object)
object
-
public String normalize()
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |