|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.zerjio.JIRC.IRCMessage
com.zerjio.JIRC.MODEMessage
This class represents a MODE message that is send over an IRC Connection.
It is recommended to take a look to the RFC 1459 to know what this message means, its exact format and how to handle it.
Constructor Summary | |
MODEMessage(java.lang.String prefix,
java.lang.String params)
Constructs a MODE message with a prefix and its parameters. |
Method Summary | |
boolean |
affectsChannel()
Returns if the mode msg affects a channel. |
boolean |
affectsUserInChannel()
Returns if the mode msg affects to a user in a channel. |
boolean |
getB()
Returns the new value for B. |
java.lang.String |
getBanMask()
Gets the banMask that is affected by the MODE msg. |
boolean |
getChangeB()
Returns if the B mode has chaged. |
boolean |
getChangeI()
Returns if the I mode has chaged. |
boolean |
getChangeK()
Returns if the K mode has chaged. |
boolean |
getChangeL()
Returns if the L mode has chaged. |
boolean |
getChangeM()
Returns if the M mode has chaged. |
boolean |
getChangeN()
Returns if the N mode has chaged. |
boolean |
getChangeO()
Returns if the O mode has chaged. |
boolean |
getChangeP()
Returns if the P mode has chaged. |
boolean |
getChangeS()
Returns if the S mode has chaged. |
boolean |
getChangeT()
Returns if the T mode has chaged. |
boolean |
getChangeV()
Returns if the V mode has chaged. |
boolean |
getI()
Returns the new value for I. |
boolean |
getK()
Returns the new value for K. |
java.lang.String |
getKey()
Gets key of the channel. |
boolean |
getL()
Returns the new value for L. |
int |
getLimit()
Gets the number of users limit. |
boolean |
getM()
Returns the new value for M. |
java.lang.String |
getModesString()
Returns a String that represent the modes that have been changed. |
boolean |
getN()
Returns the new value for N. |
boolean |
getO()
Returns the new value for O. |
boolean |
getP()
Returns the new value for P. |
java.lang.String |
getReceiverName()
Gets the receiver Name that is affected by the MODE msg. |
boolean |
getS()
Returns the new value for S. |
boolean |
getT()
Returns the new value for T. |
java.lang.String |
getUser()
Gets the user that is affected by the MODE msg. |
boolean |
getV()
Returns the new value for V. |
java.lang.String |
whoChangesModes()
Returns who changes the modes. |
Methods inherited from class com.zerjio.JIRC.IRCMessage |
asString, asStringWithoutPrefix, getCommand, getHost, getMustBeDiscarded, getNick, getParams, getPrefix, getUsedCount, isUsed, markAsUsed, mustBeDiscarded |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public MODEMessage(java.lang.String prefix, java.lang.String params)
command
will be MODE
.
prefix
- The MODE message prefix.params
- The MODE message parameters.Method Detail |
public java.lang.String getModesString()
String
that represent the modes that have been changed.
String
with the modes chaged.public int getLimit()
-1
if not specified.public java.lang.String getKey()
""
if not specified.public java.lang.String getUser()
getUser
in class IRCMessage
""
if not specified.public java.lang.String getBanMask()
""
if not specified.public java.lang.String getReceiverName()
public boolean affectsChannel()
true
if the msg affects to a channel (+|-ntilpskm)
false
otherwisepublic boolean affectsUserInChannel()
true
if the msg affects to a user in a channel (+|-ovb)public boolean getChangeN()
true
if the N mode has changed.
false
otherwise.public boolean getN()
getChangeN()
returns true
.
getChangeN()
public boolean getChangeT()
true
if the T mode has changed.
false
otherwise.public boolean getT()
getChangeT()
returns true
.
getChangeT()
public boolean getChangeI()
true
if the I mode has changed.
false
otherwise.public boolean getI()
getChangeI()
returns true
.
getChangeI()
public boolean getChangeL()
true
if the L mode has changed.
false
otherwise.public boolean getL()
getChangeL()
returns true
.
getChangeL()
public boolean getChangeP()
true
if the P mode has changed.
false
otherwise.public boolean getP()
getChangeP()
returns true
.
getChangeT()
public boolean getChangeS()
true
if the S mode has changed.
false
otherwise.public boolean getS()
getChangeS()
returns true
.
getChangeS()
public boolean getChangeK()
true
if the K mode has changed.
false
otherwise.public boolean getK()
getChangeK()
returns true
.
getChangeK()
public boolean getChangeM()
true
if the M mode has changed.
false
otherwise.public boolean getM()
getChangeM()
returns true
.
getChangeM()
public boolean getChangeO()
true
if the O mode has changed.
false
otherwise.public boolean getO()
getChangeO()
returns true
.
getChangeO()
public boolean getChangeV()
true
if the V mode has changed.
false
otherwise.public boolean getV()
getChangeV()
returns true
.
getChangeV()
public boolean getChangeB()
true
if the B mode has changed.
false
otherwise.public boolean getB()
getChangeB()
returns true
.
getChangeB()
public java.lang.String whoChangesModes()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |