jerklib.events.impl
Class JoinEventImpl

java.lang.Object
  extended by jerklib.events.impl.JoinEventImpl
All Implemented Interfaces:
IRCEvent, JoinEvent

public class JoinEventImpl
extends Object
implements JoinEvent

Author:
mohadib
See Also:
JoinEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
JoinEventImpl(String rawEventData, Session session, String who, String username, String hostName, String channelName, Channel chan)
           
 
Method Summary
 Channel getChannel()
          returns the Channel object joined
 String getChannelName()
          returns the name of the channel joined to cause this event
 String getHostName()
          returns the hostname of the person who joined the channel
 String getNick()
          returns the nick of who joined the channel
 String getRawEventData()
          Returns the raw IRC data that makes up this event
 Session getSession()
          Gets session for connection
 IRCEvent.Type getType()
          Used to find out the exact type of event the IRCEvent object is.
 String getUserName()
          return the username in the user's hostmask
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JoinEventImpl

public JoinEventImpl(String rawEventData,
                     Session session,
                     String who,
                     String username,
                     String hostName,
                     String channelName,
                     Channel chan)
Method Detail

getNick

public final String getNick()
Description copied from interface: JoinEvent
returns the nick of who joined the channel

Specified by:
getNick in interface JoinEvent
Returns:
Nick of who joined channel

getHostName

public String getHostName()
Description copied from interface: JoinEvent
returns the hostname of the person who joined the channel

Specified by:
getHostName in interface JoinEvent
Returns:
hostname of the person who joined

getChannelName

public final String getChannelName()
Description copied from interface: JoinEvent
returns the name of the channel joined to cause this event

Specified by:
getChannelName in interface JoinEvent
Returns:
Name of channel

getChannel

public final Channel getChannel()
Description copied from interface: JoinEvent
returns the Channel object joined

Specified by:
getChannel in interface JoinEvent
Returns:
The Channel object
See Also:
Channel

getType

public final 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

getRawEventData

public final 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 final Session getSession()
Description copied from interface: IRCEvent
Gets session for connection

Specified by:
getSession in interface IRCEvent
Returns:
Session

toString

public String toString()
Overrides:
toString in class Object

getUserName

public String getUserName()
Description copied from interface: JoinEvent
return the username in the user's hostmask

Specified by:
getUserName in interface JoinEvent
Returns:
username of the user