|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<OwOSFamily>
com.wewebu.ow.server.ui.ua.OwOSFamily
public enum OwOSFamily
HTTP user agent pattern based operating system family model. Enumeration elements are capable of decoding themselves from user agent strings, operating system user agent tokens or enumeratrion elemenrt string name.
Alfresco Workdesk
Copyright (c) Alfresco Software, Inc.
All rights reserved.
For licensing information read the license.txt file or
go to: http://wiki.alfresco.com
Enum Constant Summary | |
---|---|
OS_X
|
|
UNKNOWN
|
|
WINDOWS
|
Method Summary | |
---|---|
static OwOSFamily |
findFirst(String userAgent)
User agent string OS family parse-search |
static OwOSFamily |
from(String family)
|
static OwOSFamily |
fromFamilyName(String familyName)
|
String |
getFamilyName()
|
Pattern |
getPattern()
|
static OwOSFamily |
matchPattern(String family)
|
static OwOSFamily |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OwOSFamily[] |
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 |
---|
public static final OwOSFamily WINDOWS
public static final OwOSFamily OS_X
public static final OwOSFamily UNKNOWN
Method Detail |
---|
public static OwOSFamily[] values()
for (OwOSFamily c : OwOSFamily.values()) System.out.println(c);
public static OwOSFamily valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is nullpublic static OwOSFamily fromFamilyName(String familyName)
familyName
-
public static OwOSFamily findFirst(String userAgent)
userAgent
-
public static OwOSFamily matchPattern(String family)
family
-
public static OwOSFamily from(String family)
family
-
public String getFamilyName()
public Pattern getPattern()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |