View Javadoc

1   /*
2    * Copyright 2001-2004 The Apache Software Foundation.
3    * 
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    * 
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    * 
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  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  }