1 16 package org.apache.juddi.datatype; 17 18 import java.util.Vector ; 19 20 23 public class IdentifierBag implements RegistryObject 24 { 25 Vector keyedReferenceVector; 26 27 30 public IdentifierBag() 31 { 32 } 33 34 37 public IdentifierBag(int size) 38 { 39 this.keyedReferenceVector = new Vector (size); 40 } 41 42 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 55 public void setKeyedReferenceVector(Vector keyedRefVector) 56 { 57 this.keyedReferenceVector = keyedRefVector; 58 } 59 60 63 public Vector getKeyedReferenceVector() 64 { 65 return this.keyedReferenceVector; 66 } 67 68 71 public int size() 72 { 73 if (this.keyedReferenceVector != null) 74 return this.keyedReferenceVector.size(); 75 else 76 return 0; 77 } 78 } | Popular Tags |