public final class Item extends Object implements Serializable
| Modifier and Type | Class and Description |
|---|---|
static class |
Item.Type
Type of item extracted form a page.
|
| Constructor and Description |
|---|
Item()
Default Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
String |
getDescription() |
Float |
getFreshScore() |
long |
getId() |
String |
getImg() |
String |
getLink() |
Date |
getPubDate() |
Float |
getSpamScore() |
Float |
getStaticRank() |
String |
getTextSummary() |
String |
getTitle() |
Item.Type |
getType() |
String |
getXroot() |
int |
hashCode() |
void |
setDescription(String description) |
void |
setFreshScore(Float freshScore) |
void |
setId(long id) |
void |
setImg(String img) |
void |
setLink(String link) |
void |
setPubDate(Date pubDate) |
void |
setSpamScore(Float spamScore) |
void |
setStaticRank(Float staticRank) |
void |
setTextSummary(String textSummary) |
void |
setTitle(String title) |
void |
setType(Item.Type type) |
void |
setXroot(String xroot) |
String |
toString() |
public long getId()
public String getTitle()
public String getDescription()
public String getXroot()
public Date getPubDate()
public String getLink()
public String getImg()
public String getTextSummary()
public Float getSpamScore()
public Float getStaticRank()
public Float getFreshScore()
public Item.Type getType()
Type of the itempublic void setId(long id)
id - the unique identifier of the item (created by Diffbot)public void setTitle(String title)
title - the title of the itempublic void setDescription(String description)
description - the description of the itempublic void setXroot(String xroot)
xroot - the XPath expression identifying the node containing the item contentspublic void setPubDate(Date pubDate)
pubDate - the publication date of the itempublic void setLink(String link)
link - the link of the itempublic void setType(Item.Type type)
type - the Type of the itempublic void setImg(String img)
img - the URL of the image associated to the itempublic void setTextSummary(String textSummary)
textSummary - the summary of the itempublic void setSpamScore(Float spamScore)
spamScore - the probability that the item is spam/adpublic void setStaticRank(Float staticRank)
staticRank - the quality score of the item on a 1 to 5 scalepublic void setFreshScore(Float freshScore)
freshScore - the percentage of the item that has changed compared to the previous crawlCopyright © 2013. All Rights Reserved.