jerklib.events.impl
Class PartEventImpl

java.lang.Object
  extended by jerklib.events.impl.PartEventImpl
All Implemented Interfaces:
IRCEvent, PartEvent

public class PartEventImpl
extends Object
implements PartEvent

Author:
mohadib
See Also:
PartEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
PartEventImpl(String rawEventData, Session session, String who, String user, String host, String channelName, Channel channel, String partMessage)
           
 
Method Summary
 Channel getChannel()
          returns IRCChannel object for channel parted
 String getChannelName()
          returns the name of the channel parted
 String getHostName()
          get the hostname of the parted
 String getPartMessage()
          returns part message if there is one
 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()
          get the username of the nick who parted the channel.
 String getWho()
          returns the nick of who parted
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

PartEventImpl

public PartEventImpl(String rawEventData,
                     Session session,
                     String who,
                     String user,
                     String host,
                     String channelName,
                     Channel channel,
                     String partMessage)
Method Detail

getWho

public final String getWho()
Description copied from interface: PartEvent
returns the nick of who parted

Specified by:
getWho in interface PartEvent
Returns:
nick of parted

getHostName

public String getHostName()
Description copied from interface: PartEvent
get the hostname of the parted

Specified by:
getHostName in interface PartEvent
Returns:
the hostname of the parted

getUserName

public String getUserName()
Description copied from interface: PartEvent
get the username of the nick who parted the channel.

Specified by:
getUserName in interface PartEvent
Returns:
the username of the parted,

getChannelName

public final String getChannelName()
Description copied from interface: PartEvent
returns the name of the channel parted

Specified by:
getChannelName in interface PartEvent
Returns:
name of channel parted

getChannel

public final Channel getChannel()
Description copied from interface: PartEvent
returns IRCChannel object for channel parted

Specified by:
getChannel in interface PartEvent
Returns:
Channel object parted
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

getPartMessage

public final String getPartMessage()
Description copied from interface: PartEvent
returns part message if there is one

Specified by:
getPartMessage in interface PartEvent
Returns:
part message

toString

public String toString()
Overrides:
toString in class Object