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 at7 * 8 * http://www.apache.org/licenses/LICENSE-2.09 * 10 * Unless required by applicable law or agreed to in writing, software11 * 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 and14 * limitations under the License.15 */1617packageorg.apache.jetspeed.om.profile.psml;
1819// Jetspeed imports20import org.apache.jetspeed.om.SecurityReference;
21import org.apache.jetspeed.om.profile.Parameter;
2223/***24 * Bean like implementation of the Parameter interface suitable for 25 * Castor serialization.26 * 27 * @see org.apache.jetspeed.om.registry.PsmlParameter28 * @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 */31publicclassPsmlParameter implements Parameter, java.io.Serializable
32 {
3334private String name;
35private String value;
3637/*** Holds value of property securityRef. */38privateSecurityReference securityRef;
3940publicPsmlParameter()
41 {}
4243/*** @return the name of the parameter */44public String getName()
45 {
46returnthis.name;
47 }
4849/*** Sets the parameter name50 * @param name the parmeter name51 */52publicvoid setName( String name )
53 {
54this.name = name;
55 }
5657/*** @return the value of the parameter */58public String getValue()
59 {
60returnthis.value;
61 }
6263/*** 64 * @param value the parameter value65 */66publicvoid setValue( String value )
67 {
68this.value = value;
69 }
7071/*** Getter for property securityRef.72 * @return Value of property securityRef.73 */74publicSecurityReference getSecurityRef()
75 {
76return securityRef;
77 }
7879/*** Setter for property securityRef.80 * @param securityRef New value of property securityRef.81 */82publicvoid setSecurityRef(SecurityReference securityRef)
83 {
84this.securityRef = securityRef;
85 }
8687/***88 * Create a clone of this object89 */90public Object clone()
91 throws java.lang.CloneNotSupportedException
92 {
93 Object cloned = super.clone();
9495// clone the security ref96 ((PsmlParameter)cloned).securityRef = ((this.securityRef == null) ? null : (SecurityReference) this.securityRef.clone());
9798return cloned;
99100 } // clone101102 }