Class 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.

    • 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.