KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > jetspeed > om > profile > psml > PsmlParameter


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

16
17 package org.apache.jetspeed.om.profile.psml;
18
19 // Jetspeed imports
20
import org.apache.jetspeed.om.SecurityReference;
21 import org.apache.jetspeed.om.profile.Parameter;
22
23 /**
24  * Bean like implementation of the Parameter interface suitable for
25  * Castor serialization.
26  *
27  * @see org.apache.jetspeed.om.registry.PsmlParameter
28  * @author <a HREF="mailto:taylor@apache.org">David Sean Taylor</a>
29  * @version $Id: PsmlParameter.java,v 1.6 2004/02/23 03:02:54 jford Exp $
30  */

31 public class PsmlParameter implements Parameter, java.io.Serializable JavaDoc
32 {
33
34     private String JavaDoc name;
35     private String JavaDoc value;
36
37     /** Holds value of property securityRef. */
38     private SecurityReference securityRef;
39     
40     public PsmlParameter()
41     {}
42     
43     /** @return the name of the parameter */
44     public String JavaDoc getName()
45     {
46         return this.name;
47     }
48                                 
49     /** Sets the parameter name
50      * @param name the parmeter name
51      */

52     public void setName( String JavaDoc name )
53     {
54         this.name = name;
55     }
56
57     /** @return the value of the parameter */
58     public String JavaDoc getValue()
59     {
60         return this.value;
61     }
62                                 
63     /**
64      * @param value the parameter value
65      */

66     public void setValue( String JavaDoc value )
67     {
68         this.value = value;
69     }
70
71     /** Getter for property securityRef.
72      * @return Value of property securityRef.
73      */

74     public SecurityReference getSecurityRef()
75     {
76         return securityRef;
77     }
78     
79     /** Setter for property securityRef.
80      * @param securityRef New value of property securityRef.
81      */

82     public void setSecurityRef(SecurityReference securityRef)
83     {
84         this.securityRef = securityRef;
85     }
86     
87     /**
88      * Create a clone of this object
89      */

90     public Object JavaDoc clone()
91         throws java.lang.CloneNotSupportedException JavaDoc
92     {
93         Object JavaDoc cloned = super.clone();
94         
95         // clone the security ref
96
((PsmlParameter)cloned).securityRef = ((this.securityRef == null) ? null : (SecurityReference) this.securityRef.clone());
97         
98         return cloned;
99
100     } // clone
101

102 }
Popular Tags