|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.directory.api.ldap.model.name.Ava
public class Ava
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. We will also keep a User Provided form of the AVA (Attribute Type And Value), called upName.
| Constructor Summary | |
|---|---|
Ava()
Constructs an empty Ava |
|
Ava(SchemaManager schemaManager)
Constructs an empty schema aware Ava. |
|
Ava(SchemaManager schemaManager,
String upType,
byte[] upValue)
Construct a schema aware Ava containing a binary value. |
|
Ava(SchemaManager schemaManager,
String upType,
String upValue)
Construct a schema aware Ava with a String value. |
|
Ava(String upType,
byte[] upValue)
Construct an Ava containing a binary value. |
|
Ava(String upType,
String upValue)
Construct an Ava with a String value. |
|
| Method Summary | |
|---|---|
void |
apply(SchemaManager schemaManager)
Apply a SchemaManager to the Ava. |
Ava |
clone()
Implements the cloning. |
int |
compareTo(Ava that)
|
boolean |
equals(Object obj)
|
AttributeType |
getAttributeType()
|
String |
getName()
Get the user provided form of this attribute type and value |
String |
getNormName()
Get the normalized Name of a Ava |
String |
getNormType()
Get the normalized type of a Ava |
Value<?> |
getNormValue()
Get the Value of a Ava |
String |
getType()
Get the user provided type of a Ava |
Value<?> |
getValue()
Get the User Provided Value of a Ava |
int |
hashCode()
Gets the hashcode of this object. |
boolean |
isSchemaAware()
Tells if the Ava is schema aware or not. |
String |
normalize()
A Normalized String representation of a Ava : type is trimed and lowercased value is trimed and lowercased, and special characters are escaped if needed. |
void |
readExternal(ObjectInput in)
We read back the data to create a new ATAV. |
String |
toString()
A String representation of an Ava, as provided by the user. |
void |
writeExternal(ObjectOutput out)
An Ava is composed of a type and a value. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Ava()
public Ava(SchemaManager schemaManager)
schemaManager - The SchemaManager instance
public Ava(String upType,
byte[] upValue)
throws LdapInvalidDnException
Note that the upValue should not be null or empty, or resolve to an empty string after having trimmed it.
upType - The User Provided typeupValue - The User Provided binary value
LdapInvalidDnException - If the given type or value are invalid
public Ava(SchemaManager schemaManager,
String upType,
byte[] upValue)
throws LdapInvalidDnException
Note that the upValue should not be null or empty, or resolve to an empty string after having trimmed it.
schemaManager - The SchemaManager instanceupType - The User Provided typeupValue - The User Provided binary value
LdapInvalidDnException - If the given type or value are invalid
public Ava(String upType,
String upValue)
throws LdapInvalidDnException
Note that the upValue should not be null or empty, or resolve to an empty string after having trimmed it.
upType - The User Provided typeupValue - The User Provided String value
LdapInvalidDnException - If the given type or value are invalid
public Ava(SchemaManager schemaManager,
String upType,
String upValue)
throws LdapInvalidDnException
Note that the upValue should not be null or empty, or resolve to an empty string after having trimmed it.
schemaManager - The SchemaManager instanceupType - The User Provided typeupValue - The User Provided String value
LdapInvalidDnException - If the given type or value are invalid| Method Detail |
|---|
public void apply(SchemaManager schemaManager)
throws LdapInvalidDnException
schemaManager - The SchemaManager instance to use
LdapInvalidDnException - If the Ava can't be normalized accordingly
to the given SchemaManagerpublic String getNormType()
public String getType()
public Value<?> getNormValue()
public Value<?> getValue()
public String getNormName()
public String getName()
public Ava clone()
clone in class Objectpublic String normalize()
public int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(Object)
public void writeExternal(ObjectOutput out)
throws IOException
writeExternal in interface ExternalizableIoException - If the Ava can't be written in the stream
IOExceptionExternalizable.readExternal(ObjectInput)
public void readExternal(ObjectInput in)
throws IOException,
ClassNotFoundException
writeExternal(ObjectOutput)
method
readExternal in interface ExternalizableIOException - If the Ava can't b written to the stream
ClassNotFoundException - If we can't deserialize an Ava from the streamExternalizable.readExternal(ObjectInput)public boolean isSchemaAware()
public AttributeType getAttributeType()
public int compareTo(Ava that)
compareTo in interface Comparable<Ava>Comparable.compareTo(Object)public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||