1 20 package org.jahia.data.webapps; 21 22 23 24 25 49 public class Servlet_Element { 50 51 52 private String m_Name; 53 54 private String m_DisplayName; 55 56 private String m_desc; 57 58 private String m_Source; 59 60 private int m_Type; 61 62 private int m_Number; 63 64 65 70 public Servlet_Element( String name, 71 String displayName, 72 String desc, 73 String source, 74 int type, 75 int servletNumber 76 ){ 77 78 m_Name = name; 79 m_DisplayName = displayName; 80 m_desc = desc; 81 m_Source = source; 82 m_Type = type; 83 m_Number = servletNumber; 84 85 } 86 87 88 93 public String getName(){ 94 95 return m_Name; 96 } 97 98 99 104 public void setName(String name){ 105 106 m_Name = name; 107 } 108 109 110 115 public String getDisplayName(){ 116 117 return m_DisplayName; 118 } 119 120 121 126 public void setDisplayName(String name){ 127 128 m_DisplayName = name; 129 } 130 131 132 137 public String getdesc(){ 138 139 return m_desc; 140 } 141 142 143 148 public void setdesc(String descr){ 149 150 m_desc = descr; 151 } 152 153 154 159 public String getSource(){ 160 161 return m_Source; 162 } 163 164 165 170 public void setSource(String servletsrc){ 171 172 m_Source = servletsrc; 173 } 174 175 176 181 public int getType(){ 182 183 return m_Type; 184 } 185 186 187 192 public String getTypeLabel(){ 193 194 if ( m_Type==1 ){ 195 return "Servlet"; 196 } else { 197 return "Jsp"; 198 } 199 } 200 201 202 207 public void setType(int servletType){ 208 209 m_Type = servletType; 210 } 211 212 213 218 public int getNumber(){ 219 220 return m_Number; 221 } 222 223 228 public void setNumber(int servletNumber){ 229 230 m_Number = servletNumber; 231 } 232 233 234 } | Popular Tags |