1 16 19 20 package org.apache.pluto.portalImpl.om.page.impl; 21 22 import org.apache.pluto.portalImpl.om.page.Property; 23 import org.apache.pluto.util.StringUtils; 24 25 public class PropertyImpl implements Property, java.io.Serializable { 26 27 private String name; 28 private String value; 29 30 public PropertyImpl() 31 { 32 name = ""; 33 value = ""; 34 } 35 36 38 public String getName() 39 { 40 return name; 41 } 42 43 public void setName(String name) 44 { 45 this.name = name; 46 } 47 48 public String getValue() 49 { 50 return value; 51 } 52 53 public void setValue(String value) 54 { 55 this.value = value; 56 } 57 58 60 public String toString() 61 { 62 return toString(0); 63 } 64 65 public String toString(int indent) 66 { 67 StringBuffer buffer = new StringBuffer (50); 68 StringUtils.newLine(buffer,indent); 69 buffer.append(getClass().toString()); 70 buffer.append(": name='"); 71 buffer.append(name); 72 buffer.append("', value='"); 73 buffer.append(value); 74 buffer.append("'"); 75 return buffer.toString(); 76 } 77 78 } | Popular Tags |