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.response;
17  
18  import java.util.Vector;
19  
20  import org.apache.juddi.datatype.RegistryObject;
21  import org.apache.juddi.datatype.business.BusinessEntityExt;
22  
23  /***
24   * "This structure allows UDDI compatible registries to define and share
25   *  extended information about a businessEntity.  Operator Sites support
26   *  this message but return no additional data.  This structure contains
27   *  zero or more businessEntityExt structures.  It is returned in response
28   *  to a get_businessDetailExt message.
29   *
30   * @author Steve Viens (sviens@apache.org)
31   */
32  public class BusinessDetailExt implements RegistryObject
33  {
34    String generic;
35    String operator;
36    boolean truncated;
37    Vector extVector;
38  
39    /***
40     *
41     */
42    public BusinessDetailExt()
43    {
44    }
45  
46    /***
47     *
48     * @param genericValue
49     */
50    public void setGeneric(String genericValue)
51    {
52      this.generic = genericValue;
53    }
54  
55    /***
56     *
57     * @return String UDDI generic value.
58     */
59    public String getGeneric()
60    {
61      return this.generic;
62    }
63  
64    /***
65     *
66     */
67    public void setOperator(String operator)
68    {
69      this.operator = operator;
70    }
71  
72    /***
73     *
74     */
75    public String getOperator()
76    {
77       return this.operator;
78    }
79  
80    /***
81     *
82     */
83    public boolean isTruncated()
84    {
85      return truncated;
86    }
87  
88    /***
89     *
90     */
91    public void setTruncated(boolean val)
92    {
93      truncated = val;
94    }
95  
96    /***
97     *
98     */
99    public void addBusinessEntityExt(BusinessEntityExt businessExt)
100   {
101     if (this.extVector == null)
102       this.extVector = new Vector();
103     this.extVector.add(businessExt);
104   }
105 
106   /***
107    *
108    */
109   public Vector getBusinessEntityExtVector()
110   {
111     return this.extVector;
112   }
113 
114   /***
115    *
116    */
117   public void setBusinessEntityExtVector(Vector businessExts)
118   {
119     this.extVector = businessExts;
120   }
121 }