01: /**
02: *
03: * Copyright 2004 The Apache Software Foundation
04: *
05: * Licensed under the Apache License, Version 2.0 (the "License");
06: * you may not use this file except in compliance with the License.
07: * You may obtain a copy of the License at
08: *
09: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */package org.apache.ws.scout.registry.infomodel;
17:
18: import java.util.Collection;
19:
20: import javax.xml.registry.JAXRException;
21: import javax.xml.registry.LifeCycleManager;
22: import javax.xml.registry.infomodel.InternationalString;
23: import javax.xml.registry.infomodel.RegistryObject;
24: import javax.xml.registry.infomodel.ServiceBinding;
25: import javax.xml.registry.infomodel.SpecificationLink;
26:
27: /**
28: * Implements JAXR API
29: *
30: * @author <mailto:anil@apache.org>Anil Saldhana
31: * @since Nov 20, 2004
32: */
33: public class SpecificationLinkImpl extends RegistryObjectImpl implements
34: SpecificationLink {
35: private Collection usageParams;
36: private InternationalString descr;
37: private RegistryObject specObj;
38: private ServiceBinding binding;
39:
40: public SpecificationLinkImpl(LifeCycleManager lifeCycleManager) {
41: super (lifeCycleManager);
42: }
43:
44: public ServiceBinding getServiceBinding() throws JAXRException {
45: return binding;
46: }
47:
48: public RegistryObject getSpecificationObject() throws JAXRException {
49: return specObj;
50: }
51:
52: public InternationalString getUsageDescription()
53: throws JAXRException {
54: return descr;
55: }
56:
57: public Collection getUsageParameters() throws JAXRException {
58: return usageParams;
59: }
60:
61: public void setSpecificationObject(RegistryObject registryObject)
62: throws JAXRException {
63: specObj = registryObject;
64: }
65:
66: public void setUsageDescription(InternationalString is)
67: throws JAXRException {
68: descr = is;
69: }
70:
71: public void setUsageParameters(Collection collection)
72: throws JAXRException {
73: usageParams = collection;
74: }
75:
76: //Specific API
77: public void setServiceBinding(ServiceBinding s) {
78: binding = s;
79: }
80: }
|