This project has retired. For details please refer to its Attic page.
SpecificationLinkImpl xref
View Javadoc
1   /**
2    *
3    * Copyright 2004 The Apache Software Foundation
4    *
5    *  Licensed under the Apache License, Version 2.0 (the "License");
6    *  you may not use this file except in compliance with the License.
7    *  You may obtain a copy of the License at
8    *
9    *     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   */
17  package org.apache.ws.scout.registry.infomodel;
18  
19  import java.util.Collection;
20  
21  import javax.xml.registry.JAXRException;
22  import javax.xml.registry.LifeCycleManager;
23  import javax.xml.registry.infomodel.InternationalString;
24  import javax.xml.registry.infomodel.RegistryObject;
25  import javax.xml.registry.infomodel.ServiceBinding;
26  import javax.xml.registry.infomodel.SpecificationLink;
27  
28  /**
29   * Implements JAXR API
30   *
31   * @author <mailto:anil@apache.org>Anil Saldhana
32   * @since Nov 20, 2004
33   */
34  public class SpecificationLinkImpl extends RegistryObjectImpl
35          implements SpecificationLink
36  {
37      private Collection usageParams;
38      private InternationalString descr;
39      private RegistryObject specObj;
40      private ServiceBinding binding;
41  
42      public SpecificationLinkImpl(LifeCycleManager lifeCycleManager)
43      {
44          super(lifeCycleManager);
45      }
46  
47      public ServiceBinding getServiceBinding() throws JAXRException
48      {
49          return binding;
50      }
51  
52      public RegistryObject getSpecificationObject() throws JAXRException
53      {
54          return specObj;
55      }
56  
57      public InternationalString getUsageDescription() throws JAXRException
58      {
59          return descr;
60      }
61  
62      public Collection getUsageParameters() throws JAXRException
63      {
64          return usageParams;
65      }
66  
67      public void setSpecificationObject(RegistryObject registryObject) throws JAXRException
68      {
69          specObj = registryObject;
70      }
71  
72      public void setUsageDescription(InternationalString is) throws JAXRException
73      {
74          descr = is;
75      }
76  
77      public void setUsageParameters(Collection collection) throws JAXRException
78      {
79          usageParams = collection;
80      }
81  
82      //Specific API
83      public void setServiceBinding(ServiceBinding s)
84      {
85          binding = s;
86      }
87  }