1 16 package org.apache.juddi.datatype.request; 17 18 import org.apache.juddi.datatype.BusinessKey; 19 import org.apache.juddi.datatype.KeyedReference; 20 import org.apache.juddi.datatype.RegistryObject; 21 22 25 public class FindRelatedBusinesses implements RegistryObject,Inquiry 26 { 27 String businessKey; 28 String generic; 29 KeyedReference keyedReference; 30 FindQualifiers findQualifiers; 31 int maxRows; 32 33 36 public FindRelatedBusinesses() 37 { 38 } 39 40 46 public void setBusinessKey(String key) 47 { 48 this.businessKey = key; 49 } 50 51 57 public void setBusinessKey(BusinessKey key) 58 { 59 if (key != null) 60 this.businessKey = key.getValue(); 61 } 62 63 69 public String getBusinessKey() 70 { 71 return this.businessKey; 72 } 73 74 78 public void setGeneric(String genericValue) 79 { 80 this.generic = genericValue; 81 } 82 83 87 public String getGeneric() 88 { 89 return this.generic; 90 } 91 92 95 public KeyedReference getKeyedReference() 96 { 97 return this.keyedReference; 98 } 99 100 103 public void setKeyedReference(KeyedReference keyedRef) 104 { 105 this.keyedReference = keyedRef; 106 } 107 108 111 public int getMaxRows() 112 { 113 return maxRows; 114 } 115 116 119 public void setMaxRows(int maxRows) 120 { 121 this.maxRows = maxRows; 122 } 123 124 127 public void setMaxRows(String maxRows) 128 { 129 setMaxRows(Integer.parseInt(maxRows)); 130 } 131 132 135 public void addFindQualifier(FindQualifier findQualifier) 136 { 137 if (this.findQualifiers == null) 138 this.findQualifiers = new FindQualifiers(); 139 this.findQualifiers.addFindQualifier(findQualifier); 140 } 141 142 145 public void setFindQualifiers(FindQualifiers findQualifiers) 146 { 147 this.findQualifiers = findQualifiers; 148 } 149 150 153 public FindQualifiers getFindQualifiers() 154 { 155 return findQualifiers; 156 } 157 } | Popular Tags |