public class ContentItem extends GenericModel
Constructor and Description |
---|
ContentItem() |
Modifier and Type | Method and Description |
---|---|
ContentItem |
charset(String charset)
Deprecated.
|
ContentItem |
content(String content)
Deprecated.
|
ContentItem |
contentType(String contentType)
Deprecated.
|
ContentItem |
created(Date created)
Deprecated.
|
ContentItem |
forward(boolean forward)
Deprecated.
|
String |
getCharset()
Gets the character set of the text, for example, "UTF-8".
|
String |
getContent()
Gets the content to be analyzed.
|
String |
getContenttype()
Deprecated.
|
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()
Deprecated.
|
String |
getParentId()
Gets the unique id of the parent content item.
|
String |
getSourceid()
Deprecated.
|
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()
Deprecated.
|
String |
getUserId()
Gets the unique identifier for the author of this content.
|
ContentItem |
id(String id)
Deprecated.
|
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)
Deprecated.
|
ContentItem |
parentid(String parentId)
Deprecated.
|
ContentItem |
reply(boolean reply)
Deprecated.
|
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)
Deprecated.
|
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)
Deprecated.
|
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)
Deprecated.
|
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)
Deprecated.
|
void |
setUserId(String userId)
Sets the unique identifier for the author of this content.
|
ContentItem |
sourceid(String sourceId)
Deprecated.
|
ContentItem |
updated(Date updated)
Deprecated.
|
ContentItem |
userid(String userId)
Deprecated.
|
equals, hashCode, toString
@Deprecated public ContentItem charset(String charset)
charset
- the new character set of the text, for example, "UTF-8"@Deprecated public ContentItem content(String content)
content
- the content@Deprecated public ContentItem contentType(String contentType)
contentType
- the new MIME type of the content@Deprecated public ContentItem created(Date created)
created
- the new created date@Deprecated public 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()
@Deprecated public String getContenttype()
public Date getCreated()
public String getId()
public String getLanguage()
@Deprecated public String getParentid()
@Deprecated public String getSourceid()
public Date getUpdated()
@Deprecated public String getUserid()
@Deprecated public ContentItem id(String id)
id
- the unique identifierpublic boolean isForward()
public boolean isReply()
@Deprecated public ContentItem language(String language)
language
- the language charset (two-letter ISO 639-1 identifier)@Deprecated public ContentItem parentid(String parentId)
parentId
- the parent identifier@Deprecated public 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 content@Deprecated public 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)@Deprecated public void setParentid(String parentId)
parentId
- the parent identifierpublic void setReply(boolean reply)
reply
- true if is a reply@Deprecated public void setSourceid(String sourceId)
sourceId
- the source identifierpublic void setUpdated(Date updated)
updated
- the updated date@Deprecated public void setUserid(String userId)
userId
- the new user identifier@Deprecated public ContentItem sourceid(String sourceId)
sourceId
- the source identifier@Deprecated public ContentItem updated(Date updated)
updated
- the updated date@Deprecated public ContentItem userid(String userId)
userId
- the new user identifierpublic String getContentType()
public void setContentType(String contentType)
contentType
- the new MIME type of the contentpublic String getParentId()
public void setParentId(String parentId)
parentId
- the parent identifierpublic String getSourceId()
public void setSourceId(String sourceId)
sourceId
- the source identifierpublic String getUserId()
public void setUserId(String userId)
userId
- the new user identifierCopyright © 2015–2016 IBM Watson. All rights reserved.