1 16 package org.apache.juddi.datatype.response; 17 18 import java.util.Properties ; 19 20 import org.apache.juddi.datatype.RegistryObject; 21 22 25 public class RegistryInfo implements RegistryObject 26 { 27 String generic; 28 String operator; 29 Properties properties; 30 31 34 public RegistryInfo() 35 { 36 properties = new Properties (); 37 } 38 39 43 public void setGeneric(String genericValue) 44 { 45 this.generic = genericValue; 46 } 47 48 52 public String getGeneric() 53 { 54 return this.generic; 55 } 56 57 60 public void setOperator(String operator) 61 { 62 this.operator = operator; 63 } 64 65 68 public String getOperator() 69 { 70 return this.operator; 71 } 72 73 77 public void addProperty(String name,String value) 78 { 79 properties.put(name,value); 80 } 81 82 88 public String getProperty(String name) 89 { 90 return (String )properties.get(name); 91 } 92 93 98 public void addProperty(Property prop) 99 { 100 if (prop == null) 101 return; 102 103 properties.put(prop.getName(),prop.getValue()); 104 } 105 106 109 public Properties getProperties() 110 { 111 return properties; 112 } 113 } | Popular Tags |