KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > hero > util > NodeProperties


1 /*
2 *
3 * NodeProperties.java -
4 * Copyright (C) 2003 Ecoo Team
5 * valdes@loria.fr
6 *
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public License
10 * as published by the Free Software Foundation; either version 2
11 * of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 * GNU Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public License
19 * along with this program; if not, write to the Free Software
20 * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
21 */

22
23
24 package hero.util;
25
26 import java.io.Serializable JavaDoc;
27 import java.util.*;
28
29 public final class NodeProperties implements Serializable JavaDoc, java.lang.Cloneable JavaDoc {
30
31     // --------------------------------------------------- Instance Variables
32

33     private Collection properties;
34
35     private String JavaDoc projectName;
36
37     // ----------------------------------------------------------- Properties
38

39
40     /**
41      * Get the projectName
42      *@return String
43      */

44     public String JavaDoc getProjectName() {
45         return (projectName);
46     }
47
48     /**
49      * Set the project name.
50      * @param projectName
51      */

52     public void setProjectName(String JavaDoc projectName) {
53         this.projectName = projectName;
54     }
55
56     /**
57      * Get the properties
58      *@return Collection
59      */

60     public Collection getProperty() {
61         return (properties);
62     }
63
64     /**
65      * Set the properties.
66      * @param properties
67      */

68     public void setProperty(Collection properties) {
69         this.properties = properties;
70     }
71
72     public NodeProperties(){}
73
74     public Object JavaDoc clone() throws java.lang.CloneNotSupportedException JavaDoc{
75     return super.clone();
76     }
77
78 }
79
Popular Tags