@PublicAPI(stability=VOLATILE, mayInstantiate=false, mayExtend=false, mayInvoke=true) public final class VirtualAttribute extends AbstractAttribute
Attribute.RemoveOnceSwitchingAttributes
Constructor and Description |
---|
VirtualAttribute(org.forgerock.opendj.ldap.schema.AttributeType attributeType,
Entry entry,
VirtualAttributeRule rule)
Creates a new virtual attribute with the provided information.
|
Modifier and Type | Method and Description |
---|---|
org.forgerock.opendj.ldap.ConditionResult |
approximatelyEqualTo(org.forgerock.opendj.ldap.ByteString assertionValue)
Indicates whether this attribute has any value(s) that are
approximately equal to the provided value.
|
boolean |
contains(org.forgerock.opendj.ldap.ByteString value)
Indicates whether this attribute contains the specified value.
|
boolean |
containsAll(Collection<?> values)
Indicates whether this attribute contains all the values in the
collection.
|
org.forgerock.opendj.ldap.AttributeDescription |
getAttributeDescription()
Retrieves the attribute description for this attribute.
|
VirtualAttributeRule |
getVirtualAttributeRule()
Retrieves the virtual attribute rule that governs the behavior of
this virtual attribute.
|
org.forgerock.opendj.ldap.ConditionResult |
greaterThanOrEqualTo(org.forgerock.opendj.ldap.ByteString assertionValue)
Indicates whether this attribute has any value(s) that are
greater than or equal to the provided value.
|
boolean |
isEmpty()
Returns
true if this attribute contains no
attribute values. |
boolean |
isVirtual()
Indicates whether this is a virtual attribute (dynamically computed) rather than a real
attribute (persisted).
|
Iterator<org.forgerock.opendj.ldap.ByteString> |
iterator()
Returns an iterator over the attribute values in this attribute.
|
org.forgerock.opendj.ldap.ConditionResult |
lessThanOrEqualTo(org.forgerock.opendj.ldap.ByteString assertionValue)
Indicates whether this attribute has any value(s) that are less
than or equal to the provided value.
|
org.forgerock.opendj.ldap.ConditionResult |
matchesEqualityAssertion(org.forgerock.opendj.ldap.ByteString assertionValue)
Indicates whether this attribute matches the specified assertion value.
|
org.forgerock.opendj.ldap.ConditionResult |
matchesSubstring(org.forgerock.opendj.ldap.ByteString subInitial,
List<org.forgerock.opendj.ldap.ByteString> subAny,
org.forgerock.opendj.ldap.ByteString subFinal)
Indicates whether this attribute has any value(s) that match the
provided substring.
|
int |
size()
Returns the number of attribute values in this attribute.
|
void |
toString(StringBuilder buffer)
Appends a one-line string representation of this attribute to the
provided buffer.
|
equals, hashCode, isReal, toString
public VirtualAttribute(org.forgerock.opendj.ldap.schema.AttributeType attributeType, Entry entry, VirtualAttributeRule rule)
attributeType
- The attribute type for this virtual attribute.entry
- The entry in which this virtual attribute exists.rule
- The virtual attribute rule that governs the behavior of
this virtual attribute.public org.forgerock.opendj.ldap.ConditionResult approximatelyEqualTo(org.forgerock.opendj.ldap.ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.ConditionResult.UNDEFINED
if this attribute does not have
an approximate matching rule, ConditionResult.TRUE
if at
least one value is approximately equal to the provided
value, or ConditionResult.FALSE
otherwise.public boolean contains(org.forgerock.opendj.ldap.ByteString value)
Attribute
value
- The value for which to make the determination.true
if this attribute has the specified
value, or false
if not.public boolean containsAll(Collection<?> values)
Attribute
containsAll
in interface Attribute
containsAll
in class AbstractAttribute
values
- The set of values for which to make the determination.true
if this attribute contains all the
values in the provided collection, or false
if it does not contain at least one of them.public org.forgerock.opendj.ldap.ConditionResult matchesEqualityAssertion(org.forgerock.opendj.ldap.ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.true
if this attribute matches the specified assertion
value, or false
if not.public org.forgerock.opendj.ldap.AttributeDescription getAttributeDescription()
Attribute
public VirtualAttributeRule getVirtualAttributeRule()
public org.forgerock.opendj.ldap.ConditionResult greaterThanOrEqualTo(org.forgerock.opendj.ldap.ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.ConditionResult.UNDEFINED
if this attribute does not have
an ordering matching rule, ConditionResult.TRUE
if at
least one value is greater than or equal to the provided
assertion value, or ConditionResult.FALSE
otherwise.public boolean isEmpty()
AbstractAttribute
true
if this attribute contains no
attribute values.
This implementation returns true
if the
Attribute.size()
of this attribute is zero.
isEmpty
in interface Attribute
isEmpty
in class AbstractAttribute
true
if this attribute contains no
attribute values.public boolean isVirtual()
Attribute
true
if this is a virtual attribute.public Iterator<org.forgerock.opendj.ldap.ByteString> iterator()
Attribute
Iterator.remove()
.public org.forgerock.opendj.ldap.ConditionResult lessThanOrEqualTo(org.forgerock.opendj.ldap.ByteString assertionValue)
Attribute
assertionValue
- The assertion value for which to make the determination.ConditionResult.UNDEFINED
if this attribute does not have
an ordering matching rule, ConditionResult.TRUE
if at
least one value is less than or equal to the provided
assertion value, or ConditionResult.FALSE
otherwise.public org.forgerock.opendj.ldap.ConditionResult matchesSubstring(org.forgerock.opendj.ldap.ByteString subInitial, List<org.forgerock.opendj.ldap.ByteString> subAny, org.forgerock.opendj.ldap.ByteString subFinal)
Attribute
subInitial
- The subInitial component to use in the determination.subAny
- The subAny components to use in the determination.subFinal
- The subFinal component to use in the determination.ConditionResult.UNDEFINED
if this attribute does not have
a substring matching rule, ConditionResult.TRUE
if at
least one value matches the provided substring, or
ConditionResult.FALSE
otherwise.public int size()
Attribute
public void toString(StringBuilder buffer)
Attribute
buffer
- The buffer to which the information should be appended.Copyright © 2010-2017 ForgeRock AS. All Rights Reserved.