1 /*****************************************************/
\r
2 /* This java file is a part of the */
\r
4 /* - Plouf's Java IRC Client - */
\r
6 /* Copyright (C) 2002 - 2005 Philippe Detournay */
\r
8 /* All contacts : theplouf@yahoo.com */
\r
10 /* PJIRC is free software; you can redistribute */
\r
11 /* it and/or modify it under the terms of the GNU */
\r
12 /* General Public License as published by the */
\r
13 /* Free Software Foundation; version 2 or later of */
\r
16 /* PJIRC is distributed in the hope that it will */
\r
17 /* be useful, but WITHOUT ANY WARRANTY; without */
\r
18 /* even the implied warranty of MERCHANTABILITY or */
\r
19 /* FITNESS FOR A PARTICULAR PURPOSE. See the GNU */
\r
20 /* General Public License for more details. */
\r
22 /* You should have received a copy of the GNU */
\r
23 /* General Public License along with PJIRC; if */
\r
24 /* not, write to the Free Software Foundation, */
\r
25 /* Inc., 59 Temple Place, Suite 330, Boston, */
\r
26 /* MA 02111-1307 USA */
\r
28 /*****************************************************/
\r
35 public class IRCObject {
\r
37 * The global IRC configuration.
\r
39 protected IRCConfiguration _ircConfiguration;
\r
42 * Create a new IRCObject.
\r
44 * @param ircConfiguration
\r
45 * the global irc configuration.
\r
47 public IRCObject(IRCConfiguration ircConfiguration) {
\r
48 _ircConfiguration = ircConfiguration;
\r
52 * get the irc configuration.
\r
54 * @return the global irc configuration.
\r
56 public IRCConfiguration getIRCConfiguration() {
\r
57 return _ircConfiguration;
\r
61 * Release this object. No further method call can be performed on this
\r
64 public void release() {
\r
65 // empty default implementation
\r
69 * Get formatted text associated with the given text code, with no parameter.
\r
73 * @return formatted text.
\r
75 public String getText(int code) {
\r
76 return _ircConfiguration.getText(code);
\r
80 * Get formatted text associated with the given text code, with one parameter.
\r
86 * @return formatted text.
\r
88 public String getText(int code, String p1) {
\r
89 return _ircConfiguration.getText(code, p1);
\r
93 * Get formatted text associated with the given text code, with two
\r
101 * second parameter.
\r
102 * @return formatted text.
\r
104 public String getText(int code, String p1, String p2) {
\r
105 return _ircConfiguration.getText(code, p1, p2);
\r
109 * Get formatted text associated with the given text code, with three
\r
117 * second parameter.
\r
120 * @return formatted text.
\r
122 public String getText(int code, String p1, String p2, String p3) {
\r
123 return _ircConfiguration.getText(code, p1, p2, p3);
\r