de.unikassel.android.sdcframework.transmission.facade
Enum ConnectionStrategyDescription

Package class diagram package ConnectionStrategyDescription
java.lang.Object
  extended by java.lang.Enum<ConnectionStrategyDescription>
      extended by de.unikassel.android.sdcframework.transmission.facade.ConnectionStrategyDescription
All Implemented Interfaces:
Serializable, Comparable<ConnectionStrategyDescription>

public enum ConnectionStrategyDescription
extends Enum<ConnectionStrategyDescription>

The enumeration defining the combinations of connection strategies to be used for transmission.


Enum Constant Summary
any_available
          Does use any available connections.
mobile_connection
          Does use mobile connections only.
wlan
          Does use WLAN connections only.
wlan_else_mobile
          Does use WLAN and mobile connections only.
 
Method Summary
static ConnectionStrategyDescription valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ConnectionStrategyDescription[] 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

any_available

public static final ConnectionStrategyDescription any_available
Does use any available connections.


wlan

public static final ConnectionStrategyDescription wlan
Does use WLAN connections only.


mobile_connection

public static final ConnectionStrategyDescription mobile_connection
Does use mobile connections only.


wlan_else_mobile

public static final ConnectionStrategyDescription wlan_else_mobile
Does use WLAN and mobile connections only.
Right now for API Level 7 this will have the same effect as the AVAILABLE configuration.

Method Detail

values

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

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

valueOf

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