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.ObjectName ; 22 23 24 25 26 27 42 43 public class ViewLine extends BeanContextSupport 44 45 { 46 47 48 49 protected String name = "<undefined>"; 50 51 52 53 protected ObjectName objectName = null; 54 55 56 57 protected int type = -1; 58 59 60 61 62 63 64 65 public ViewLine() { } 66 67 68 69 70 71 80 81 public String getName() 82 83 { 84 85 return this.name; 86 87 } 88 89 90 91 92 93 102 103 public ObjectName getObjectName() 104 105 { 106 107 return this.objectName; 108 109 } 110 111 112 113 114 115 124 125 public int getType() 126 127 { 128 129 return this.type; 130 131 } 132 133 134 135 136 137 146 147 public void setName(String name) 148 149 { 150 151 this.name = name; 152 153 } 154 155 156 157 158 159 168 169 public void setObjectName(ObjectName objectName) 170 171 { 172 173 this.objectName = objectName; 174 175 } 176 177 178 179 180 181 190 191 public void setType(int type) 192 193 { 194 195 this.type = type; 196 197 } 198 199 200 201 202 203 212 213 public String toString() 214 215 { 216 217 return (this.objectName != null) ? (this.objectName.getCanonicalName()) : ("<undefined>"); 218 219 } 220 221 } 222 223 | Popular Tags |