KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > infoglue > cms > entities > structure > impl > simple > ServiceBindingImpl


1 /* ===============================================================================
2  *
3  * Part of the InfoGlue Content Management Platform (www.infoglue.org)
4  *
5  * ===============================================================================
6  *
7  * Copyright (C)
8  *
9  * This program is free software; you can redistribute it and/or modify it under
10  * the terms of the GNU General Public License version 2, as published by the
11  * Free Software Foundation. See the file LICENSE.html for more information.
12  *
13  * This program is distributed in the hope that it will be useful, but WITHOUT
14  * ANY WARRANTY, including the implied warranty of MERCHANTABILITY or FITNESS
15  * FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
16  *
17  * You should have received a copy of the GNU General Public License along with
18  * this program; if not, write to the Free Software Foundation, Inc. / 59 Temple
19  * Place, Suite 330 / Boston, MA 02111-1307 / USA.
20  *
21  * ===============================================================================
22  */

23
24 package org.infoglue.cms.entities.structure.impl.simple;
25
26 import org.infoglue.cms.entities.kernel.BaseEntityVO;
27 import org.infoglue.cms.entities.structure.ServiceBinding;
28 import org.infoglue.cms.entities.structure.ServiceBindingVO;
29
30 public class ServiceBindingImpl implements ServiceBinding
31 {
32     private ServiceBindingVO valueObject = new ServiceBindingVO();
33     
34     /**
35      * @see org.infoglue.cms.entities.kernel.BaseEntity#getVO()
36      */

37     public BaseEntityVO getVO()
38     {
39         return (BaseEntityVO) getValueObject();
40     }
41
42     /**
43      * @see org.infoglue.cms.entities.kernel.BaseEntity#setVO(BaseEntityVO)
44      */

45     public void setVO(BaseEntityVO valueObject)
46     {
47         setValueObject((ServiceBindingVO) valueObject);
48     }
49  
50     /**
51      * @see org.infoglue.cms.entities.kernel.BaseEntity#getId()
52      */

53     public Integer JavaDoc getId()
54     {
55         return getServiceBindingId();
56     }
57      
58     public Object JavaDoc getIdAsObject()
59     {
60         return getId();
61     }
62     
63     public ServiceBindingVO getValueObject()
64     {
65         return this.valueObject;
66     }
67
68     public void setValueObject(ServiceBindingVO valueObject)
69     {
70         this.valueObject = valueObject;
71     }
72
73     private java.util.Collection JavaDoc bindingQualifyers;
74     private org.infoglue.cms.entities.management.impl.simple.ServiceDefinitionImpl serviceDefinition;
75     private org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl siteNodeVersion;
76     private org.infoglue.cms.entities.management.impl.simple.AvailableServiceBindingImpl availableServiceBinding;
77      
78    
79     public java.lang.Integer JavaDoc getServiceBindingId()
80     {
81         return this.valueObject.getServiceBindingId();
82     }
83             
84     public void setServiceBindingId(java.lang.Integer JavaDoc serviceBindingId)
85     {
86         this.valueObject.setServiceBindingId(serviceBindingId);
87     }
88       
89     public java.lang.String JavaDoc getName()
90     {
91         return this.valueObject.getName();
92     }
93             
94     public void setName(java.lang.String JavaDoc name)
95     {
96         this.valueObject.setName(name);
97     }
98       
99     public java.lang.String JavaDoc getPath()
100     {
101         return this.valueObject.getPath();
102     }
103             
104     public void setPath(java.lang.String JavaDoc path)
105     {
106         this.valueObject.setPath(path);
107     }
108     
109     public java.lang.Integer JavaDoc getBindingTypeId()
110     {
111         return this.valueObject.getBindingTypeId();
112     }
113             
114     public void setBindingTypeId(java.lang.Integer JavaDoc bindingTypeId)
115     {
116         this.valueObject.setBindingTypeId(bindingTypeId);
117     }
118       
119     public java.util.Collection JavaDoc getBindingQualifyers()
120     {
121         return this.bindingQualifyers;
122     }
123             
124     public void setBindingQualifyers (java.util.Collection JavaDoc bindingQualifyers)
125     {
126         this.bindingQualifyers = bindingQualifyers;
127     }
128
129     public Integer JavaDoc getAvailableServiceBindingId()
130     {
131         return this.valueObject.getAvailableServiceBindingId();
132     }
133     
134     public void setAvailableServiceBindingId(Integer JavaDoc availableServiceBindingId)
135     {
136         this.valueObject.setAvailableServiceBindingId(availableServiceBindingId);
137     }
138
139     public org.infoglue.cms.entities.management.impl.simple.ServiceDefinitionImpl getServiceDefinition()
140     {
141         return this.serviceDefinition;
142     }
143             
144     public void setServiceDefinition (org.infoglue.cms.entities.management.impl.simple.ServiceDefinitionImpl serviceDefinition)
145     {
146         this.serviceDefinition = serviceDefinition;
147     }
148
149     public org.infoglue.cms.entities.management.impl.simple.AvailableServiceBindingImpl getAvailableServiceBinding()
150     {
151         return this.availableServiceBinding;
152     }
153     
154     public void setAvailableServiceBinding(org.infoglue.cms.entities.management.impl.simple.AvailableServiceBindingImpl availableServiceBinding)
155     {
156         this.availableServiceBinding = availableServiceBinding;
157         this.valueObject.setAvailableServiceBindingId(availableServiceBinding.getAvailableServiceBindingId());
158     }
159
160     public org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl getSiteNodeVersion()
161     {
162         return this.siteNodeVersion;
163     }
164     
165     public void setSiteNodeVersion(org.infoglue.cms.entities.structure.impl.simple.SiteNodeVersionImpl siteNodeVersion)
166     {
167         this.siteNodeVersion = siteNodeVersion;
168     }
169 }
170
Popular Tags