public enum TagMergeMode extends java.lang.Enum<TagMergeMode>
Given two taglists: A - the one that are supplied to gst_tag_setter_merge_tags() or gst_tag_setter_add_tags() and B - the tags already in the element, how are the tags merged? In the table below this is shown for the cases that a tag exists in the list (A) or does not exists (!A) and combination thereof.
Enum Constant and Description |
---|
APPEND
Append tags
|
KEEP
Keep existing tags
|
KEEP_ALL
Keep all existing tags
|
PREPEND
Prepend tags
|
REPLACE
Replace tags
|
REPLACE_ALL
Replace all tags (clear list and append).
|
UNDEFINED
Undefined merge mode.
|
Modifier and Type | Method and Description |
---|---|
static TagMergeMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static TagMergeMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TagMergeMode UNDEFINED
public static final TagMergeMode REPLACE_ALL
public static final TagMergeMode REPLACE
public static final TagMergeMode APPEND
public static final TagMergeMode PREPEND
public static final TagMergeMode KEEP
public static final TagMergeMode KEEP_ALL
public static TagMergeMode[] values()
for (TagMergeMode c : TagMergeMode.values()) System.out.println(c);
public static TagMergeMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified namejava.lang.NullPointerException
- if the argument is null