CMCommon, JournalEntry, CMObject, java.lang.Cloneable, java.lang.Comparable<CMObject>public class DefaultJournalEntry extends java.lang.Object implements JournalEntry
JournalEntry.JournalAttrib| Modifier and Type | Field | Description |
|---|---|---|
java.util.List<java.lang.String> |
attachments |
|
long |
attributes |
|
int |
cardinal |
|
java.lang.String |
data |
|
long |
date |
|
java.lang.String |
dateStr |
|
java.lang.StringBuffer |
derivedBuildMessage |
|
long |
expiration |
|
java.lang.String |
from |
|
int |
hashCode |
|
boolean |
isLastEntry |
|
java.lang.String |
key |
|
protected java.lang.String |
knownClockName |
|
java.lang.String |
msg |
|
java.lang.String |
msgIcon |
|
java.lang.String |
parent |
|
int |
replies |
|
java.lang.String |
subj |
|
java.lang.String |
to |
|
long |
update |
|
int |
views |
idConverter| Constructor | Description |
|---|---|
DefaultJournalEntry() |
| Modifier and Type | Method | Description |
|---|---|---|
java.util.List<java.lang.String> |
attachmentKeys() |
Returns any attachment vfs keys for this entry.
|
long |
attributes() |
The attribute flags for this entry
|
JournalEntry |
attributes(long attributes) |
Sets the attribute flags for this entry
|
int |
cardinal() |
The cardinal entry number for the journal entry.
|
JournalEntry |
cardinal(int cardinal) |
Sets the cardinal entry number for the journal entry.
|
int |
compareTo(JournalEntry o) |
Compares two journal entry objects to each other
|
int |
compareTo(CMObject o) |
|
JournalEntry |
copyOf() |
Similar to Cloneable.clone(), but does its best to make sure that
any internal objects to this class are also copyOfed.
|
java.lang.String |
data() |
The "image path" or, for mailboxes, the Journal Name this mail served as a source for.
|
JournalEntry |
data(java.lang.String data) |
Sets the "image path" or, for mailboxes, the Journal Name this mail served as a source for.
|
long |
date() |
The date/time, in ms, that the message was posted
|
protected JournalEntry |
date(long date) |
|
java.lang.String |
dateStr() |
The date/time, in ms, coded, or "", that the message was posted
|
JournalEntry |
dateStr(java.lang.String date) |
Sets the date/time, in ms, coded, or "", that the message was posted
|
java.lang.StringBuffer |
derivedBuildMessage() |
The friendly viewable form of this message in the command line.
|
JournalEntry |
derivedBuildMessage(java.lang.StringBuffer msg) |
The friendly viewable form of this message in the command line.
|
long |
expiration() |
The date/time, in ms, that the message will expire
|
JournalEntry |
expiration(long expiration) |
Sets the date/time, in ms, that the message will expire
|
java.lang.String |
from() |
The author of the entry
|
JournalEntry |
from(java.lang.String from) |
Sets the author of the entry
|
TimeClock |
getKnownClock() |
If the dateStr for this message was set as an in-game clock,
then this will attempt to derive the specific clock used
and then return it.
|
java.lang.String |
getXML() |
Returns an xml representation of this entry.
|
int |
hashCode() |
|
java.lang.String |
ID() |
The CoffeeMud Java Class ID shared by all instances of
this object.
|
void |
initializeClass() |
Called ONCE after all objects are loaded, but before the map is read in
during initialization.
|
boolean |
isLastEntry() |
Returns whether this is the last entry in the db.
|
java.lang.String |
key() |
The fully unique key for this entry, unique across all entries in all books and journals
|
JournalEntry |
key(java.lang.String key) |
Sets the fully unique key for this entry, unique across all entries in all books and journals
|
JournalEntry |
lastEntry(boolean lastEntry) |
Sets whether this is the last entry in the db
|
java.lang.String |
msg() |
The content of the entry.
|
JournalEntry |
msg(java.lang.String msg) |
Sets the content of the entry.
|
java.lang.String |
msgIcon() |
The image icon for forum entries
|
JournalEntry |
msgIcon(java.lang.String msgIcon) |
Sets the image icon for forum entries
|
java.lang.String |
name() |
The displayable name of this object.
|
CMObject |
newInstance() |
Returns a new instance of this class.
|
java.lang.String |
parent() |
The entry key of the entry that this entry is a reply to
|
JournalEntry |
parent(java.lang.String parent) |
Sets the entry key of the entry that this entry is a reply to
|
int |
replies() |
The number of replies to this entry.
|
JournalEntry |
replies(int replies) |
Sets he number of replies to this entry.
|
void |
setXML(java.lang.String xml) |
Sets an entry based on the given xml.
|
java.lang.String |
subj() |
The subject of the entry
|
JournalEntry |
subj(java.lang.String subj) |
Sets the subject of the entry
|
java.lang.String |
to() |
Who the entry is for, usually ALL
|
JournalEntry |
to(java.lang.String to) |
Sets who the entry is for, usually ALL
|
long |
update() |
The date/time, in ms, that the message was updated
|
JournalEntry |
update(long update) |
Sets the date/time, in ms, that the message was updated
|
int |
views() |
The number of views of this entry
|
JournalEntry |
views(int views) |
Sets the number of views of this entry
|
public java.lang.String key
public java.lang.String from
public java.lang.String to
public java.lang.String subj
public java.lang.String msg
public java.lang.String dateStr
public long date
public long update
public long expiration
public java.lang.String parent
public long attributes
public java.lang.String data
public int cardinal
public java.lang.String msgIcon
public int replies
public int views
public int hashCode
public boolean isLastEntry
public java.util.List<java.lang.String> attachments
public java.lang.StringBuffer derivedBuildMessage
protected java.lang.String knownClockName
public java.lang.String ID()
CMObjectpublic java.lang.String name()
CMObjectname in interface CMObjectEnvironmental.Name()public CMObject newInstance()
CMObjectnewInstance in interface CMObjectpublic void initializeClass()
CMObjectinitializeClass in interface CMObjectpublic int compareTo(CMObject o)
compareTo in interface java.lang.Comparable<CMObject>public java.lang.String key()
JournalEntrykey in interface JournalEntrypublic JournalEntry key(java.lang.String key)
JournalEntrykey in interface JournalEntrykey - the keypublic java.lang.String from()
JournalEntryfrom in interface JournalEntrypublic JournalEntry from(java.lang.String from)
JournalEntryfrom in interface JournalEntryfrom - author of the entrypublic java.lang.String to()
JournalEntryto in interface JournalEntrypublic JournalEntry to(java.lang.String to)
JournalEntryto in interface JournalEntryto - who the entry is for, usually ALLpublic java.lang.String subj()
JournalEntrysubj in interface JournalEntrypublic JournalEntry subj(java.lang.String subj)
JournalEntrysubj in interface JournalEntrysubj - the subject of the entrypublic java.lang.String msg()
JournalEntrymsg in interface JournalEntrypublic JournalEntry msg(java.lang.String msg)
JournalEntrymsg in interface JournalEntrymsg - the content of the entry.public long date()
JournalEntrydate in interface JournalEntryprotected JournalEntry date(long date)
public java.lang.String dateStr()
JournalEntrydateStr in interface JournalEntrypublic JournalEntry dateStr(java.lang.String date)
JournalEntrydateStr in interface JournalEntrydate - the date/time, in ms, coded, or "", that the message was postedpublic TimeClock getKnownClock()
JournalEntrygetKnownClock in interface JournalEntrypublic long update()
JournalEntryupdate in interface JournalEntrypublic JournalEntry update(long update)
JournalEntryupdate in interface JournalEntryupdate - the date/time, in ms, that the message was updatedpublic long expiration()
JournalEntryexpiration in interface JournalEntrypublic JournalEntry expiration(long expiration)
JournalEntryexpiration in interface JournalEntryexpiration - the date/time, in ms, that the message will expirepublic java.lang.String parent()
JournalEntryparent in interface JournalEntrypublic JournalEntry parent(java.lang.String parent)
JournalEntryparent in interface JournalEntryparent - the entry key of the entry that this entry is a reply topublic long attributes()
JournalEntryattributes in interface JournalEntrypublic JournalEntry attributes(long attributes)
JournalEntryattributes in interface JournalEntryattributes - the attribute flags for this entrypublic java.lang.String data()
JournalEntrydata in interface JournalEntrypublic JournalEntry data(java.lang.String data)
JournalEntrydata in interface JournalEntrydata - the "image path" or, for mailboxes, the Journal Name this mail served as a source for.public int cardinal()
JournalEntrycardinal in interface JournalEntrypublic JournalEntry cardinal(int cardinal)
JournalEntrycardinal in interface JournalEntrycardinal - the cardinal entry number for the journal entry.public java.lang.String msgIcon()
JournalEntrymsgIcon in interface JournalEntrypublic JournalEntry msgIcon(java.lang.String msgIcon)
JournalEntrymsgIcon in interface JournalEntrymsgIcon - the image icon for forum entriespublic int replies()
JournalEntryreplies in interface JournalEntrypublic JournalEntry replies(int replies)
JournalEntryreplies in interface JournalEntryreplies - the number of replies to this entry.public int views()
JournalEntryviews in interface JournalEntrypublic JournalEntry views(int views)
JournalEntryviews in interface JournalEntryviews - the number of views of this entrypublic java.util.List<java.lang.String> attachmentKeys()
JournalEntryattachmentKeys in interface JournalEntrypublic boolean isLastEntry()
JournalEntryisLastEntry in interface JournalEntrypublic JournalEntry lastEntry(boolean lastEntry)
JournalEntrylastEntry in interface JournalEntrylastEntry - whether this is the last entry in the dbpublic java.lang.StringBuffer derivedBuildMessage()
JournalEntryderivedBuildMessage in interface JournalEntrypublic JournalEntry derivedBuildMessage(java.lang.StringBuffer msg)
JournalEntryderivedBuildMessage in interface JournalEntrymsg - the friendly messagepublic int compareTo(JournalEntry o)
JournalEntrycompareTo in interface JournalEntryo - another journal entry objpublic java.lang.String getXML()
JournalEntrygetXML in interface JournalEntrypublic int hashCode()
hashCode in class java.lang.Objectpublic void setXML(java.lang.String xml)
JournalEntrysetXML in interface JournalEntryxml - the xml to use.public JournalEntry copyOf()
CMObjectcopyOf in interface CMObjectcopyOf in interface JournalEntry