org.gstreamer
Class PluginFeature
java.lang.Object
org.gstreamer.lowlevel.NativeValue
org.gstreamer.lowlevel.Handle
org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.RefCountedObject
org.gstreamer.GObject
org.gstreamer.GstObject
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
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.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 |
PluginFeature
public PluginFeature(NativeObject.Initializer init)
- Creates a new instance of PluginFeature
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 versionminor
- Minimum required minor versionmicro
- Minimum required micro version
- Returns:
- true if the plugin feature has at least the required version, otherwise false.