|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpe.pase.BBSMessage
public class BBSMessage
The class holds the information of bbs message.
Constructor Summary | |
---|---|
BBSMessage()
Constructor. |
|
BBSMessage(java.lang.String id,
java.lang.String subject,
java.lang.String author,
long postTime,
java.lang.String boardID,
int viewCount,
java.lang.String boardName,
java.lang.String startTime,
java.lang.String endTime,
java.lang.String memberId)
Constructor. |
|
BBSMessage(java.lang.String id,
java.lang.String subject,
java.lang.String author,
long postTime,
java.lang.String boardID,
java.lang.String body,
int viewCount,
java.lang.String boardName,
java.lang.String startTime,
java.lang.String endTime,
java.lang.String memberId)
Constructor. |
Method Summary | |
---|---|
int |
compare(int col,
java.lang.Object obj)
Compare the object in the specified column with the specified object |
void |
deleted()
Delete this message |
boolean |
getAdjustableAtColumn(int col)
Get adjustable of the specified column |
int |
getAlignmentAtColumn(int col)
Get the alignment of the specified column |
java.lang.String |
getAuthor()
Get the author of this message |
java.lang.String |
getBoardID()
Get the board id |
java.lang.String |
getBoardName()
Get the BoardName. |
java.lang.String |
getBody()
Get the body of this message |
java.lang.String |
getColumnNameAtColumn(int col)
Get column name of the specified column |
int |
getColumnSize()
Get the column size |
int |
getColumnWidthAtColumn(int col)
Get the column width of the specified column |
java.lang.String |
getEndTime()
|
java.lang.String |
getEndTimeStr()
Get the end time string |
long |
getGMTPostTime()
|
java.lang.String |
getGMTPostTimeStr()
|
java.lang.Object |
getHashKey()
|
java.lang.String |
getID()
Get the message id |
java.lang.String |
getMemberId()
|
java.lang.Object |
getObjectAtColumn(int col)
Get the object with the specified column |
long |
getPostTime()
Get the post time of this message |
java.lang.String |
getPostTimeStr()
Get the post time string |
java.lang.String |
getReplyMessage()
Get the reply message |
java.lang.String |
getStartTime()
|
java.lang.String |
getStartTimeStr()
Get the start time string |
java.lang.String |
getSubject()
Get the subject of this message |
java.lang.String |
getTimeString(long time)
Get time string with the specified time |
int |
getViewCount()
Get the View Count. |
boolean |
isContainBody()
Check whether this message is containing body. |
boolean |
isDeleted()
Check whether the message is deleted |
boolean |
isNew()
Check whether this message is a new message |
boolean |
isPermission()
|
boolean |
isReply()
Check whether this message is a reply message |
void |
setAuthor(java.lang.String author)
Set the author of this message |
void |
setBoardID(java.lang.String boardID)
Set the board id |
void |
setBoardName(java.lang.String boardName)
|
void |
setBody(java.lang.String body)
Set the body of this message |
void |
setEndTime(java.lang.String endTime)
|
void |
setGMTPostTime(long GMTPostTime)
|
void |
setID(java.lang.String ID)
Set the message id |
void |
setMemberId(java.lang.String memberId)
|
void |
setNew(boolean b)
Set this message is a new message or not a new message |
void |
setPermission(boolean permission)
|
void |
setPostTime(long postTime)
Set the post time of this message |
void |
setReply(java.lang.String applyMessageID)
Set the reply message |
void |
setStartTime(java.lang.String startTime)
|
void |
setSubject(java.lang.String subject)
Set the subject of this message |
void |
setViewCount(int vc)
Set the View Count. |
java.lang.String |
toString()
Convert the data of this message to a string statement. |
void |
update(java.lang.Object obj)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public BBSMessage()
BBSMessage
without
parameters. The value of variables in the instance which constructed by
this constructor are all initial values.
public BBSMessage(java.lang.String id, java.lang.String subject, java.lang.String author, long postTime, java.lang.String boardID, int viewCount, java.lang.String boardName, java.lang.String startTime, java.lang.String endTime, java.lang.String memberId)
BBSMessage
with the
specified parameters. The message body of the instance which constructed
by this constructor is null.
id
- the given message idsubject
- the subject of this messageauthor
- the author's name of this messagepostTime
- the post time of this messageboardID
- the id of the board which invloves this messagepublic BBSMessage(java.lang.String id, java.lang.String subject, java.lang.String author, long postTime, java.lang.String boardID, java.lang.String body, int viewCount, java.lang.String boardName, java.lang.String startTime, java.lang.String endTime, java.lang.String memberId)
BBSMessage
with the
specified parameters.
id
- the given message idsubject
- the subject of this messageauthor
- the author's name of this messagepostTime
- the post time of this messageboardID
- the id of the board which invloves this messagebody
- the body of this messageMethod Detail |
---|
public int compare(int col, java.lang.Object obj) throws java.util.NoSuchElementException
compare
in interface Listable
col
- the given columnobj
- the given object
java.util.NoSuchElementException
- if col < 0 or col >= column sizepublic void deleted()
public boolean getAdjustableAtColumn(int col) throws java.util.NoSuchElementException
getAdjustableAtColumn
in interface Listable
col
- the given column
java.util.NoSuchElementException
- if col < 0 or col >= column sizepublic int getAlignmentAtColumn(int col) throws java.util.NoSuchElementException
getAlignmentAtColumn
in interface Listable
col
- the given column
java.util.NoSuchElementException
- if col < 0 or col >= column sizepublic java.lang.String getAuthor()
public java.lang.String getBoardID()
public java.lang.String getBoardName()
public java.lang.String getBody()
public java.lang.String getColumnNameAtColumn(int col) throws java.util.NoSuchElementException
getColumnNameAtColumn
in interface Listable
col
- the given column
java.util.NoSuchElementException
- if col < 0 or col >= column sizepublic int getColumnSize()
getColumnSize
in interface Listable
public int getColumnWidthAtColumn(int col) throws java.util.NoSuchElementException
getColumnWidthAtColumn
in interface Listable
col
- the given column
java.util.NoSuchElementException
- if col < 0 or col >= column sizepublic java.lang.String getEndTime()
public java.lang.String getEndTimeStr()
public long getGMTPostTime()
public java.lang.String getGMTPostTimeStr()
public java.lang.Object getHashKey()
getHashKey
in interface com.flowring.entity.Entity
public java.lang.String getID()
public java.lang.String getMemberId()
public java.lang.Object getObjectAtColumn(int col) throws java.util.NoSuchElementException
getObjectAtColumn
in interface Listable
col
- the given column
java.util.NoSuchElementException
- if col < 0 or col >= column sizepublic long getPostTime()
public java.lang.String getPostTimeStr()
public java.lang.String getReplyMessage()
public java.lang.String getStartTime()
public java.lang.String getStartTimeStr()
public java.lang.String getSubject()
public java.lang.String getTimeString(long time)
time
- the given time
public int getViewCount()
public boolean isContainBody()
public boolean isDeleted()
public boolean isNew()
public boolean isPermission()
public boolean isReply()
public void setAuthor(java.lang.String author)
author
- the given author namepublic void setBoardID(java.lang.String boardID)
boardID
- the given idpublic void setBoardName(java.lang.String boardName)
public void setBody(java.lang.String body)
body
- the given stringpublic void setEndTime(java.lang.String endTime)
public void setGMTPostTime(long GMTPostTime)
public void setID(java.lang.String ID)
ID
- the given idpublic void setMemberId(java.lang.String memberId)
public void setNew(boolean b)
b
- true the message is a new message; false
the message is not a new messagepublic void setPermission(boolean permission)
public void setPostTime(long postTime)
postTime
- the given post timepublic void setReply(java.lang.String applyMessageID)
appluMessageID
- the given reply message's idpublic void setStartTime(java.lang.String startTime)
public void setSubject(java.lang.String subject)
subject
- the given subjectpublic void setViewCount(int vc)
public java.lang.String toString()
toString
in class java.lang.Object
public void update(java.lang.Object obj)
update
in interface com.flowring.entity.Entity
|
Agentflow V3.1 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |