public class CSForumThreadContent extends CSItemContent
CSForumThread
object.
Set/Get
methods within CSForumThread
provide access to this content data and so there
should not typically be any need to explicitly use the get/set
methods supplied here.
CSForumThread
,
Serialized FormConstructor and Description |
---|
CSForumThreadContent()
Construct a
CSForumThreadContent object. |
Modifier and Type | Method and Description |
---|---|
CSItemContent |
createInstance()
Creates a new
CSForumThreadContent object and returns it as a CSItemContent , its
super class. |
boolean |
equals(java.lang.Object obj)
Determine whether or not this
CSForumThreadContent object is equal to another object. |
int |
getForumID()
Get the ID of the Forum to which this thread belongs.
|
java.util.Date |
getLastMsgDate()
Get the date of the most recent message in this thread.
|
int |
getMessageCount()
Get the number of messages within this thread.
|
int |
getThreadID()
Get the ID of this thread.
|
java.lang.String |
getThreadName()
Get the name of this thread.
|
void |
setForumID(int nForumID)
Set the ID of the Forum to which this thread belongs.
|
void |
setLastMsgDate(java.util.Date LastMsg)
Set the date of the most recent message in this thread.
|
void |
setMessageCount(int nCount)
Set the number of messages within this thread.
|
void |
setThreadID(int nThreadID)
Set the ID of this thread.
|
void |
setThreadName(java.lang.String strName)
Set the name of this thread.
|
java.lang.String |
toString()
Outputs the contents of this
CSForumThreadContent object to a String object in a
user-friendly format. |
clone, getID, setID, unset
public CSForumThreadContent()
CSForumThreadContent
object.
The ThreadID, ForumID, and Message Count are initialised to 0,
The ThreadName and LastMessageDate are initialised to null.
public void setThreadID(int nThreadID)
nThreadID
- the unique numeric ID of this thread.public int getThreadID()
public void setForumID(int nForumID)
nForumID
- unique numeric ID of the Forum which this thread is in.public int getForumID()
public void setThreadName(java.lang.String strName)
strName
- a String
containing the name of this thread.public java.lang.String getThreadName()
String
containing the name of this thread.public void setMessageCount(int nCount)
nCount
- the number of messages in this thread.public int getMessageCount()
public void setLastMsgDate(java.util.Date LastMsg)
LastMsg
- a Date
object representing the time and date that the most recent message was submitted
to this thread.public java.util.Date getLastMsgDate()
Date
object representing the time and date that the most recent message was submitted to
this thread.public CSItemContent createInstance()
CSForumThreadContent
object and returns it as a CSItemContent
, its
super class.
CSForumThreadContent
object.public java.lang.String toString()
CSForumThreadContent
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)
CSForumThreadContent
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.boolean
, false
if there are any differences between the objects.Copyright © 2022 Goss Interactive Ltd. All Rights Reserved.