Class Entries

    • Method Detail

      • processVirtualAttributes

        public static Entry processVirtualAttributes​(Entry e)
        Performs any necessary virtual attribute processing for this entry. This should only be called at the time the entry is decoded or created within the backend.
        Parameters:
        e - the entry where to add virtual attributes
        Returns:
        the provided entry
      • shallowCopyOfEntryWithoutVirtualAttributes

        public static Entry shallowCopyOfEntryWithoutVirtualAttributes​(Entry e)
        Returns a shallow copy of this entry, the attributes are shared between this entry and the returned entry.

        Note: this method does not copy the virtual attributes. To obtain the virtual attributes, use processVirtualAttributes(Entry) after calling the current method.

        Parameters:
        e - the entry to copy
        Returns:
        a shallow copy of this entry
      • newAttributeFilter

        public static AttributeFilter newAttributeFilter​(Collection<String> attrNames,
                                                         boolean omitValues,
                                                         boolean omitReal,
                                                         boolean omitVirtual)
        Returns an attribute filter which will keep only the attributes which match the provided criteria.
        Parameters:
        attrNames - The attributes to include, may include wild cards.
        omitValues - Indicates whether to omit attribute values when processing.
        omitReal - Indicates whether to exclude real attributes.
        omitVirtual - Indicates whether to exclude virtual attributes.
        Returns:
        An attribute filter which will keep only the attributes which match the provided criteria.