1 /**
2 * BSD-style license; for more info see http://pmd.sourceforge.net/license.html
3 */
4 /* Generated By:JJTree: Do not edit this line. ASTDoctypeExternalId.java */
5
6 package net.sourceforge.pmd.lang.jsp.ast;
7
8 public class ASTDoctypeExternalId extends AbstractJspNode {
9
10 /* BEGIN CUSTOM CODE */
11
12 /**
13 * URI of the external entity. Cannot be null.
14 */
15 private String uri;
16
17 /**
18 * Public ID of the external entity. This is optional.
19 */
20 private String publicId;
21
22 public boolean isHasPublicId() {
23 return null != publicId;
24 }
25
26 /**
27 * @return Returns the name.
28 */
29 public String getUri() {
30 return uri;
31 }
32
33 /**
34 * @param name The name to set.
35 */
36 public void setUri(String name) {
37 this.uri = name;
38 }
39
40 /**
41 * @return Returns the publicId (or an empty string if there is none
42 * for this external entity id).
43 */
44 public String getPublicId() {
45 return null == publicId ? "" : publicId;
46 }
47
48 /**
49 * @param publicId The publicId to set.
50 */
51 public void setPublicId(String publicId) {
52 this.publicId = publicId;
53 }
54 /* END CUSTOM CODE */
55
56
57 public ASTDoctypeExternalId(int id) {
58 super(id);
59 }
60
61 public ASTDoctypeExternalId(JspParser p, int id) {
62 super(p, id);
63 }
64
65
66 /**
67 * Accept the visitor. *
68 */
69 public Object jjtAccept(JspParserVisitor visitor, Object data) {
70 return visitor.visit(this, data);
71 }
72 }