1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17 package org.apache.jetspeed.om.profile.psml;
18
19
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
32 {
33
34 private String name;
35 private String 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 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 name )
53 {
54 this.name = name;
55 }
56
57 /*** @return the value of the parameter */
58 public String getValue()
59 {
60 return this.value;
61 }
62
63 /***
64 * @param value the parameter value
65 */
66 public void setValue( String 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 clone()
91 throws java.lang.CloneNotSupportedException
92 {
93 Object cloned = super.clone();
94
95
96 ((PsmlParameter)cloned).securityRef = ((this.securityRef == null) ? null : (SecurityReference) this.securityRef.clone());
97
98 return cloned;
99
100 }
101
102 }