Class VersionSlot<T>
- java.lang.Object
-
- org.incenp.obofoundry.sssom.slots.Slot<T>
-
- org.incenp.obofoundry.sssom.slots.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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(ISlotVisitor<T> visitor, T target, Object value)Accepts a visitor.voidsetValue(T object, String value)Parses a string value into a SSSOM version and assigns it to the slot for the given object.-
Methods inherited from class org.incenp.obofoundry.sssom.slots.Slot
accept, getCompliantVersion, getName, getType, getURI, getValue, isEntityReference, isPropagatable, isURI, setValue
-
-
-
-
Method Detail
-
accept
public void accept(ISlotVisitor<T> visitor, T target, Object value)
Description copied from class:SlotAccepts a visitor.
-
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.
-
-