Package org.incenp.obofoundry.sssom
Enum Class MergeOption
- All Implemented Interfaces:
Serializable
,Comparable<MergeOption>
,Constable
Represents various possible behaviours when merging a mapping set into
another.
This is used to control the behaviour of the SetMerger
object.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionMerge the curie map from the source set into the destination set.Merge extension slots from the source set into the destination set.Merge the multi-valued slots of the source set into the corresponding slots of the destination set.Add mappings of the source set to the mappings of the destination set.Fill the scalar (single-valued) slots of the destination set with the values from the source set (overwriting any existing value). -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final EnumSet
<MergeOption> Merge all mappings and all metadata from the source set into the destination set, except the scalar (single-valued) slots.static final EnumSet
<MergeOption> Merge all metadata from the source set into the destination set. -
Method Summary
Modifier and TypeMethodDescriptionstatic MergeOption
Returns the enum constant of this class with the specified name.static MergeOption[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
MERGE_MAPPINGS
Add mappings of the source set to the mappings of the destination set. -
MERGE_SCALARS
Fill the scalar (single-valued) slots of the destination set with the values from the source set (overwriting any existing value). -
MERGE_LISTS
Merge the multi-valued slots of the source set into the corresponding slots of the destination set. -
MERGE_EXTENSIONS
Merge extension slots from the source set into the destination set. If both sets have an extension slot with the same property, the value from the source set takes precedence. -
MERGE_CURIE_MAP
Merge the curie map from the source set into the destination set. If both maps define the same prefix name, the definition from the source set takes precedence.
-
-
Field Details
-
MERGE_METADATA
Merge all metadata from the source set into the destination set.This is equivalent to
MERGE_SCALARS
|MERGE_LISTS
|MERGE_EXTENSIONS
|MERGE_CURIE_MAP
. -
DEFAULT
Merge all mappings and all metadata from the source set into the destination set, except the scalar (single-valued) slots.This is the default behaviour of the
SetMerger
object, for compatibility with established behaviour of thesssom-cli
command.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-