wtanaka.praya.obj
Class SelfMessage

java.lang.Object
  |
  +--wtanaka.praya.obj.Obj
        |
        +--wtanaka.praya.obj.Message
              |
              +--wtanaka.praya.obj.SelfMessage
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
BnetWhisperToMessage, EncryptedSelfPuff, LocationSelfPuff, MsnSelfMessage, SelfPuff, YahooSelfMessage

public abstract class SelfMessage
extends Message

Abstract class which overrides the default Message class isSelfMessage to return true instead of false.

Return to Sourceforge or the Praya Homepage

Version:
$Name: $ $Date: 2001/11/04 06:47:14 $
Author:
$Author: wtanaka $
See Also:
Message.isSelfMessage(), Serialized Form

Fields inherited from class wtanaka.praya.obj.Message
generatedBy, score
 
Fields inherited from class wtanaka.praya.obj.Obj
CONTENTS, date, DATE, FROM, privThread, REVCONTENTS, REVDATE, REVFROM, REVSCORE, REVSUBJECT, SCORE, secretObject, SUBJECT
 
Constructor Summary
SelfMessage(Protocol generatedBy)
           
 
Method Summary
 boolean isSelfMessage()
          Is this message is an outgoing message generated by the person viewing it? The return value from this method acts acts as a tag on certain kinds of messages.
 
Methods inherited from class wtanaka.praya.obj.Message
changeScore, convertStringToHtml, getScore, getSourceProtocol, isStateChangeMessage, lessThan, renderAsHTML, renderAsHTML, renderAsString, replyRecipient, setZombie, toString
 
Methods inherited from class wtanaka.praya.obj.Obj
getContents, getFrom, getSubject, getTimeStamp, isPrivileged, setPrivilegedThread, setSecretObject, setTimeStamp
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, wait, wait, wait
 

Constructor Detail

SelfMessage

public SelfMessage(Protocol generatedBy)
Method Detail

isSelfMessage

public boolean isSelfMessage()
Description copied from class: Message
Is this message is an outgoing message generated by the person viewing it? The return value from this method acts acts as a tag on certain kinds of messages. If a message returns true from this method, that means that it was sent by the client that contains this reference. Likewise, if a protocol pushes a message itself, one that wasn't received from another source, that message must return true from this method. This makes it easy for bots to not talk to themselves.
Overrides:
isSelfMessage in class Message
Following copied from class: wtanaka.praya.obj.Message
Returns:
true if this is a self generated message, false otherwise