1 16 package org.apache.juddi.datatype; 17 18 import java.util.Vector ; 19 20 24 public class SharedRelationships implements RegistryObject 25 { 26 Vector keyedReferenceVector; 27 String direction; 28 29 32 public SharedRelationships() 33 { 34 } 35 36 39 public SharedRelationships(Vector refs) 40 { 41 this.keyedReferenceVector = refs; 42 } 43 44 47 public String getDirection() 48 { 49 return direction; 50 } 51 52 55 public void setDirection(String direction) 56 { 57 this.direction = direction; 58 } 59 60 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 73 public Vector getKeyedReferenceVector() 74 { 75 return this.keyedReferenceVector; 76 } 77 78 81 public void setKeyedReferenceVector(Vector refs) 82 { 83 this.keyedReferenceVector = refs; 84 } 85 86 89 public int size() 90 { 91 if (this.keyedReferenceVector != null) 92 return this.keyedReferenceVector.size(); 93 else 94 return 0; 95 } 96 } | Popular Tags |