org.gstreamer
Class PadTemplate

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.PadTemplate

public class PadTemplate
extends GstObject

Padtemplates describe the possible media types a Pad or an ElementFactory can handle. This allows for both inspection of handled types before loading the element plugin as well as identifying pads on elements that are not yet created (request or sometimes pads). Pad and PadTemplates have Caps attached to it to describe the media type they are capable of dealing with. getCaps() is used to get the caps of a padtemplate. It is not possible to modify the caps of a padtemplate after creation.


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
PadTemplate(NativeObject.Initializer init)
          Creates a new proxy for PadTemplate.
PadTemplate(java.lang.String nameTemplate, PadDirection direction, Caps caps)
          Creates a new pad template with a name according to the given template and with the given arguments.
PadTemplate(java.lang.String nameTemplate, PadDirection direction, PadPresence presence, Caps caps)
          Creates a new pad template with a name according to the given template and with the given arguments.
 
Method Summary
 Caps getCaps()
          Gets the Caps set on this PadTemplate
 
Methods inherited from class org.gstreamer.GstObject
addListenerProxy, getName, initializer, initializer, objectFor, objectFor, ref, removeListenerProxy, setName, steal, toString, 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

PadTemplate

public PadTemplate(NativeObject.Initializer init)
Creates a new proxy for PadTemplate.

This is only for internal use.

Parameters:
init - internal initialization data.

PadTemplate

public PadTemplate(java.lang.String nameTemplate,
                   PadDirection direction,
                   Caps caps)
Creates a new pad template with a name according to the given template and with the given arguments.

Parameters:
nameTemplate - the name template.
direction - the direction of the template.
caps - a Caps set for the template.

PadTemplate

public PadTemplate(java.lang.String nameTemplate,
                   PadDirection direction,
                   PadPresence presence,
                   Caps caps)
Creates a new pad template with a name according to the given template and with the given arguments.

Parameters:
nameTemplate - the name template.
direction - the direction of the template.
presence - the presence of the pad, which controls the lifetime.
caps - a Caps set for the template.
Method Detail

getCaps

public Caps getCaps()
Gets the Caps set on this PadTemplate

Returns:
the media type on this template.