KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > nemesis > forum > util > tree > TreeLeaf


1 /*
2  * NEMESIS-FORUM.
3  * Copyright (C) 2002 David Laurent(lithium2@free.fr). All rights reserved.
4  *
5  * Copyright (c) 2000 The Apache Software Foundation. All rights reserved.
6  *
7  * Copyright (C) 2001 Yasna.com. All rights reserved.
8  *
9  * Copyright (C) 2000 CoolServlets.com. All rights reserved.
10  *
11  * NEMESIS-FORUM. is free software; you can redistribute it and/or
12  * modify it under the terms of the Apache Software License, Version 1.1,
13  * or (at your option) any later version.
14  *
15  * NEMESIS-FORUM core framework, NEMESIS-FORUM backoffice, NEMESIS-FORUM frontoffice
16  * application are parts of NEMESIS-FORUM and are distributed under
17  * same terms of licence.
18  *
19  *
20  * NEMESIS-FORUM includes software developed by the Apache Software Foundation (http://www.apache.org/)
21  * and software developed by CoolServlets.com (http://www.coolservlets.com).
22  * and software developed by Yasna.com (http://www.yasna.com).
23  *
24  */

25
26 package org.nemesis.forum.util.tree;
27
28 import java.io.Serializable JavaDoc;
29
30 public class TreeLeaf extends TreeObject implements Serializable JavaDoc {
31
32     private int id;
33     private String JavaDoc name;
34     private String JavaDoc link;
35
36     public TreeLeaf( String JavaDoc name, String JavaDoc link ) {
37         super(1);
38         //this.id = id;// ???
39
this.name = name;
40         this.link = link;
41     }
42
43     public int getId() {
44         return this.id;
45     }
46     public void setId( int id ) {
47         this.id = id;
48     }
49
50     public String JavaDoc getName() {
51         return name;
52     }
53     public String JavaDoc getLink() {
54         return link;
55     }
56 }
57
Popular Tags