org.gstreamer
Class PluginFeature

java.lang.Object
  extended by org.gstreamer.lowlevel.NativeValue
      extended by org.gstreamer.lowlevel.Handle
          extended by org.gstreamer.lowlevel.NativeObject
              extended by org.gstreamer.lowlevel.RefCountedObject
                  extended by org.gstreamer.GObject
                      extended by org.gstreamer.GstObject
                          extended by org.gstreamer.PluginFeature
Direct Known Subclasses:
ElementFactory

public class PluginFeature
extends GstObject

Base class for contents of a Plugin This is a base class for anything that can be added to a Plugin.

See Also:
Plugin

Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.GObject
GObject.GCallback
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, ownsHandle
 
Constructor Summary
PluginFeature(NativeObject.Initializer init)
          Creates a new instance of PluginFeature
 
Method Summary
 boolean checkVersion(int major, int minor, int micro)
          Checks whether the given plugin feature is at least the required version.
 java.lang.String getName()
          Gets the name of a plugin feature.
 int getRank()
          Gets the rank of a plugin feature.
 boolean setName(java.lang.String name)
          Sets the name of a plugin feature.
 void setRank(int rank)
          Set the rank for the plugin feature.
 java.lang.String toString()
           
 
Methods inherited from class org.gstreamer.GstObject
addListenerProxy, initializer, initializer, objectFor, objectFor, ref, removeListenerProxy, steal, unref
 
Methods inherited from class org.gstreamer.GObject
addCallback, connect, connect, connect, disconnect, disconnect, disposeNativeHandle, g_signal_connect, get, getPointer, invalidate, objectFor, removeCallback, set
 
Methods inherited from class org.gstreamer.lowlevel.NativeObject
classFor, disown, dispose, equals, finalize, getNativeAddress, handle, hashCode, initializer, instanceFor, isDisposed, nativeValue, objectFor, objectFor
 
Methods inherited from class java.lang.Object
clone, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PluginFeature

public PluginFeature(NativeObject.Initializer init)
Creates a new instance of PluginFeature

Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class GstObject

getName

public java.lang.String getName()
Gets the name of a plugin feature.

Overrides:
getName in class GstObject
Returns:
The name.

setName

public boolean setName(java.lang.String name)
Sets the name of a plugin feature. The name uniquely identifies a feature within all features of the same type. Renaming a plugin feature is not allowed.

Overrides:
setName in class GstObject
Parameters:
name - The name to set.
Returns:
true if the name was set. Since Objects that have a parent cannot be renamed, this function returns false in those cases.

setRank

public void setRank(int rank)
Set the rank for the plugin feature. Specifies a rank for a plugin feature, so that autoplugging uses the most appropriate feature.

Parameters:
rank - The rank value - higher number means more priority rank

getRank

public int getRank()
Gets the rank of a plugin feature.

Returns:
The rank of the feature.

checkVersion

public boolean checkVersion(int major,
                            int minor,
                            int micro)
Checks whether the given plugin feature is at least the required version.

Parameters:
major - Minimum required major version
minor - Minimum required minor version
micro - Minimum required micro version
Returns:
true if the plugin feature has at least the required version, otherwise false.