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 |
Modification.apply(AttributeType attributeType)
Apply the AttributeType to the Modification
|
void |
DefaultModification.apply(AttributeType attributeType)
Apply the AttributeType to the Modification
|
void |
DefaultAttribute.apply(AttributeType attributeType)
Set the attribute type associated with this EntryAttribute.
|
void |
Attribute.apply(AttributeType attributeType)
Set the attribute type associated with this EntryAttribute.
|
protected void |
AbstractValue.apply(AttributeType attributeType)
Apply an AttributeType to the current Value, normalizing it.
|
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.
|
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 checker)
Uses the syntaxChecker associated with the attributeType to check if the
value is valid.
|
boolean |
AbstractValue.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 |
---|
BinaryValue(AttributeType attributeType,
byte[] value)
Creates a BinaryValue with an initial wrapped binary value.
|
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.
|
StringValue(AttributeType attributeType,
String value)
Creates a schema aware StringValue with an initial wrapped String 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
|
Modifier and Type | Method and Description |
---|---|
AttributeType |
SchemaEntityFactory.getAttributeType(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Construct an AttributeType from an entry representing an AttributeType.
|
MatchingRule |
SchemaEntityFactory.getMatchingRule(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName)
Construct an MatchingRule from an entry get from the Dit
|
LdapSyntax |
SchemaEntityFactory.getSyntax(SchemaManager schemaManager,
Entry entry,
Registries targetRegistries,
String schemaName) |
Copyright © 2003–2014 The Apache Software Foundation. All rights reserved.