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 Anou Manavalan
22 * @author Steve Viens (sviens@apache.org)
23 */
24 public class SharedRelationships implements RegistryObject
25 {
26 Vector keyedReferenceVector;
27 String direction;
28
29 /***
30 *
31 */
32 public SharedRelationships()
33 {
34 }
35
36 /***
37 *
38 */
39 public SharedRelationships(Vector refs)
40 {
41 this.keyedReferenceVector = refs;
42 }
43
44 /***
45 * @return Returns the direction.
46 */
47 public String getDirection()
48 {
49 return direction;
50 }
51
52 /***
53 * @param direction The direction to set.
54 */
55 public void setDirection(String direction)
56 {
57 this.direction = direction;
58 }
59
60 /***
61 *
62 */
63 public void addKeyedReference(KeyedReference ref)
64 {
65 if (this.keyedReferenceVector == null)
66 this.keyedReferenceVector = new Vector();
67 this.keyedReferenceVector.add(ref);
68 }
69
70 /***
71 *
72 */
73 public Vector getKeyedReferenceVector()
74 {
75 return this.keyedReferenceVector;
76 }
77
78 /***
79 *
80 */
81 public void setKeyedReferenceVector(Vector refs)
82 {
83 this.keyedReferenceVector = refs;
84 }
85
86 /***
87 *
88 */
89 public int size()
90 {
91 if (this.keyedReferenceVector != null)
92 return this.keyedReferenceVector.size();
93 else
94 return 0;
95 }
96 }