1
2
3
4
5
6
7
8
9
10
11
12
13
14
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 IdentifierBag implements RegistryObject
24 {
25 Vector keyedReferenceVector;
26
27 /***
28 *
29 */
30 public IdentifierBag()
31 {
32 }
33
34 /***
35 *
36 */
37 public IdentifierBag(int size)
38 {
39 this.keyedReferenceVector = new Vector(size);
40 }
41
42 /***
43 *
44 */
45 public void addKeyedReference(KeyedReference keyedRef)
46 {
47 if (this.keyedReferenceVector == null)
48 this.keyedReferenceVector = new Vector();
49 this.keyedReferenceVector.add(keyedRef);
50 }
51
52 /***
53 *
54 */
55 public void setKeyedReferenceVector(Vector keyedRefVector)
56 {
57 this.keyedReferenceVector = keyedRefVector;
58 }
59
60 /***
61 *
62 */
63 public Vector getKeyedReferenceVector()
64 {
65 return this.keyedReferenceVector;
66 }
67
68 /***
69 *
70 */
71 public int size()
72 {
73 if (this.keyedReferenceVector != null)
74 return this.keyedReferenceVector.size();
75 else
76 return 0;
77 }
78 }