1 16 17 package org.apache.pluto.portalImpl.om.servlet.impl; 18 19 import org.apache.pluto.util.StringUtils; 20 21 public class TagDefinitionImpl implements java.io.Serializable { 22 23 private String uri ="http://java.sun.com/portlet"; 24 private String location = "/WEB-INF/tld/portlet.tld"; 25 26 public TagDefinitionImpl() 27 { 28 super(); 29 } 30 33 public String getLocation() { 34 return location; 35 } 36 37 40 public String getUri() { 41 return uri; 42 } 43 44 47 public void setLocation(String string) { 48 location = string; 49 } 50 51 54 public void setUri(String string) { 55 uri = string; 56 } 57 58 65 public String toString() 66 { 67 return toString(0); 68 } 69 70 public String toString(int indent) 71 { 72 StringBuffer buffer = new StringBuffer (50); 73 StringUtils.newLine(buffer,indent); 74 buffer.append(getClass().toString()); buffer.append(":"); 75 StringUtils.newLine(buffer,indent); 76 buffer.append("{"); 77 StringUtils.newLine(buffer,indent); 78 buffer.append("taglib-uri='"); buffer.append(this.getUri()); buffer.append("'"); 79 StringUtils.newLine(buffer,indent); 80 buffer.append("taglib-location='"); buffer.append(this.getLocation()); buffer.append("'"); 81 StringUtils.newLine(buffer,indent); 82 buffer.append("}"); 83 return buffer.toString(); 84 } 85 86 } 87 | Popular Tags |