f00f.net.irc.martyr.modes.channel
Class GenericChannelMode

java.lang.Object
  extended by f00f.net.irc.martyr.modes.GenericMode
      extended by f00f.net.irc.martyr.modes.channel.GenericChannelMode
All Implemented Interfaces:
Mode
Direct Known Subclasses:
AnonChannelMode, GenericChannelMask, InviteOnlyMode, LimitMode, ModeratedMode, NoExtMsgMode, OperMode, PrivateMode, SecretMode, TopicLockMode, VoiceMode

public abstract class GenericChannelMode
extends GenericMode

A generic channel mode will be recorded in the channel, and there will be one per channel. Modes that can have multiple copies in the channel (masks) should subclass GenericChannelMask.


Nested Class Summary
 
Nested classes/interfaces inherited from interface f00f.net.irc.martyr.Mode
Mode.Sign
 
Constructor Summary
GenericChannelMode()
           
 
Method Summary
 boolean onePerChannel()
          Determines if there can be multiple versions of this mode in the channel.
 boolean recordInChannel()
          This mode should be recorded in the list of channel modes.
 
Methods inherited from class f00f.net.irc.martyr.modes.GenericMode
equals, getParam, getSign, hashCode, setParam, setSign, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface f00f.net.irc.martyr.Mode
getChar, newInstance, requiresParam
 

Constructor Detail

GenericChannelMode

public GenericChannelMode()
Method Detail

recordInChannel

public boolean recordInChannel()
Description copied from interface: Mode
This mode should be recorded in the list of channel modes. This would NOT include such things as operator status, as it is recored with the Member object.

Returns:
True or false of the mode should be recorded in the list of channels

onePerChannel

public boolean onePerChannel()
Description copied from interface: Mode
Determines if there can be multiple versions of this mode in the channel.

Returns:
True or false if only one instance of mode can exist per channel


Copyright © 2000-2007 Ben Damm, Daniel Henninger, et al.