1 7 8 package org.openejb.alt.config.ejb11; 9 10 14 import java.io.IOException ; 15 import java.io.Reader ; 16 import java.io.Serializable ; 17 import java.io.Writer ; 18 import org.exolab.castor.xml.MarshalException; 19 import org.exolab.castor.xml.Marshaller; 20 import org.exolab.castor.xml.Unmarshaller; 21 import org.exolab.castor.xml.ValidationException; 22 import org.xml.sax.ContentHandler ; 23 24 29 public class EjbJar implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _id; 40 41 44 private java.lang.String _description; 45 46 49 private java.lang.String _displayName; 50 51 54 private java.lang.String _smallIcon; 55 56 59 private java.lang.String _largeIcon; 60 61 64 private org.openejb.alt.config.ejb11.EnterpriseBeans _enterpriseBeans; 65 66 69 private org.openejb.alt.config.ejb11.AssemblyDescriptor _assemblyDescriptor; 70 71 74 private java.lang.String _ejbClientJar; 75 76 77 81 public EjbJar() { 82 super(); 83 } 85 86 90 95 public org.openejb.alt.config.ejb11.AssemblyDescriptor getAssemblyDescriptor() 96 { 97 return this._assemblyDescriptor; 98 } 100 105 public java.lang.String getDescription() 106 { 107 return this._description; 108 } 110 115 public java.lang.String getDisplayName() 116 { 117 return this._displayName; 118 } 120 125 public java.lang.String getEjbClientJar() 126 { 127 return this._ejbClientJar; 128 } 130 135 public org.openejb.alt.config.ejb11.EnterpriseBeans getEnterpriseBeans() 136 { 137 return this._enterpriseBeans; 138 } 140 145 public java.lang.String getId() 146 { 147 return this._id; 148 } 150 155 public java.lang.String getLargeIcon() 156 { 157 return this._largeIcon; 158 } 160 165 public java.lang.String getSmallIcon() 166 { 167 return this._smallIcon; 168 } 170 173 public boolean isValid() 174 { 175 try { 176 validate(); 177 } 178 catch (org.exolab.castor.xml.ValidationException vex) { 179 return false; 180 } 181 return true; 182 } 184 189 public void marshal(java.io.Writer out) 190 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 191 { 192 193 Marshaller.marshal(this, out); 194 } 196 201 public void marshal(org.xml.sax.ContentHandler handler) 202 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 203 { 204 205 Marshaller.marshal(this, handler); 206 } 208 214 public void setAssemblyDescriptor(org.openejb.alt.config.ejb11.AssemblyDescriptor assemblyDescriptor) 215 { 216 this._assemblyDescriptor = assemblyDescriptor; 217 } 219 224 public void setDescription(java.lang.String description) 225 { 226 this._description = description; 227 } 229 234 public void setDisplayName(java.lang.String displayName) 235 { 236 this._displayName = displayName; 237 } 239 244 public void setEjbClientJar(java.lang.String ejbClientJar) 245 { 246 this._ejbClientJar = ejbClientJar; 247 } 249 254 public void setEnterpriseBeans(org.openejb.alt.config.ejb11.EnterpriseBeans enterpriseBeans) 255 { 256 this._enterpriseBeans = enterpriseBeans; 257 } 259 264 public void setId(java.lang.String id) 265 { 266 this._id = id; 267 } 269 274 public void setLargeIcon(java.lang.String largeIcon) 275 { 276 this._largeIcon = largeIcon; 277 } 279 284 public void setSmallIcon(java.lang.String smallIcon) 285 { 286 this._smallIcon = smallIcon; 287 } 289 294 public static java.lang.Object unmarshal(java.io.Reader reader) 295 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 296 { 297 return (org.openejb.alt.config.ejb11.EjbJar) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EjbJar.class, reader); 298 } 300 303 public void validate() 304 throws org.exolab.castor.xml.ValidationException 305 { 306 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 307 validator.validate(this); 308 } 310 } 311 | Popular Tags |