public class ContentItem extends GenericModel
Constructor and Description |
---|
ContentItem() |
Modifier and Type | Method and Description |
---|---|
ContentItem |
charset(String charset)
Sets the character set of the text, for example, "UTF-8".
|
ContentItem |
content(String content)
with content.
|
ContentItem |
contentType(String contenttype)
Sets the MIME type of the content, for example, "text/plain, text/html".
|
ContentItem |
created(Date created)
Sets the date that identifies when this content was created.
|
ContentItem |
forward(boolean forward)
Indicates whether this content item is a forwarded/copied version of another content item.
|
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.
|
ContentItem |
id(String id)
Sets the unique identifier for this content item.
|
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.
|
ContentItem |
language(String language)
Sets the language identifier (two-letter ISO 639-1 identifier).
|
ContentItem |
parentid(String parentid)
Sets the unique id of the parent content item.
|
ContentItem |
reply(boolean reply)
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.
|
ContentItem |
sourceid(String sourceid)
Sets the identifier for the source of this content.
|
ContentItem |
updated(Date updated)
Sets the date that identifies when this content was last updated..
|
ContentItem |
userid(String userid)
Sets the unique identifier for the author of this content.
|
equals, hashCode, toString
public ContentItem charset(String charset)
charset
- the new character set of the text, for example, "UTF-8"public ContentItem content(String content)
content
- the contentpublic ContentItem contentType(String contenttype)
contenttype
- the new MIME type of the contentpublic ContentItem created(Date created)
created
- the new created datepublic ContentItem forward(boolean forward)
forward
- set true if the content is a forwarded/copied version of another content item.public String getCharset()
public String getContent()
public String getContenttype()
public Date getCreated()
public String getId()
public String getLanguage()
public String getParentid()
public String getSourceid()
public Date getUpdated()
public String getUserid()
public ContentItem id(String id)
id
- the unique identifierpublic boolean isForward()
public boolean isReply()
public ContentItem language(String language)
language
- the language charset (two-letter ISO 639-1 identifier)public ContentItem parentid(String parentid)
parentid
- the parent identifierpublic ContentItem reply(boolean reply)
reply
- true if is a replypublic 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 datepublic void setUserid(String userid)
userid
- the new user identifierpublic ContentItem sourceid(String sourceid)
sourceid
- the source identifierpublic ContentItem updated(Date updated)
updated
- the updated datepublic ContentItem userid(String userid)
userid
- the new user identifierCopyright © 2015–2016. All rights reserved.