Package org.incenp.obofoundry.sssom.util
Class ExtensionSlotHelper
java.lang.Object
org.incenp.obofoundry.sssom.util.ExtensionSlotHelper
Helper class to work with extension slots.
This class provides static method to convert extension slots to and from
other slots, which were the original mechanism in SSSOM to store
non-standard metadata. That mechanism is now deprecated in favour of
extension slots, but since extension slots are not supported by all
implementations, it can be useful to have a way to fallback to the old
mechanism.
This should be considered experimental.
-
Method Summary
Modifier and TypeMethodDescriptionstatic voidfromOther(MappingSet ms, boolean remove) Decodes the values ofotherslots into proper extension slots.static voidtoOther(MappingSet ms, boolean remove) Encodes extension slots intoothervalues.
-
Method Details
-
toOther
Encodes extension slots intoothervalues.- Parameters:
ms- The mapping set whose extension slots are to to converted toothervalues.remove- Iftrue, the extension slots will be removed from the set after they have been converted.
-
fromOther
Decodes the values ofotherslots into proper extension slots.- Parameters:
ms- The mapping set whoseotherslots are to be converted into extension slots.remove- Iftrue, theotherslots will be removed after the conversion.
-