org.mobicents.media
Enum ComponentType

java.lang.Object
  extended by java.lang.Enum<ComponentType>
      extended by org.mobicents.media.ComponentType
All Implemented Interfaces:
Serializable, Comparable<ComponentType>

public enum ComponentType
extends Enum<ComponentType>

Defines all component types available in mms Examples of components are the audio player, recoder, DTMF detector, etc.

Author:
yulian oifa

Enum Constant Summary
DTMF_DETECTOR
           
DTMF_GENERATOR
           
PLAYER
           
RECORDER
           
SIGNAL_DETECTOR
           
SIGNAL_GENERATOR
           
SINE
           
SOUND_CARD
           
SPECTRA_ANALYZER
           
 
Method Summary
 int getType()
           
static ComponentType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ComponentType[] 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

DTMF_DETECTOR

public static final ComponentType DTMF_DETECTOR

DTMF_GENERATOR

public static final ComponentType DTMF_GENERATOR

PLAYER

public static final ComponentType PLAYER

RECORDER

public static final ComponentType RECORDER

SIGNAL_DETECTOR

public static final ComponentType SIGNAL_DETECTOR

SIGNAL_GENERATOR

public static final ComponentType SIGNAL_GENERATOR

SINE

public static final ComponentType SINE

SPECTRA_ANALYZER

public static final ComponentType SPECTRA_ANALYZER

SOUND_CARD

public static final ComponentType SOUND_CARD
Method Detail

values

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

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

valueOf

public static ComponentType valueOf(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:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null

getType

public int getType()


Copyright © 2013 TeleStax, Inc.. All Rights Reserved.