jerklib.events.impl
Class TopicEventImpl

java.lang.Object
  extended by jerklib.events.impl.TopicEventImpl
All Implemented Interfaces:
IRCEvent, TopicEvent

public class TopicEventImpl
extends Object
implements TopicEvent

Author:
mohadib
See Also:
TopicEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
TopicEventImpl(String rawEventData, Session session, Channel channel, String topic)
           
 
Method Summary
 void appendToTopic(String topic)
           
 boolean equals(Object o)
           
 Channel getChannel()
          Gets Channel
 String getHostName()
           
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 String getSetBy()
          Gets who set the topic
 Date getSetWhen()
          Gets when topic was set
 String getTopic()
          Gets the topic
 IRCEvent.Type getType()
          Used to find out the exact type of event the IRCEvent object is.
 int hashCode()
           
 void setSetBy(String setBy)
           
 void setSetWhen(String setWhen)
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TopicEventImpl

public TopicEventImpl(String rawEventData,
                      Session session,
                      Channel channel,
                      String topic)
Method Detail

getTopic

public String getTopic()
Description copied from interface: TopicEvent
Gets the topic

Specified by:
getTopic in interface TopicEvent
Returns:
the topic

getHostName

public String getHostName()
Returns:
hostname

getRawEventData

public String getRawEventData()
Description copied from interface: IRCEvent
Returns the raw IRC data that makes up this event

Specified by:
getRawEventData in interface IRCEvent
Returns:
Raw IRC event text.

getSession

public Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session

getType

public IRCEvent.Type getType()
Description copied from interface: IRCEvent
Used to find out the exact type of event the IRCEvent object is. The IRCEvent object can be cast into a more specific event object to get access to convience methods for the specific event types.

Specified by:
getType in interface IRCEvent
Returns:
Type of event

setSetWhen

public void setSetWhen(String setWhen)
Parameters:
setWhen -

setSetBy

public void setSetBy(String setBy)
Parameters:
setBy -

getSetBy

public String getSetBy()
Description copied from interface: TopicEvent
Gets who set the topic

Specified by:
getSetBy in interface TopicEvent
Returns:
topic setter

getSetWhen

public Date getSetWhen()
Description copied from interface: TopicEvent
Gets when topic was set

Specified by:
getSetWhen in interface TopicEvent
Returns:
when

getChannel

public Channel getChannel()
Description copied from interface: TopicEvent
Gets Channel

Specified by:
getChannel in interface TopicEvent
Returns:
Channel
See Also:
Channel

appendToTopic

public void appendToTopic(String topic)
Parameters:
topic -

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object o)
Overrides:
equals in class Object