public class ContentItem extends Object
| Constructor and Description |
|---|
ContentItem() |
| Modifier and Type | Method and Description |
|---|---|
String |
getCharset()
Gets the character set of the text, for example, "UTF-8".
|
String |
getContent()
Gets the content to be analyzed.
|
String |
getContenttype()
Gets the MIME type of the content, for example, "text/plain, text/html".
|
Date |
getCreated()
Gets the date that identifies when this content was created.
|
String |
getId()
Gets the unique identifier for this content item.
|
String |
getLanguage()
Gets the language identifier (two-letter ISO 639-1 identifier).
|
String |
getParentid()
Gets the unique id of the parent content item.
|
String |
getSourceid()
Gets the identifier for the source of this content.
|
Date |
getUpdated()
Gets the date that identifies when this content was last updated.
|
String |
getUserid()
Gets the unique identifier for the author of this content.
|
boolean |
isForward()
Indicates whether this content item is a forwarded/copied version of another content item.
|
boolean |
isReply()
Indicates whether this content item is a reply to another content item.
|
void |
setCharset(String charset)
Sets the character set of the text, for example, "UTF-8".
|
void |
setContent(String content)
Sets the content to be analyzed.
|
void |
setContenttype(String contenttype)
Sets the MIME type of the content, for example, "text/plain, text/html".
|
void |
setCreated(Date created)
Sets the date that identifies when this content was created.
|
void |
setForward(boolean forward)
Indicates whether this content item is a forwarded/copied
version of another content item.
|
void |
setId(String id)
Sets the unique identifier for this content item.
|
void |
setLanguage(String language)
Sets the language identifier (two-letter ISO 639-1 identifier).
|
void |
setParentid(String parentid)
Sets the unique id of the parent content item.
|
void |
setReply(boolean reply)
Indicates whether this content item is a reply to another content item.
|
void |
setSourceid(String sourceid)
Sets the identifier for the source of this content.
|
void |
setUpdated(Date updated)
Sets the date that identifies when this content was last updated..
|
void |
setUserid(String userid)
Sets the unique identifier for the author of this content.
|
String |
toString() |
public String getUserid()
public void setUserid(String userid)
userid - the new user identifierpublic String getCharset()
public String getContent()
public String getContenttype()
public Date getCreated()
public boolean isForward()
public String getId()
public String getLanguage()
public String getParentid()
public String getSourceid()
public Date getUpdated()
public boolean isReply()
public void setCharset(String charset)
charset - the new character set of the text, for example, "UTF-8"public void setContent(String content)
content - the new contentpublic void setContenttype(String contenttype)
contenttype - the new MIME type of the contentpublic void setCreated(Date created)
created - the new created datepublic void setForward(boolean forward)
forward - set true if the content is a forwarded/copied version of another content item.public void setId(String id)
id - the unique identifierpublic void setLanguage(String language)
language - the language charset (two-letter ISO 639-1 identifier)public void setParentid(String parentid)
parentid - the parent identifierpublic void setReply(boolean reply)
reply - true if is a replypublic void setSourceid(String sourceid)
sourceid - the source identifierpublic void setUpdated(Date updated)
updated - the updated dateCopyright © 2015. All rights reserved.