1 16 package org.apache.juddi.datatype; 17 18 import java.util.Vector ; 19 20 31 public class Address implements RegistryObject 32 { 33 String useType; 34 String sortCode; 35 String tModelKey; 36 Vector addressLineVector; 37 38 42 public Address() 43 { 44 } 45 46 55 public Address(String type,String sort) 56 { 57 this.useType = type; 58 this.sortCode = sort; 59 } 60 61 68 public void setUseType(String type) 69 { 70 this.useType = type; 71 } 72 73 79 public String getUseType() 80 { 81 return this.useType; 82 } 83 84 91 public void setSortCode(String sort) 92 { 93 this.sortCode = sort; 94 } 95 96 102 public String getSortCode() 103 { 104 return this.sortCode; 105 } 106 107 112 public void setTModelKey(String key) 113 { 114 this.tModelKey = key; 115 } 116 117 122 public String getTModelKey() 123 { 124 return this.tModelKey; 125 } 126 127 133 public void addAddressLine(AddressLine line) 134 { 135 if (this.addressLineVector == null) 136 this.addressLineVector = new Vector (); 137 this.addressLineVector.add(line); 138 } 139 140 147 public void setAddressLineVector(Vector lines) 148 { 149 if (this.addressLineVector == null) 150 this.addressLineVector = new Vector (); 151 this.addressLineVector = lines; 152 } 153 154 160 public Vector getAddressLineVector() 161 { 162 return this.addressLineVector; 163 } 164 } | Popular Tags |