public static enum WebPageDateExtractor.DateSource extends Enum<WebPageDateExtractor.DateSource>
| Enum Constant and Description |
|---|
HEADER
date was found in a HTTP header
|
META
date is contained in a
<meta /> element |
NOT_FOUND
Modification date is unknown
|
TEXT_DATE
date was found in normal text content
|
TIME
date is contained in a
<time /> element |
TRIGGER_WORD
date was found in a paragraph containing a trigger word
|
URL
date is part of Web page URL
|
| Modifier and Type | Method and Description |
|---|---|
static WebPageDateExtractor.DateSource |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static WebPageDateExtractor.DateSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final WebPageDateExtractor.DateSource URL
public static final WebPageDateExtractor.DateSource TIME
<time /> elementpublic static final WebPageDateExtractor.DateSource META
<meta /> elementpublic static final WebPageDateExtractor.DateSource TRIGGER_WORD
public static final WebPageDateExtractor.DateSource TEXT_DATE
public static final WebPageDateExtractor.DateSource HEADER
public static final WebPageDateExtractor.DateSource NOT_FOUND
public static WebPageDateExtractor.DateSource[] values()
for (WebPageDateExtractor.DateSource c : WebPageDateExtractor.DateSource.values()) System.out.println(c);
public static WebPageDateExtractor.DateSource 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 nullCopyright © 2017. All rights reserved.