1 16 package org.apache.juddi.datatype.request; 17 18 import org.apache.juddi.datatype.Name; 19 import org.apache.juddi.datatype.RegistryObject; 20 21 27 public class FindPublisher implements RegistryObject,Admin 28 { 29 String generic; 30 Name name; 31 FindQualifiers findQualifiers; 32 int maxRows; 33 34 37 public FindPublisher() 38 { 39 } 40 41 45 public void setGeneric(String genericValue) 46 { 47 this.generic = genericValue; 48 } 49 50 54 public String getGeneric() 55 { 56 return this.generic; 57 } 58 59 66 public void setName(String newName) 67 { 68 setName(new Name(newName)); 69 } 70 71 78 public void setName(Name newname) 79 { 80 name = newname; 81 } 82 83 89 public Name getName() 90 { 91 return name; 92 } 93 94 100 public String getNameString() 101 { 102 if (this.name != null) 103 return this.name.getValue(); 104 else 105 return null; 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 |