org.gstreamer
Class ElementFactory

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
                              extended by org.gstreamer.ElementFactory

public class ElementFactory
extends PluginFeature

ElementFactory is used to create instances of elements. Use the find(java.lang.String) and create(java.lang.String) methods to create element instances or use make(java.lang.String, java.lang.String) as a convenient shortcut.


Nested Class Summary
 
Nested classes/interfaces inherited from class org.gstreamer.GObject
GObject.GCallback
 
Nested classes/interfaces inherited from class org.gstreamer.lowlevel.NativeObject
org.gstreamer.lowlevel.NativeObject.Initializer
 
Field Summary
 
Fields inherited from class org.gstreamer.lowlevel.NativeObject
defaultInit, ownsHandle
 
Constructor Summary
ElementFactory(org.gstreamer.lowlevel.NativeObject.Initializer init)
          Creates a new instance of ElementFactory
 
Method Summary
 Element create(java.lang.String name)
          Creates a new element from the factory.
static ElementFactory find(java.lang.String name)
          Retrieve an instance of a factory that can produce Elements
 java.lang.String getAuthor()
          Returns the name of the person who wrote the factory.
 java.lang.String getDescription()
          Returns a description of the factory.
 java.lang.String getKlass()
          Returns a string describing the type of factory.
 java.lang.String getLongName()
          Returns the long, English name for the factory.
 java.util.List<StaticPadTemplate> getStaticPadTemplates()
          Gets the list of StaticPadTemplate for this factory.
static Element make(java.lang.String factoryName, java.lang.String name)
          Creates a new Element from the specified factory.
 
Methods inherited from class org.gstreamer.PluginFeature
checkVersion, getName, getRank, setName, setRank, 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, 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

ElementFactory

public ElementFactory(org.gstreamer.lowlevel.NativeObject.Initializer init)
Creates a new instance of ElementFactory

Parameters:
init - internal initialization data.
Method Detail

create

public Element create(java.lang.String name)
Creates a new element from the factory.

Parameters:
name - the name to assign to the created Element
Returns:
A new Element

getAuthor

public java.lang.String getAuthor()
Returns the name of the person who wrote the factory.

Returns:
The name of the author

getDescription

public java.lang.String getDescription()
Returns a description of the factory.

Returns:
A brief description of the factory.

getLongName

public java.lang.String getLongName()
Returns the long, English name for the factory.

Returns:
The long, English name for the factory.

getKlass

public java.lang.String getKlass()
Returns a string describing the type of factory. This is an unordered list separated with slashes ('/').

Returns:
The description of the type of factory.

getStaticPadTemplates

public java.util.List<StaticPadTemplate> getStaticPadTemplates()
Gets the list of StaticPadTemplate for this factory.

Returns:
The list of StaticPadTemplate

find

public static ElementFactory find(java.lang.String name)
Retrieve an instance of a factory that can produce Elements

Parameters:
name - The type of Element to produce.
Returns:
An ElementFactory that will produce Elements of the desired type.

make

public static Element make(java.lang.String factoryName,
                           java.lang.String name)
Creates a new Element from the specified factory.

Parameters:
factoryName - The name of the factory to use to produce the Element
name - The name to assign to the created Element
Returns:
A new GstElemElement