jerklib.events.impl
Class ModeEventImpl

java.lang.Object
  extended by jerklib.events.impl.ModeEventImpl
All Implemented Interfaces:
IRCEvent, ModeEvent

public class ModeEventImpl
extends Object
implements ModeEvent

Author:
mohadib
See Also:
ModeEvent

Nested Class Summary
 
Nested classes/interfaces inherited from interface jerklib.events.modes.ModeEvent
ModeEvent.ModeType
 
Nested classes/interfaces inherited from interface jerklib.events.IRCEvent
IRCEvent.Type
 
Constructor Summary
ModeEventImpl(ModeEvent.ModeType type, String rawEventData, Session session, List<ModeAdjustment> modeAdjustments, String setBy, Channel channel)
           
 
Method Summary
 Channel getChannel()
          If mode event adjusted a Channel mode then the Channel effected will be returned
 List<ModeAdjustment> getModeAdjustments()
          Gets the list of mode adjustments generated
 ModeEvent.ModeType getModeType()
          Indicates if this is a user mode or channel mode event
 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 setBy()
          Gets who set the mode
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeEventImpl

public ModeEventImpl(ModeEvent.ModeType type,
                     String rawEventData,
                     Session session,
                     List<ModeAdjustment> modeAdjustments,
                     String setBy,
                     Channel channel)
Method Detail

getChannel

public Channel getChannel()
Description copied from interface: ModeEvent
If mode event adjusted a Channel mode then the Channel effected will be returned

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

getModeAdjustments

public List<ModeAdjustment> getModeAdjustments()
Description copied from interface: ModeEvent
Gets the list of mode adjustments generated

Specified by:
getModeAdjustments in interface ModeEvent
Returns:
List of mode adjustments

setBy

public String setBy()
Description copied from interface: ModeEvent
Gets who set the mode

Specified by:
setBy in interface ModeEvent
Returns:
who set the mode

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

getModeType

public ModeEvent.ModeType getModeType()
Description copied from interface: ModeEvent
Indicates if this is a user mode or channel mode event

Specified by:
getModeType in interface ModeEvent
Returns:
the ModeType

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