1 22 package org.jboss.test.xml.mbeanserver; 23 24 import javax.xml.namespace.NamespaceContext ; 25 26 30 public class MBeanAttribute 31 { 32 33 private String name; 34 35 private String text; 36 37 private Object value; 38 39 private boolean replace; 40 41 public String getName() 42 { 43 return name; 44 } 45 46 public void setName(String name) 47 { 48 this.name = name; 50 } 51 52 public boolean getReplace() 53 { 54 return replace; 55 } 56 public void setReplace(boolean replace) 57 { 58 this.replace = replace; 59 } 60 61 public String getText() 62 { 63 return text; 64 } 65 public void setText(String text) 66 { 67 this.text = text; 69 } 70 71 public Object getValue() 72 { 73 return value; 74 } 75 public void setValue(Object value) 76 { 77 this.value = value; 79 } 80 81 public static Object unmarshalStringValue(String text, NamespaceContext ctx) 82 { 83 return text == null ? null : text; 85 } 86 } 87 | Popular Tags |