nl.bitwalker.useragentutils
Enum BrowserType

java.lang.Object
  extended by java.lang.Enum<BrowserType>
      extended by nl.bitwalker.useragentutils.BrowserType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BrowserType>

public enum BrowserType
extends java.lang.Enum<BrowserType>

Enum constants classifying the different types of browsers which are common in user-agent strings

Author:
harald

Enum Constant Summary
EMAIL_CLIENT
          Email client like Thunderbird
MOBILE_BROWSER
          Special web-browser for mobile devices
ROBOT
          Search robot, spider, crawler,...
TEXT_BROWSER
          Text only browser like the good old Lynx
TOOL
          Downloading tools
UNKNOWN
           
WEB_BROWSER
          Standard web-browser
 
Method Summary
 java.lang.String getName()
           
static BrowserType valueOf(java.lang.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

WEB_BROWSER

public static final BrowserType WEB_BROWSER
Standard web-browser


MOBILE_BROWSER

public static final BrowserType MOBILE_BROWSER
Special web-browser for mobile devices


TEXT_BROWSER

public static final BrowserType TEXT_BROWSER
Text only browser like the good old Lynx


EMAIL_CLIENT

public static final BrowserType EMAIL_CLIENT
Email client like Thunderbird


ROBOT

public static final BrowserType ROBOT
Search robot, spider, crawler,...


TOOL

public static final BrowserType TOOL
Downloading tools


UNKNOWN

public static final BrowserType UNKNOWN
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(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

getName

public java.lang.String getName()


Copyright © 2011. All Rights Reserved.