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 void
fromOther
(MappingSet ms, boolean remove) Decodes the values ofother
slots into proper extension slots.static void
toOther
(MappingSet ms, boolean remove) Encodes extension slots intoother
values.
-
Method Details
-
toOther
Encodes extension slots intoother
values.- Parameters:
ms
- The mapping set whose extension slots are to to converted toother
values.remove
- Iftrue
, the extension slots will be removed from the set after they have been converted.
-
fromOther
Decodes the values ofother
slots into proper extension slots.- Parameters:
ms
- The mapping set whoseother
slots are to be converted into extension slots.remove
- Iftrue
, theother
slots will be removed after the conversion.
-