Package org.opends.server.types
Class AbstractVirtualAttribute
- java.lang.Object
-
- java.util.AbstractCollection<E>
-
- java.util.AbstractSet<ByteString>
-
- org.forgerock.opendj.ldap.AbstractAttribute
-
- org.opends.server.types.AbstractVirtualAttribute
-
- All Implemented Interfaces:
Iterable<ByteString>
,Collection<ByteString>
,Set<ByteString>
,Attribute
public abstract class AbstractVirtualAttribute extends AbstractAttribute
This class defines a virtual attribute, which is a special kind of attribute whose values do not actually exist in persistent storage but rather are computed or otherwise obtained dynamically.Virtual attributes are unmodifiable.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description protected static class
AbstractVirtualAttribute.GeneratorIterator
This iterator implements the state management associated with iterators for its subclasses.
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractVirtualAttribute(AttributeDescription attributeDescription)
Creates a new virtual attribute for the provided attribute description.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AttributeDescription
getAttributeDescription()
Returns the attribute description of this attribute, which includes its attribute type and any options.boolean
isVirtual()
Indicates whether this is a virtual attribute (dynamically computed) rather than a real attribute (persisted).-
Methods inherited from class org.forgerock.opendj.ldap.AbstractAttribute
add, addAll, addAll, contains, containsAll, equals, firstValue, hashCode, isEmpty, iterator, matchesApproximateAssertion, matchesEqualityAssertion, matchesGreaterOrEqualAssertion, matchesLessOrEqualAssertion, matchesSubstringAssertion, parse, removeAll, removeAll, retainAll, retainAll, size, toArray, toString
-
Methods inherited from class java.util.AbstractCollection
add, clear, remove, toArray
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.forgerock.opendj.ldap.Attribute
add, clear, firstValueAsString, getAttributeDescriptionAsString, isReal, put, put, remove, toArray
-
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
-
-
-
-
Constructor Detail
-
AbstractVirtualAttribute
protected AbstractVirtualAttribute(AttributeDescription attributeDescription)
Creates a new virtual attribute for the provided attribute description.- Parameters:
attributeDescription
- The attribute description for which the values should be generated.
-
-
Method Detail
-
getAttributeDescription
public AttributeDescription getAttributeDescription()
Description copied from interface:Attribute
Returns the attribute description of this attribute, which includes its attribute type and any options.- Returns:
- The attribute description.
-
isVirtual
public boolean isVirtual()
Description copied from interface:Attribute
Indicates whether this is a virtual attribute (dynamically computed) rather than a real attribute (persisted).- Returns:
true
if this is a virtual attribute.
-
-