public enum UrlDetectorOptions extends Enum<UrlDetectorOptions>
| Enum Constant and Description |
|---|
ALLOW_SINGLE_LEVEL_DOMAIN
Checks for single level domains as well.
|
BRACKET_MATCH
Matches brackets and closes on the second one.
|
Default
Default options, no special checks.
|
HTML
Checks all of the rules besides brackets.
|
JAVASCRIPT
Checks JSON format or but also looks for a single quote.
|
JSON
Checks for bracket characters and more importantly quotes to start and end strings.
|
QUOTE_MATCH
Matches quotes in the beginning and end of string.
|
SINGLE_QUOTE_MATCH
Matches single quotes in the beginning and end of a string.
|
XML
Checks for xml characters and uses them as ending characters as well as quotes.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getValue()
Gets the numeric value of the enum
|
boolean |
hasFlag(UrlDetectorOptions flag)
Checks if the current options have the specified flag.
|
static UrlDetectorOptions |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static UrlDetectorOptions[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final UrlDetectorOptions Default
public static final UrlDetectorOptions QUOTE_MATCH
public static final UrlDetectorOptions SINGLE_QUOTE_MATCH
public static final UrlDetectorOptions BRACKET_MATCH
public static final UrlDetectorOptions JSON
public static final UrlDetectorOptions JAVASCRIPT
public static final UrlDetectorOptions XML
public static final UrlDetectorOptions HTML
public static final UrlDetectorOptions ALLOW_SINGLE_LEVEL_DOMAIN
public static UrlDetectorOptions[] values()
for (UrlDetectorOptions c : UrlDetectorOptions.values()) System.out.println(c);
public static UrlDetectorOptions 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 boolean hasFlag(UrlDetectorOptions flag)
flag - The flag to check for.public int getValue()
Copyright © 2016. All rights reserved.