01: /*
02: * Copyright 2000-2001,2004 The Apache Software Foundation.
03: *
04: * Licensed under the Apache License, Version 2.0 (the "License");
05: * you may not use this file except in compliance with the License.
06: * You may obtain a copy of the License at
07: *
08: * http://www.apache.org/licenses/LICENSE-2.0
09: *
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: /*
18:
19: */
20:
21: package org.apache.wsrp4j.producer.provider.driver;
22:
23: import org.apache.wsrp4j.producer.provider.ConsumerConfiguredPortlet;
24:
25: /**
26: * This class implements the ConsumerConfiguredPortlet interface. It also
27: * extends the PortletImpl class.
28: *
29: * @author <a href="mailto:stefan.behl@de.ibm.com">Stefan Behl</a>
30: *
31: * @see ConsumerConfiguredPortlet, PortletImpl
32: */
33: public class ConsumerConfiguredPortletImpl extends PortletImpl
34: implements ConsumerConfiguredPortlet {
35:
36: /**
37: * Portlet handle of the parent ProducerOfferedPortlet object
38: */
39: private String parentHandle = "";
40:
41: /**
42: * Sets the portlet handle of the parent ProducerOfferedPortlet.
43: *
44: * @param handle String representing the portlet handle of the corresponding
45: * parent ProducerOfferedPortlet.
46: **/
47: public void setParentHandle(String handle) {
48: parentHandle = handle;
49: }
50:
51: /**
52: * Returns the portlet handle of the corresponding parent ProducerOfferedPortlet.
53: *
54: * @return String representing the portlet handle of the corresponding parent
55: * ProducerOfferedPortlet.
56: **/
57: public String getParentHandle() {
58: return parentHandle;
59: }
60:
61: /**
62: * Redefines the clone-method of the Cloneable-interface. This is necessary
63: * as the clone-method is declared protected in the Object class.
64: *
65: * @return Object representing the cloned object.
66: */
67: public Object clone() {
68: ConsumerConfiguredPortlet clone = new ConsumerConfiguredPortletImpl();
69: clone.setParentHandle(parentHandle);
70: return clone;
71: }
72:
73: }
|