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