1 2 3 package net.sourceforge.pmd.jsp.ast; 4 5 public class ASTDoctypeExternalId extends SimpleNode { 6 7 8 9 12 private String uri; 13 14 17 private String publicId; 18 19 public boolean isHasPublicId() { 20 return (null != publicId); 21 } 22 23 26 public String getUri() { 27 return uri; 28 } 29 30 33 public void setUri(String name) { 34 this.uri = name; 35 } 36 37 41 public String getPublicId() { 42 return (null == publicId ? "" : publicId); 43 } 44 45 48 public void setPublicId(String publicId) { 49 this.publicId = publicId; 50 } 51 52 55 public String toString(String prefix) { 56 return 57 super.toString(prefix) 58 + " uri=[" + uri + "] " 59 + (null == publicId ? "" : "publicId=[" + publicId + "] "); 60 } 61 62 63 64 65 public ASTDoctypeExternalId(int id) { 66 super(id); 67 } 68 69 public ASTDoctypeExternalId(JspParser p, int id) { 70 super(p, id); 71 } 72 73 74 77 public Object jjtAccept(JspParserVisitor visitor, Object data) { 78 return visitor.visit(this, data); 79 } 80 } 81 | Popular Tags |