1 16 package org.apache.juddi.datatype; 17 18 25 public class KeyedReference implements RegistryObject 26 { 27 String tModelKey; 28 String keyName; 29 String keyValue; 30 31 34 public KeyedReference() 35 { 36 } 37 38 44 public KeyedReference(String name,String value) 45 { 46 this.keyName = name; 47 this.keyValue = value; 48 } 49 50 58 public KeyedReference(String tModelKey,String name,String value) 59 { 60 this.tModelKey = tModelKey; 61 this.keyName = name; 62 this.keyValue = value; 63 } 64 65 73 public KeyedReference(TModelKey tModelKey,String name,String value) 74 { 75 this.setTModelKey(tModelKey); 76 this.keyName = name; 77 this.keyValue = value; 78 } 79 80 85 public void setKeyName(String name) 86 { 87 this.keyName = name; 88 } 89 90 95 public String getKeyName() 96 { 97 return this.keyName; 98 } 99 100 105 public void setKeyValue(String value) 106 { 107 this.keyValue = value; 108 } 109 110 115 public String getKeyValue() 116 { 117 return this.keyValue; 118 } 119 120 127 public void setTModelKey(TModelKey key) 128 { 129 if ((key != null) && (key.getValue() != null)) 130 setTModelKey(key.getValue()); 131 } 132 133 140 public void setTModelKey(String key) 141 { 142 this.tModelKey = key; 143 } 144 145 151 public String getTModelKey() 152 { 153 return this.tModelKey; 154 } 155 } | Popular Tags |