KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > apache > juddi > datatype > response > ServiceDetail


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 JavaDoc;
19
20 import org.apache.juddi.datatype.RegistryObject;
21 import org.apache.juddi.datatype.service.BusinessService;
22
23 /**
24  * "This structure contains full details for zero or more businessService
25  * structures. It is returned in response to a get_serviceDetail message,
26  * and optionally in response to the save_binding and save_service messages."
27  * "Note that the businessKey value is supplied in this message because the
28  * container does not provide a link to the parent businessEntity structure"
29  * XML Structure Reference. (The businessKey in the businessService must
30  * be populated).
31  *
32  * @author Steve Viens (sviens@apache.org)
33  */

34 public class ServiceDetail implements RegistryObject
35 {
36   String JavaDoc generic;
37   String JavaDoc operator;
38   boolean truncated;
39   Vector JavaDoc serviceVector;
40
41   /**
42    * default constructor
43    */

44   public ServiceDetail()
45   {
46   }
47
48   /**
49    *
50    * @param genericValue
51    */

52   public void setGeneric(String JavaDoc genericValue)
53   {
54     this.generic = genericValue;
55   }
56
57   /**
58    *
59    * @return String UDDI generic value.
60    */

61   public String JavaDoc getGeneric()
62   {
63     return this.generic;
64   }
65
66   /**
67    *
68    */

69   public void setOperator(String JavaDoc operator)
70   {
71     this.operator = operator;
72   }
73
74   /**
75    *
76    */

77   public String JavaDoc getOperator()
78   {
79      return this.operator;
80   }
81
82   /**
83    *
84    */

85   public boolean isTruncated()
86   {
87     return this.truncated;
88   }
89
90   /**
91    *
92    */

93   public void setTruncated(boolean val)
94   {
95     this.truncated = val;
96   }
97
98   /**
99    *
100    */

101   public void addBusinessService(BusinessService service)
102   {
103     if (this.serviceVector == null)
104       this.serviceVector = new Vector JavaDoc();
105     this.serviceVector.add(service);
106   }
107
108   /**
109    *
110    */

111   public void setBusinessServiceVector(Vector JavaDoc services)
112   {
113     this.serviceVector = services;
114   }
115
116   /**
117    *
118    */

119   public Vector JavaDoc getBusinessServiceVector()
120   {
121     return this.serviceVector;
122   }
123 }
Popular Tags