public class Expression extends Entity
ASSET_STATE_VALUE, ASSET_VALUE, CHANGE_DATE_UTC, CONTENT_TYPE_VALUE, CONTENT_VALUE, CREATE_DATE_UTC, DELETE_OPERATION, DESCRIPTION_VALUE, FILENAME_VALUE, NAME_VALUE
Modifier and Type | Method and Description |
---|---|
boolean |
canDelete() |
void |
delete()
Deletes the expression.
|
Member |
getAuthor() |
DB.DateTime |
getAuthoredAt() |
Conversation |
getBelongsTo() |
String |
getContent() |
Conversation |
getInReplyTo() |
Collection<BaseAsset> |
getMentions() |
Collection<Expression> |
getReplies() |
void |
setAuthor(Member member)
Sets author for current conversation.
|
void |
setAuthoredAt(DB.DateTime date)
Sets date of creation.
|
void |
setBelongsTo(Conversation conversation)
Sets parent conversation.
|
void |
setContent(String content)
Set content of this message.
|
void |
setInReplyTo(Expression parent)
Sets parent message to current.
|
equals, get, getChangeComment, getChangeDate, getChangedBy, getCreateComment, getCreateDate, getCreatedBy, getID, getInstance, hashCode, save, save, toString
public Member getAuthor()
public void setAuthor(Member member)
member
- - authorpublic DB.DateTime getAuthoredAt()
public void setAuthoredAt(DB.DateTime date)
date
- creation date.public Conversation getBelongsTo()
public void setBelongsTo(Conversation conversation)
conversation
- parent conversation.public String getContent()
public void setContent(String content)
content
- content for this message.public Conversation getInReplyTo()
public void setInReplyTo(Expression parent)
parent
- parent message.public Collection<Expression> getReplies()
public Collection<BaseAsset> getMentions()
public boolean canDelete()
public void delete()
UnsupportedOperationException
- if the item is an invalid state for
the Operation.Copyright © 2013 Version One, Inc.. All rights reserved.