org.gstreamer
Enum TagMergeMode

java.lang.Object
  extended by java.lang.Enum<TagMergeMode>
      extended by org.gstreamer.TagMergeMode
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<TagMergeMode>

public enum TagMergeMode
extends java.lang.Enum<TagMergeMode>

The different tag merging modes are basically replace, overwrite and append, but they can be seen from two directions.

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 Summary
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.
 
Method Summary
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.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

UNDEFINED

public static final TagMergeMode UNDEFINED
Undefined merge mode.


REPLACE_ALL

public static final TagMergeMode REPLACE_ALL
Replace all tags (clear list and append).


REPLACE

public static final TagMergeMode REPLACE
Replace tags


APPEND

public static final TagMergeMode APPEND
Append tags


PREPEND

public static final TagMergeMode PREPEND
Prepend tags


KEEP

public static final TagMergeMode KEEP
Keep existing tags


KEEP_ALL

public static final TagMergeMode KEEP_ALL
Keep all existing tags

Method Detail

values

public static TagMergeMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (TagMergeMode c : TagMergeMode.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static TagMergeMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
java.lang.NullPointerException - if the argument is null