public class CSForumMessageContent extends CSItemContent
CSForumMessage
object.
set/get
methods within CSForumMessage
provide access to this content data and so there
should not typically be any need to explicitly use the get/set
methods supplied here.
CSForumMessage
,
Serialized FormConstructor and Description |
---|
CSForumMessageContent()
Construct a
CSForumMessageContent object. |
Modifier and Type | Method and Description |
---|---|
CSItemContent |
createInstance()
Create a new
CSForumMessageContent object and returns it as a CSItemContent , its
super class. |
boolean |
equals(java.lang.Object obj)
Determine whether this
CSForumMessageContent object is equal to another object. |
java.lang.String |
getBody()
Get the text of this message.
|
int |
getLevel()
Get the level at which this message is nested.
|
int |
getMessageID()
Get the ID of this message.
|
int |
getParentID()
Get the ID of this message's parent.
|
java.util.Date |
getPosted()
Get the posted date on this message.
|
java.lang.String |
getSubject()
Get subject of this message.
|
int |
getThreadID()
Get ID of thread containing this message.
|
java.lang.String |
getUsername()
Get username for this message.
|
void |
setBody(java.lang.String strBody)
Set the text of this message.
|
void |
setLevel(int nLevel)
Set the level at which this message is nested.
|
void |
setMessageID(int nMessageID)
Set the ID of this message.
|
void |
setParentID(int nParentID)
Set the ID of this message's parent.
|
void |
setPosted(java.util.Date Posted)
Set the posted date on this message.
|
void |
setSubject(java.lang.String strSubject)
Set subject of this message.
|
void |
setThreadID(int nThreadID)
Set thread ID for this message.
|
void |
setUsername(java.lang.String strUsername)
Set username for this message.
|
java.lang.String |
toString()
Output the contents of this
CSForumMessageContent object to a String object in a
user-friendly format. |
clone, getID, setID, unset
public CSForumMessageContent()
CSForumMessageContent
object.
The message ID, parent ID, and ThreadID are initialised to -1,
The username, message subject, message body, and posted date are initialised to null.
public void setMessageID(int nMessageID)
nMessageID
- the unique numeric ID of this message.public int getMessageID()
public void setParentID(int nParentID)
nParentID
- the unique numeric ID of the parent message.public int getParentID()
public void setThreadID(int nThreadID)
nThreadID
- the unique numeric ID of the thread which this message is in.public int getThreadID()
public void setUsername(java.lang.String strUsername)
strUsername
- a String
containing the name of the user who submitted this message.public java.lang.String getUsername()
String
containing the name of the user who submitted this message.public void setSubject(java.lang.String strSubject)
strSubject
- a String
containing the subject line for this message.public java.lang.String getSubject()
String
containing the subject line for this message.public void setPosted(java.util.Date Posted)
Posted
- a Date
object representing the date and time on which this message was submitted.public java.util.Date getPosted()
Date
object representing the date and time that this message was submitted.public void setBody(java.lang.String strBody)
strBody
- a String
containing the body of text for this message.public java.lang.String getBody()
String
containing the body of text for this message.public void setLevel(int nLevel)
nLevel
- the number of ancestors which this message has.public int getLevel()
public CSItemContent createInstance()
CSForumMessageContent
object and returns it as a CSItemContent
, its
super class.
CSForumMessageContent
object.public java.lang.String toString()
CSForumMessageContent
object to a String
object in a
user-friendly format.
toString
in class CSItemContent
String
containing the user-friendly output.public boolean equals(java.lang.Object obj)
CSForumMessageContent
object is equal to another object. Note that the key
data used for searching is not tested for equality.
equals
in class CSItemContent
obj
- the object to be tested for equality.false
if there are any differences between the objects.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.