public class ContentItem extends GenericModel
| Constructor and Description | 
|---|
| ContentItem() | 
| Modifier and Type | Method and Description | 
|---|---|
| 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. | 
| Date | getUpdated()Gets the date that identifies when this content was last updated. | 
| 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 | 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 | setUpdated(Date updated)Sets the date that identifies when this content was last updated.. | 
equals, hashCode, toStringpublic String getContent()
public Date getCreated()
public String getId()
public String getLanguage()
public Date getUpdated()
public boolean isForward()
public boolean isReply()
public void setContent(String content)
content - the new contentpublic void setCreated(Date created)
created - the new created datepublic void setId(String id)
id - the unique identifierpublic void setLanguage(String language)
language - the language charset (two-letter ISO 639-1 identifier)public void setUpdated(Date updated)
updated - the updated datepublic 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 void setForward(Boolean forward)
forward - set true if the content is a forwarded/copied version of another content item.public void setReply(Boolean reply)
reply - true if is a replyCopyright © 2015–2016 IBM Watson. All rights reserved.