KickJava   Java API By Example, From Geeks To Geeks.

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


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.publisher.Publisher;
22
23 /**
24  * "This structure contains full details for zero or more publisher
25  * structures. It is returned in response to a get_publisherDetail message,
26  * and optionally in response to the save_publisher message."
27  *
28  * @author Steve Viens (sviens@apache.org)
29  */

30 public class PublisherDetail implements RegistryObject
31 {
32   String JavaDoc generic;
33   String JavaDoc operator;
34   boolean truncated;
35   Vector JavaDoc publisherVector;
36
37   /**
38    * default constructor
39    */

40   public PublisherDetail()
41   {
42   }
43
44   /**
45    *
46    * @param genericValue
47    */

48   public void setGeneric(String JavaDoc genericValue)
49   {
50     this.generic = genericValue;
51   }
52
53   /**
54    *
55    * @return String generic value.
56    */

57   public String JavaDoc getGeneric()
58   {
59     return this.generic;
60   }
61
62   /**
63    *
64    */

65   public void setOperator(String JavaDoc operator)
66   {
67     this.operator = operator;
68   }
69
70   /**
71    *
72    */

73   public String JavaDoc getOperator()
74   {
75      return this.operator;
76   }
77
78   /**
79    *
80    */

81   public boolean isTruncated()
82   {
83     return this.truncated;
84   }
85
86   /**
87    *
88    */

89   public void setTruncated(boolean val)
90   {
91     this.truncated = val;
92   }
93
94   /**
95    *
96    */

97   public void addPublisher(Publisher publisher)
98   {
99     // if publisher is null then simply return (nothing to add)
100
if (publisher == null)
101       return;
102
103     if (this.publisherVector == null)
104       this.publisherVector = new Vector JavaDoc();
105     this.publisherVector.add(publisher);
106   }
107
108   /**
109    *
110    */

111   public void setPublisherVector(Vector JavaDoc publishers)
112   {
113     this.publisherVector = publishers;
114   }
115
116   /**
117    *
118    */

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