1 23 24 package com.sun.enterprise.deployment; 25 26 import java.util.Set ; 27 import java.util.HashSet ; 28 import java.util.Enumeration ; 29 import java.util.Vector ; 30 31 33 public class JspGroupDescriptor extends Descriptor { 34 35 private String elIgnored = "false"; 36 private String scriptingInvalid = "false"; 37 private String isXml = "false"; 38 private String deferredSyntaxAllowedAsLiteral = "false"; 39 private String trimDirectiveWhitespaces = "false"; 40 private Set urlPatterns = null; 41 private Set includePreludes = null; 42 private Set includeCodas = null; 43 private String pageEncoding = null; 44 45 48 public Set getUrlPatternsSet() { 49 if (this.urlPatterns == null) { 50 this.urlPatterns = new OrderedSet(); 51 } 52 return this.urlPatterns; 53 } 54 55 59 public Enumeration getUrlPatterns() { 60 return (new Vector (this.getUrlPatternsSet())).elements(); 61 } 62 63 66 public void addUrlPattern(String urlPattern) { 67 this.getUrlPatternsSet().add(urlPattern); 68 this.changed(); 69 } 70 71 74 public void removeUrlPattern(String urlPattern) { 75 this.getUrlPatternsSet().remove(urlPattern); 76 this.changed(); 77 } 78 79 82 public Set getIncludePreludeSet() { 83 if (this.includePreludes == null) { 84 this.includePreludes = new OrderedSet(); 85 } 86 return this.includePreludes; 87 } 88 89 93 public Enumeration getIncludePreludes() { 94 return (new Vector (this.getIncludePreludeSet())).elements(); 95 } 96 97 100 public void addIncludePrelude(String prelude) { 101 this.getIncludePreludeSet().add(prelude); 102 this.changed(); 103 } 104 105 108 public void removeIncludePrelude(String prelude) { 109 this.getIncludePreludeSet().remove(prelude); 110 this.changed(); 111 } 112 113 116 public Set getIncludeCodaSet() { 117 if (this.includeCodas == null) { 118 this.includeCodas = new OrderedSet(); 119 } 120 return this.includeCodas; 121 } 122 123 127 public Enumeration getIncludeCodas() { 128 return (new Vector (this.getIncludeCodaSet())).elements(); 129 } 130 131 134 public void addIncludeCoda(String coda) { 135 this.getIncludeCodaSet().add(coda); 136 this.changed(); 137 } 138 139 142 public void removeIncludeCoda(String coda) { 143 this.getIncludeCodaSet().remove(coda); 144 this.changed(); 145 } 146 147 150 public void setElIngored(String value) { 151 elIgnored = value; 152 } 153 154 public void setElIgnored(boolean value) { 155 elIgnored = String.valueOf(value); 156 } 157 158 public String getElIgnored() { 159 return elIgnored; 160 } 161 162 164 public boolean isElIgnored() { 165 return getBoolean(elIgnored); 166 } 167 168 171 public void setScriptingEnabled(String value) { 172 scriptingInvalid = value; 173 } 174 175 public void setScriptingInvalid(boolean value) { 176 scriptingInvalid = String.valueOf(value); 177 } 178 179 public String getScriptingInvalid() { 180 return scriptingInvalid; 181 } 182 183 186 public boolean isScriptingInvalid() { 187 return getBoolean(scriptingInvalid); 188 } 189 190 193 public void setIsXml(boolean value) { 194 isXml = String.valueOf(value); 195 } 196 197 200 public void setIsXml(String value) { 201 isXml = value; 202 } 203 204 public String getIsXml() { 205 return isXml; 206 } 207 208 211 public boolean isXml() { 212 return getBoolean(isXml); 213 } 214 215 218 public void setDeferredSyntaxAllowedAsLiteral(boolean value) { 219 deferredSyntaxAllowedAsLiteral = String.valueOf(value); 220 } 221 222 225 public void setDeferredSyntaxAllowedAsLiteral(String value) { 226 deferredSyntaxAllowedAsLiteral = value; 227 } 228 229 public String getDeferredSyntaxAllowedAsLiteral() { 230 return deferredSyntaxAllowedAsLiteral; 231 } 232 233 236 public boolean isDeferredSyntaxAllowedAsLiteral() { 237 return getBoolean(deferredSyntaxAllowedAsLiteral); 238 } 239 240 243 public void setTrimDirectiveWhitespaces(boolean value) { 244 trimDirectiveWhitespaces = String.valueOf(value); 245 } 246 247 250 public void setTrimDirectiveWhitespaces(String value) { 251 trimDirectiveWhitespaces = value; 252 } 253 254 public String getTrimDirectiveWhitespaces() { 255 return trimDirectiveWhitespaces; 256 } 257 258 261 public boolean isTrimDirectiveWhitespaces() { 262 return getBoolean(trimDirectiveWhitespaces); 263 } 264 265 266 269 public String getDisplayName() { 270 return super.getName(); 273 } 274 275 278 public void setDisplayName(String name) { 279 super.setName(name); 282 } 283 284 public String getPageEncoding() { 285 return pageEncoding; 286 } 287 288 public void setPageEncoding(String encoding) { 289 pageEncoding = encoding; 290 } 291 292 295 public void print(StringBuffer toStringBuffer) { 296 toStringBuffer.append("\n JspGroupDescriptor"); 297 toStringBuffer.append( "\n"); 298 super.print(toStringBuffer); 299 toStringBuffer.append( "\n DisplayName:").append(this.getDisplayName()); 300 toStringBuffer.append( "\n PageEncoding:").append(pageEncoding); 301 toStringBuffer.append( "\n El-Ignored:").append(elIgnored); 302 toStringBuffer.append( "\n Scripting Invalid:").append(scriptingInvalid); 303 toStringBuffer.append( "\n urlPatterns: ").append(urlPatterns); 304 toStringBuffer.append( "\n includePreludes: ").append(includePreludes); 305 toStringBuffer.append( "\n includeCoda: ").append(includeCodas); 306 toStringBuffer.append( "\n Is XML:").append(isXml); 307 toStringBuffer.append( "\n DeferredSyntaxAllowedAsLiteral: ").append(deferredSyntaxAllowedAsLiteral); 308 toStringBuffer.append( "\n TrimDirectiveWhitespaces:").append(trimDirectiveWhitespaces); 309 310 } 311 312 private boolean getBoolean(String value) { 313 return Boolean.valueOf(value).booleanValue(); 314 } 315 } 316 | Popular Tags |