1 16 package org.apache.juddi.datatype.business; 17 18 import java.util.Vector ; 19 20 import org.apache.juddi.datatype.RegistryObject; 21 22 25 public class Contacts implements RegistryObject 26 { 27 Vector contactVector = null; 28 29 32 public Contacts() 33 { 34 this.contactVector = new Vector (); 35 } 36 37 40 public Contacts(int size) 41 { 42 this.contactVector = new Vector (size); 43 } 44 45 48 public void addContact(Contact contact) 49 { 50 if (contact == null) 52 return; 53 54 if (this.contactVector == null) 55 this.contactVector = new Vector (); 56 this.contactVector.add(contact); 57 } 58 59 62 public void setContactVector(Vector contacts) 63 { 64 this.contactVector = contacts; 65 } 66 67 70 public Vector getContactVector() 71 { 72 return this.contactVector; 73 } 74 } | Popular Tags |