KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > directory > ldapstudio > browser > core > model > BookmarkParameter


1 /*
2  * Licensed to the Apache Software Foundation (ASF) under one
3  * or more contributor license agreements. See the NOTICE file
4  * distributed with this work for additional information
5  * regarding copyright ownership. The ASF licenses this file
6  * to you under the Apache License, Version 2.0 (the
7  * "License"); you may not use this file except in compliance
8  * with the License. You may obtain a copy of the License at
9  *
10  * http://www.apache.org/licenses/LICENSE-2.0
11  *
12  * Unless required by applicable law or agreed to in writing,
13  * software distributed under the License is distributed on an
14  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
15  * KIND, either express or implied. See the License for the
16  * specific language governing permissions and limitations
17  * under the License.
18  *
19  */

20
21 package org.apache.directory.ldapstudio.browser.core.model;
22
23
24 import java.io.Serializable JavaDoc;
25
26
27 /**
28  * A Bean class to hold the bookmark parameters.
29  * It is used to make bookmarks persistent.
30  *
31  * @author <a HREF="mailto:dev@directory.apache.org">Apache Directory Project</a>
32  * @version $Rev$, $Date$
33  */

34 public class BookmarkParameter implements Serializable JavaDoc
35 {
36
37     /** The serialVersionUID. */
38     private static final long serialVersionUID = 105108281861642267L;
39
40     /** The target DN. */
41     private DN dn;
42
43     /** The symbolic name. */
44     private String JavaDoc name;
45
46
47     /**
48      * Creates a new instance of BookmarkParameter.
49      */

50     public BookmarkParameter()
51     {
52     }
53
54
55     /**
56      * Creates a new instance of BookmarkParameter.
57      *
58      * @param dn the target DN
59      * @param name the symbolic name
60      */

61     public BookmarkParameter( DN dn, String JavaDoc name )
62     {
63         this.dn = dn;
64         this.name = name;
65     }
66
67
68     /**
69      * Gets the target DN.
70      *
71      * @return the target DN
72      */

73     public DN getDn()
74     {
75         return dn;
76     }
77
78
79     /**
80      * Sets the target DN.
81      *
82      * @param dn the target DN
83      */

84     public void setDn( DN dn )
85     {
86         this.dn = dn;
87     }
88
89
90     /**
91      * Gets the symbolic name.
92      *
93      * @return the symbolic name
94      */

95     public String JavaDoc getName()
96     {
97         return name;
98     }
99
100
101     /**
102      * Sets the symbolic name.
103      *
104      * @param name the symbolic name
105      */

106     public void setName( String JavaDoc name )
107     {
108         this.name = name;
109     }
110
111 }
112
Popular Tags