Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: com/wilko/jaim/Buddy.java


1   /* 
2    *   (C) 2002 Paul Wilkinson  wilko@users.sourceforge.net
3    *
4    *   This program is free software; you can redistribute it and/or modify
5    *   it under the terms of the GNU General Public License as published by
6    *   the Free Software Foundation; either version 2 of the License, or
7    *   (at your option) any later version.
8    *
9    *   This program is distributed in the hope that it will be useful,
10   *   but WITHOUT ANY WARRANTY; without even the implied warranty of
11   *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12   *   GNU General Public License for more details.
13   *
14   *   You should have received a copy of the GNU General Public License
15   *   along with this program; if not, write to the Free Software
16   *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17   *
18   */
19  
20  /*
21   * Buddy.java
22   *
23   * Created on 4 May 2002, 12:05
24   */
25  
26  package com.wilko.jaim;
27  
28  /** This is a buddy object that holds the buddy's name and other
29   * information about a buddy.
30   * @author Brett Humphreys
31   */
32   public class Buddy {
33     /** Name of the buddy */
34     private String buddyName;
35     
36     /** Permit value */
37     private boolean permit;
38     
39     /** deny value */
40     private boolean deny;
41     
42     /** Constructor that sets the buddy name 
43      * @param name the name of this buddy.
44      */
45     public Buddy ( String name )
46     {
47       buddyName = name;
48     }
49     
50     /** Gets the buddy name 
51      * @return buddy name
52      */
53      public String getName()
54      {
55        return buddyName;
56      }
57     /** Sets the permit value
58      * @param permitVal what to set permit to
59      */
60     public void setPermit( boolean permitVal )
61     {
62       permit = permitVal;
63     }
64     
65     /** Gets the permit value
66      * @return permit value
67      */
68     public boolean getPermit( )
69     {
70       return permit;
71     }
72     
73     /** Sets the deny value
74      * @param denyVal what to set deny to
75      */
76     public void setDeny( boolean denyVal )
77     {
78       deny = denyVal;
79     }
80     
81     /** Gets the deny value
82      * @return deny value
83      */
84     public boolean getDeny( )
85     {
86       return deny;
87     }
88   }