Class VersionSlot<T>

  • Type Parameters:
    T - The type of SSSOM object the slot is associated with. Of note, currently, only the MappingSet object is defined to have a slot of that type.

    public class VersionSlot<T>
    extends Slot<T>
    Represents a metadata slot that holds a SSSOM version.
    • Method Detail

      • accept

        public void accept​(ISlotVisitor<T> visitor,
                           T target,
                           Object value)
        Description copied from class: Slot
        Accepts a visitor.
        Overrides:
        accept in class Slot<T>
        Parameters:
        visitor - The visitor to accept.
        target - The object this slot is attached to.
        value - The value of the slot.
      • setValue

        public void setValue​(T object,
                             String value)
        Parses a string value into a SSSOM version and assigns it to the slot for the given object.

        If the string does not correspond to a recognised SSSOM version, the slot is assigned the special value Version.UNKNOWN.

        Overrides:
        setValue in class Slot<T>
        Parameters:
        object - The object (e.g. a mapping or a mapping set) for which the slot should be set.
        value - The value to assign to the slot on the given object.