public class NewsAttributes extends ExtensionMetadata
| Modifier and Type | Class and Description |
|---|---|
static class |
NewsAttributes.NewsGenre |
| Modifier and Type | Field and Description |
|---|---|
static String |
GENRES |
static String |
KEYWORDS |
static String |
LANGUAGE |
static String |
NAME |
static String |
PUBLICATION_DATE |
static String |
STOCK_TICKERS |
static String |
TITLE |
| Constructor and Description |
|---|
NewsAttributes() |
NewsAttributes(String name,
String language,
java.time.ZonedDateTime publicationDate,
String title) |
| Modifier and Type | Method and Description |
|---|---|
Map<String,String[]> |
asMap() |
boolean |
equals(Object other) |
NewsAttributes.NewsGenre[] |
getGenres() |
String[] |
getKeywords() |
String |
getLanguage() |
String |
getName() |
Date |
getPublicationDate() |
java.time.ZonedDateTime |
getPublicationDateTime() |
String[] |
getStockTickers() |
String |
getTitle() |
boolean |
isValid() |
void |
setGenres(NewsAttributes.NewsGenre[] genres) |
void |
setKeywords(String[] keywords) |
void |
setLanguage(String language) |
void |
setName(String name) |
void |
setPublicationDate(java.time.ZonedDateTime publicationDate) |
void |
setStockTickers(String[] stockTickers) |
void |
setTitle(String title) |
String |
toString() |
urlEqualspublic static final String NAME
public static final String LANGUAGE
public static final String GENRES
public static final String PUBLICATION_DATE
public static final String TITLE
public static final String KEYWORDS
public static final String STOCK_TICKERS
public String getName()
public void setName(String name)
public String getLanguage()
public void setLanguage(String language)
public NewsAttributes.NewsGenre[] getGenres()
public void setGenres(NewsAttributes.NewsGenre[] genres)
public Date getPublicationDate()
public java.time.ZonedDateTime getPublicationDateTime()
public void setPublicationDate(java.time.ZonedDateTime publicationDate)
public String getTitle()
public void setTitle(String title)
public String[] getKeywords()
public void setKeywords(String[] keywords)
public String[] getStockTickers()
public void setStockTickers(String[] stockTickers)
public boolean equals(Object other)
equals in class ExtensionMetadatapublic boolean isValid()
isValid in class ExtensionMetadatapublic Map<String,String[]> asMap()
asMap in class ExtensionMetadataCopyright © 2009–2021 Crawler-Commons. All rights reserved.