1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.juddi.datatype.business;
17
18 import org.apache.juddi.datatype.RegistryObject;
19
20 /***
21 * Implementation specific extension to BusinessEntity. Spec is not
22 * clear on this, not sure whether to subclass or contain - from the
23 * XML Reference Spec p27 it seems more natural to contain..
24 *
25 * @author Steve Viens (sviens@apache.org)
26 */
27 public class BusinessEntityExt implements RegistryObject
28 {
29 BusinessEntity businessEntity;
30
31 /***
32 * Creates a new empty BusinessEntityExt instance with no
33 * reference to a/the BusinessEnity that's being extended.
34 */
35 public BusinessEntityExt()
36 {
37 }
38
39 /***
40 * Creates a new BusinessEntityExt instance and sets the instance of the
41 * BusinessEntity that's being extended.
42 *
43 * @param business The instance of the BusinessEntity that's being extended
44 */
45 public BusinessEntityExt(BusinessEntity business)
46 {
47 this.businessEntity = business;
48 }
49
50 /***
51 * Returns the instance of the BusinessEntity that's being extended.
52 *
53 * @return the instance of the BusinessEntity that's being extended
54 */
55 public BusinessEntity getBusinessEntity()
56 {
57 return this.businessEntity;
58 }
59
60 /***
61 * Sets the instance of the BusinessEntity that's being extended.
62 *
63 * @param newValue The instance of the BusinessEntity that's being extended
64 */
65 public void setBusinessEntity(BusinessEntity newValue)
66 {
67 this.businessEntity = newValue;
68 }
69 }