1 23 24 package com.sun.enterprise.deployment; 25 26 import java.util.*; 27 28 31 public class JspConfigDescriptor extends Descriptor { 32 33 private Set list = null; 34 private Vector jspGroups = null; 35 38 public Set getTagLibSet() { 39 if(list == null) { 40 list = new HashSet(); 41 } 42 return list; 43 } 44 45 48 public Enumeration getTagLibs() { 49 return (new Vector(this.getTagLibSet())).elements(); 50 } 51 52 55 public void addTagLib(TagLibConfigurationDescriptor desc) { 56 getTagLibSet().add(desc); 57 changed(); 58 } 59 60 63 public void removeTagLib(TagLibConfigurationDescriptor desc) { 64 getTagLibSet().remove(desc); 65 changed(); 66 } 67 68 71 public Collection getJspGroupSet() { 72 if(jspGroups == null) { 73 jspGroups = new Vector(); 74 } 75 return jspGroups; 76 } 77 78 81 public Enumeration getJspGroups() { 82 return (new Vector(getJspGroupSet())).elements(); 83 } 84 85 88 public void addJspGroup(JspGroupDescriptor desc) { 89 getJspGroupSet().add(desc); 90 changed(); 91 } 92 93 96 public void removeJspGroup(JspGroupDescriptor desc) { 97 getJspGroupSet().remove(desc); 98 changed(); 99 } 100 101 104 public void print(StringBuffer toStringBuffer) { 105 toStringBuffer.append("\nTagLibs : ").append(list).append(" jsp groups:").append(jspGroups); 106 } 107 } 108 | Popular Tags |