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