Ajocado API 1.0.0.Alpha2

org.jboss.arquillian.ajocado.browser
Enum BrowserType

java.lang.Object
  extended by java.lang.Enum<BrowserType>
      extended by org.jboss.arquillian.ajocado.browser.BrowserType
All Implemented Interfaces:
Serializable, Comparable<BrowserType>

public enum BrowserType
extends Enum<BrowserType>

Enumeration of supported browsers.

This enum has direct association to browser modes, see BrowserMode.

Version:
$Revision$
Author:
Lukas Fryc

Enum Constant Summary
FIREFOX
          The Mozilla Firefox browser
GOOGLE_CHROME
          The Google Chrome browser
IEXPLORE
          The Internet Explorer browser
KONQUEROR
          The Konqueror browser
MOCK
          Mock browser
OPERA
          The Opera browser
SAFARI
          The Safari browser
 
Method Summary
static BrowserType parseType(String browserType)
          Parses the type in case-insensitive manner.
static EnumSet<BrowserType> parseTypes(String browserTypesEnumeration)
           Returns set of browser types derived from string enumeration of comma- and/or space-separated representation of browser types (parseType(String)).
static BrowserType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static BrowserType[] 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

FIREFOX

public static final BrowserType FIREFOX
The Mozilla Firefox browser


IEXPLORE

public static final BrowserType IEXPLORE
The Internet Explorer browser


SAFARI

public static final BrowserType SAFARI
The Safari browser


OPERA

public static final BrowserType OPERA
The Opera browser


GOOGLE_CHROME

public static final BrowserType GOOGLE_CHROME
The Google Chrome browser


KONQUEROR

public static final BrowserType KONQUEROR
The Konqueror browser


MOCK

public static final BrowserType MOCK
Mock browser

Method Detail

values

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

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

valueOf

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

parseType

public static BrowserType parseType(String browserType)
Parses the type in case-insensitive manner.

Parameters:
browserType - the browser type
Returns:
the browser type
Throws:
IllegalArgumentException - if the given browserMode isn't supported

parseTypes

public static EnumSet<BrowserType> parseTypes(String browserTypesEnumeration)

Returns set of browser types derived from string enumeration of comma- and/or space-separated representation of browser types (parseType(String)).

Parameters:
browserTypesEnumeration - comma and/or spaces separated string enumeration of string representation of browser types
Returns:
the set of browser modes
Throws:
IllegalArgumentException - if one of the given browser modes isn't supported

Ajocado API 1.0.0.Alpha2

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.