| Modifier and Type | Method and Description |
|---|---|
int |
DefaultAttribute.add(byte[]... vals)
Adds some values to this attribute.
|
int |
Attribute.add(byte[]... vals)
Adds some values to this attribute.
|
int |
DefaultAttribute.add(String... vals)
Adds some values to this attribute.
|
int |
Attribute.add(String... vals)
Adds some values to this attribute.
|
int |
Attribute.add(Value... val)
Adds some values to this attribute.
|
void |
DefaultAttribute.apply(AttributeType attributeType)
Set the attribute type associated with this EntryAttribute.
|
void |
DefaultModification.apply(AttributeType attributeType)
Apply the AttributeType to the Modification
|
void |
Attribute.apply(AttributeType attributeType)
Set the attribute type associated with this EntryAttribute.
|
void |
Modification.apply(AttributeType attributeType)
Apply the AttributeType to the Modification
|
protected void |
DefaultEntry.createAttribute(String upId,
AttributeType attributeType,
byte[]... values)
Add a new EntryAttribute, with its upId.
|
protected void |
DefaultEntry.createAttribute(String upId,
AttributeType attributeType,
String... values)
Add a new EntryAttribute, with its upId.
|
protected void |
DefaultEntry.createAttribute(String upId,
AttributeType attributeType,
Value... values)
Add a new EntryAttribute, with its upId.
|
private Value |
DefaultAttribute.createBinaryValue(AttributeType attributeType,
byte[] value) |
private Entry |
DefaultEntry.createEntry(SchemaManager schemaManager,
Object... elements) |
int |
Value.deserialize(byte[] buffer,
int pos)
Deserialize a StringValue from a byte[], starting at a given position
|
byte[] |
DefaultAttribute.getBytes()
Get the byte[] value, if and only if the value is known to be Binary,
otherwise a InvalidAttributeValueException will be thrown
|
byte[] |
Attribute.getBytes()
Get the byte[] value, if and only if the value is known to be Binary,
otherwise a InvalidAttributeValueException will be thrown
|
String |
DefaultAttribute.getString()
Get the String value, if and only if the value is known to be a String,
otherwise a InvalidAttributeValueException will be thrown
|
String |
Attribute.getString()
Get the String value, if and only if the value is known to be a String,
otherwise a InvalidAttributeValueException will be thrown
|
boolean |
DefaultAttribute.isInstanceOf(AttributeType attributeType)
Check if the current attribute type has the same type (or is a descendant of)
than the given attributeType
|
boolean |
Attribute.isInstanceOf(AttributeType attributeType)
Check if the current attribute type has the same type (or is a descendant of)
than the given attributeType
|
boolean |
DefaultAttribute.isValid(AttributeType attributeType)
Checks to see if this attribute is valid along with the values it contains.
|
boolean |
Attribute.isValid(AttributeType attributeType)
Checks to see if this attribute is valid along with the values it contains.
|
boolean |
Value.isValid(SyntaxChecker syntaxChecker)
Uses the syntaxChecker associated with the attributeType to check if the
value is valid.
|
static Attribute |
AttributeUtils.toApiAttribute(Attribute jndiAttribute)
Convert a JNDI Attribute to an LDAP API Attribute
|
| Constructor and Description |
|---|
DefaultAttribute(AttributeType attributeType,
byte[]... vals)
Create a new instance of a schema aware Attribute, with some byte[] values.
|
DefaultAttribute(AttributeType attributeType,
String... vals)
Create a new instance of a schema aware Attribute, without ID but with some values.
|
DefaultAttribute(AttributeType attributeType,
Value... vals)
Create a new instance of a schema aware Attribute, with some values.
|
DefaultAttribute(String upId,
AttributeType attributeType,
byte[]... vals)
Create a new instance of a schema aware Attribute, with some byte[] values, and
a user provided ID.
|
DefaultAttribute(String upId,
AttributeType attributeType,
String... vals)
Create a new instance of a schema aware Attribute, with some values, and a user provided ID.
|
DefaultAttribute(String upId,
AttributeType attributeType,
Value... vals)
Create a new instance of a schema aware Attribute, with some values, and a user provided ID.
If the value does not correspond to the same attributeType, then it's wrapped value is copied into a new Value which uses the specified attributeType. |
DefaultModification(ModificationOperation operation,
AttributeType attributeType)
Creates a new instance of DefaultModification with no value.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType,
byte[]... values)
Creates a new instance of DefaultModification.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType,
String... values)
Creates a new instance of DefaultModification.
|
DefaultModification(ModificationOperation operation,
AttributeType attributeType,
Value... values)
Creates a new instance of DefaultModification.
|
Value(AttributeType attributeType,
byte[] upValue)
Creates a schema aware binary Value with an initial value.
|
Value(AttributeType attributeType,
String upValue)
Creates a schema aware StringValue with an initial user provided String value.
|
Value(AttributeType attributeType,
String upValue,
String normValue)
Creates a schema aware StringValue with an initial user provided String value and
its normalized Value
|
Value(AttributeType attributeType,
Value value)
Creates a Value from an existing Value with an AttributeType
|
| Modifier and Type | Method and Description |
|---|---|
private static Value |
FilterParser.parseAssertionValue(SchemaManager schemaManager,
String attribute,
byte[] filterBytes,
org.apache.directory.api.util.Position pos)
An assertion value :
|
| Constructor and Description |
|---|
LdifEntry(Dn dn,
Object... avas)
Creates a LdifEntry using a list of strings representing the Ldif element
|
LdifEntry(String dn,
Object... strings)
Creates a LdifEntry using a list of strings representing the Ldif element
|
| Modifier and Type | Method and Description |
|---|---|
int |
Rdn.deserialize(byte[] buffer,
int pos)
Deserialize a RDN from a byte[], starting at a given position
|
int |
Ava.deserialize(byte[] buffer,
int pos)
Deserialize an AVA from a byte[], starting at a given position
|
| Constructor and Description |
|---|
Rdn(SchemaManager schemaManager,
String upType,
String upValue)
A constructor that constructs a schema aware Rdn from a type and a value.
|
Rdn(String upType,
String upValue)
A constructor that constructs a Rdn from a type and a value.
|
Copyright © 2003–2019 The Apache Software Foundation. All rights reserved.