public enum OwOSFamily extends 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
Modifier and Type | Method and Description |
---|---|
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.
|
public static final OwOSFamily WINDOWS
public static final OwOSFamily OS_X
public static final OwOSFamily UNKNOWN
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 nameNullPointerException
- 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()
Copyright © 2014 Alfresco Business Solutions. All Rights Reserved.