1 22 package org.jboss.metadata; 23 24 26 30 public class NameValuePair 31 { 32 private String name; 33 private String value; 34 35 public NameValuePair() 36 { 37 } 38 39 public NameValuePair(String name, String value) 40 { 41 this.name = name; 42 this.value = value; 43 } 44 45 public String getName() 46 { 47 return name; 48 } 49 50 public void setName(String name) 51 { 52 this.name = name; 53 } 54 55 public String getValue() 56 { 57 return value; 58 } 59 60 public void setValue(String value) 61 { 62 this.value = value; 63 } 64 65 public String toString() 66 { 67 StringBuffer sb = new StringBuffer (100); 68 sb.append('['); 69 sb.append("name=").append(name); 70 sb.append(", value=").append(value); 71 sb.append(']'); 72 return sb.toString(); 73 } 74 } 75 | Popular Tags |