public class ContentItem extends GenericModel
Constructor and Description |
---|
ContentItem() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContent()
Gets the content to be analyzed.
|
java.lang.String |
getContentType()
Gets the MIME type of the content, for example, "text/plain, text/html".
|
java.util.Date |
getCreated()
Gets the date that identifies when this content was created.
|
java.lang.String |
getId()
Gets the unique identifier for this content item.
|
java.lang.String |
getLanguage()
Gets the language identifier (two-letter ISO 639-1 identifier).
|
java.lang.String |
getParentId()
Gets the unique id of the parent content item.
|
java.util.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(java.lang.String content)
Sets the content to be analyzed.
|
void |
setContentType(java.lang.String contentType)
Sets the MIME type of the content, for example, "text/plain, text/html".
|
void |
setCreated(java.util.Date created)
Sets the date that identifies when this content was created.
|
void |
setForward(java.lang.Boolean forward)
Indicates whether this content item is a forwarded/copied version of another content item.
|
void |
setId(java.lang.String id)
Sets the unique identifier for this content item.
|
void |
setLanguage(java.lang.String language)
Sets the language identifier (two-letter ISO 639-1 identifier).
|
void |
setParentId(java.lang.String parentId)
Sets the unique id of the parent content item.
|
void |
setReply(java.lang.Boolean reply)
Indicates whether this content item is a reply to another content item.
|
void |
setUpdated(java.util.Date updated)
Sets the date that identifies when this content was last updated..
|
equals, hashCode, toString
public java.lang.String getContent()
public java.util.Date getCreated()
public java.lang.String getId()
public java.lang.String getLanguage()
public java.util.Date getUpdated()
public boolean isForward()
public boolean isReply()
public void setContent(java.lang.String content)
content
- the new contentpublic void setCreated(java.util.Date created)
created
- the new created datepublic void setId(java.lang.String id)
id
- the unique identifierpublic void setLanguage(java.lang.String language)
language
- the language charset (two-letter ISO 639-1 identifier)public void setUpdated(java.util.Date updated)
updated
- the updated datepublic java.lang.String getContentType()
public void setContentType(java.lang.String contentType)
contentType
- the new MIME type of the contentpublic java.lang.String getParentId()
public void setParentId(java.lang.String parentId)
parentId
- the parent identifierpublic void setForward(java.lang.Boolean forward)
forward
- set true if the content is a forwarded/copied version of another content item.public void setReply(java.lang.Boolean reply)
reply
- true if is a reply