1 12 13 package org.ejtools.jmx.browser.mbean; 14 15 16 17 import java.beans.beancontext.BeanContextSupport ; 18 19 20 21 import javax.management.MBeanFeatureInfo ; 22 23 24 25 import org.ejtools.jmx.MBeanAccessor; 26 27 28 29 30 31 46 47 public class ResultLine extends BeanContextSupport 48 49 { 50 51 52 53 protected MBeanAccessor accessor = null; 54 55 56 57 protected MBeanFeatureInfo info = null; 58 59 60 61 protected int type = -1; 62 63 64 65 66 67 68 69 public ResultLine() { } 70 71 72 73 74 75 84 85 public MBeanAccessor getAccessor() 86 87 { 88 89 return this.accessor; 90 91 } 92 93 94 95 96 97 106 107 public MBeanFeatureInfo getInfo() 108 109 { 110 111 return this.info; 112 113 } 114 115 116 117 118 119 128 129 public String getName() 130 131 { 132 133 return this.accessor.getCanonicalName(); 134 135 } 136 137 138 139 140 141 150 151 public int getType() 152 153 { 154 155 return this.type; 156 157 } 158 159 160 161 162 163 172 173 public void setAccessor(MBeanAccessor accessor) 174 175 { 176 177 this.accessor = accessor; 178 179 } 180 181 182 183 184 185 194 195 public void setInfo(MBeanFeatureInfo info) 196 197 { 198 199 this.info = info; 200 201 } 202 203 204 205 206 207 216 217 public void setType(int type) 218 219 { 220 221 this.type = type; 222 223 } 224 225 226 227 228 229 238 239 public String toString() 240 241 { 242 243 String result = "<undefined>"; 244 245 if (this.accessor != null) 246 247 { 248 249 result = result + this.accessor.getCanonicalName(); 250 251 } 252 253 if (this.info != null) 254 255 { 256 257 result = result + info.getName(); 258 259 } 260 261 return result; 262 263 } 264 265 } 266 267 | Popular Tags |