com.ondelette.servlet.webforum
Class MessageReference

java.lang.Object
  |
  +--com.ondelette.servlet.webforum.MessageReference
All Implemented Interfaces:
FixedNumericalConstants, java.io.Serializable

public final class MessageReference
extends java.lang.Object
implements java.io.Serializable, FixedNumericalConstants

An index referring to a message

See Also:
Serialized Form

Field Summary
 
Fields inherited from interface com.ondelette.servlet.webforum.FixedNumericalConstants
DEFAULT_NUMBER_OF_RECENT_MESSAGES, MAX_MESSAGE_SIZE_IN_BYTES, MAX_NUMBER_OF_MESSAGES_PER_FORUM, MAX_TEXTFIELD_SIZE, NUMBER_OF_CHARS_TO_COMPARE
 
Constructor Summary
MessageReference(int id)
          Constructor for the MessageReference object
MessageReference(java.lang.String s)
          Constructor for the MessageReference object
MessageReference(java.lang.StringBuffer s)
          Constructor for the MessageReference object
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int getID()
          Gets the iD attribute of the MessageReference object
 Message getMessage(MessageFolder mf)
          Gets the message attribute of the MessageReference object
 int hashCode()
           
 java.lang.String toString()
           
 void write(java.io.OutputStreamWriter out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageReference

public MessageReference(int id)
Constructor for the MessageReference object

Parameters:
id -
Since:
0.30

MessageReference

public MessageReference(java.lang.String s)
Constructor for the MessageReference object

Parameters:
s -
Since:
0.30

MessageReference

public MessageReference(java.lang.StringBuffer s)
Constructor for the MessageReference object

Parameters:
s -
Since:
0.30
Method Detail

getID

public int getID()
Gets the iD attribute of the MessageReference object

Returns:
The iD value
Since:
0.30

getMessage

public Message getMessage(MessageFolder mf)
                   throws java.io.IOException
Gets the message attribute of the MessageReference object

Parameters:
mf -
Returns:
The message value
Throws:
java.io.IOException
Since:
0.30

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Since:
0.30

write

public void write(java.io.OutputStreamWriter out)
Parameters:
out -
Since:
0.30

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object
Parameters:
o -
Returns:
Since:
0.30

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object
Returns:
Since:
0.30