View Javadoc

1   /*
2    * Copyright (c) 2004 UNINETT FAS
3    *
4    * This program is free software; you can redistribute it and/or modify it
5    * under the terms of the GNU General Public License as published by the Free
6    * Software Foundation; either version 2 of the License, or (at your option)
7    * any later version.
8    *
9    * This program is distributed in the hope that it will be useful, but WITHOUT
10   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11   * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
12   * more details.
13   *
14   * You should have received a copy of the GNU General Public License along with
15   * this program; if not, write to the Free Software Foundation, Inc., 59 Temple
16   * Place - Suite 330, Boston, MA 02111-1307, USA.
17   *
18   * $Id: Attribute.java,v 1.1 2005/11/14 21:04:38 catoolsen Exp $
19   */
20  
21  package no.feide.moria.webservices.v2_3;
22  
23  import java.io.Serializable;
24  
25  /***
26   * @author Bjørn Ola Smievoll <b.o.smievoll@conduct.no>
27   * @version $Revision: 1.1 $
28   */
29  public final class Attribute implements Serializable {
30  
31      /*** The name of this Attribute. */
32      private String name = null;
33  
34      /*** The values of this Attribute. */
35      private String[] values = null;
36  
37      /***
38       * Gets the name of this attribute.
39       *
40       * @return Returns the name.
41       */
42      public String getName() {
43          return name;
44      }
45  
46      /***
47       * Sets the name of the attribute.
48       *
49       * @param name The name to set.
50       */
51      public void setName(final String name) {
52          this.name = name;
53      }
54  
55      /***
56       * Gets a String array containing the values of the attribute.
57       *
58       * @return The value array.
59       */
60      public String[] getValues() {
61          return values;
62      }
63  
64      /***
65       * Sets the values for the attribute.
66       *
67       * @param values The values to set.
68       */
69      public void setValues(final String[] values) {
70          this.values = values;
71      }
72  }