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;
17  
18  import java.util.Vector;
19  
20  /***
21   * @author Steve Viens (sviens@apache.org)
22   */
23  public class DiscoveryURLs implements RegistryObject
24  {
25    Vector discoveryURLVector;
26  
27    /***
28     *
29     */
30    public DiscoveryURLs()
31    {
32    }
33  
34    /***
35     *
36     */
37    public DiscoveryURLs(int size)
38    {
39      this.discoveryURLVector = new Vector(size);
40    }
41  
42    /***
43     *
44     */
45    public void addDiscoveryURL(DiscoveryURL url)
46    {
47      if (this.discoveryURLVector == null)
48        this.discoveryURLVector = new Vector();
49      this.discoveryURLVector.add(url);
50    }
51  
52    /***
53     *
54     */
55    public void setDiscoveryURLVector(Vector urls)
56    {
57      this.discoveryURLVector = urls;
58    }
59  
60    /***
61     *
62     */
63    public Vector getDiscoveryURLVector()
64    {
65      return this.discoveryURLVector;
66    }
67  
68    /***
69     *
70     */
71    public int size()
72    {
73      if (this.discoveryURLVector != null)
74        return this.discoveryURLVector.size();
75      else
76        return 0;
77    }
78  }