org.gstreamer
Enum PadLinkReturn

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

public enum PadLinkReturn
extends java.lang.Enum<PadLinkReturn>
implements org.gstreamer.lowlevel.IntegerEnum

Result values from Pad.link(Pad) and friends.


Enum Constant Summary
__UNKNOWN_NATIVE_VALUE
          The default enum value used when no other value matches the native value
NOFORMAT
          Pads do not have common format.
NOSCHED
          Pads cannot cooperate in scheduling.
OK
          Link succeeded.
REFUSED
          Refused for some reason.
WAS_LINKED
          Pad was already linked.
WRONG_DIRECTION
          Pads have wrong direction.
WRONG_HIERARCHY
          Pads have no common grandparent.
 
Method Summary
 int intValue()
          Gets the integer value of the enum.
static PadLinkReturn valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static PadLinkReturn[] 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

OK

public static final PadLinkReturn OK
Link succeeded.


WRONG_HIERARCHY

public static final PadLinkReturn WRONG_HIERARCHY
Pads have no common grandparent.


WAS_LINKED

public static final PadLinkReturn WAS_LINKED
Pad was already linked.


WRONG_DIRECTION

public static final PadLinkReturn WRONG_DIRECTION
Pads have wrong direction.


NOFORMAT

public static final PadLinkReturn NOFORMAT
Pads do not have common format.


NOSCHED

public static final PadLinkReturn NOSCHED
Pads cannot cooperate in scheduling.


REFUSED

public static final PadLinkReturn REFUSED
Refused for some reason.


__UNKNOWN_NATIVE_VALUE

public static final PadLinkReturn __UNKNOWN_NATIVE_VALUE
The default enum value used when no other value matches the native value

Method Detail

values

public static PadLinkReturn[] 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 (PadLinkReturn c : PadLinkReturn.values())
    System.out.println(c);

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

valueOf

public static PadLinkReturn 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

intValue

public int intValue()
Gets the integer value of the enum.

Specified by:
intValue in interface org.gstreamer.lowlevel.IntegerEnum
Returns:
The integer value for this enum.