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 EjbLocalRef 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 _ejbRefName; 50 51 54 private java.lang.String _ejbRefType; 55 56 59 private java.lang.String _localHome; 60 61 64 private java.lang.String _local; 65 66 69 private java.lang.String _ejbLink; 70 71 72 76 public EjbLocalRef() { 77 super(); 78 } 80 81 85 91 public java.lang.String getDescription() 92 { 93 return this._description; 94 } 96 102 public java.lang.String getEjbLink() 103 { 104 return this._ejbLink; 105 } 107 113 public java.lang.String getEjbRefName() 114 { 115 return this._ejbRefName; 116 } 118 124 public java.lang.String getEjbRefType() 125 { 126 return this._ejbRefType; 127 } 129 135 public java.lang.String getId() 136 { 137 return this._id; 138 } 140 146 public java.lang.String getLocal() 147 { 148 return this._local; 149 } 151 157 public java.lang.String getLocalHome() 158 { 159 return this._localHome; 160 } 162 169 public boolean isValid() 170 { 171 try { 172 validate(); 173 } 174 catch (org.exolab.castor.xml.ValidationException vex) { 175 return false; 176 } 177 return true; 178 } 180 187 public void marshal(java.io.Writer out) 188 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 189 { 190 191 Marshaller.marshal(this, out); 192 } 194 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 213 public void setDescription(java.lang.String description) 214 { 215 this._description = description; 216 } 218 223 public void setEjbLink(java.lang.String ejbLink) 224 { 225 this._ejbLink = ejbLink; 226 } 228 233 public void setEjbRefName(java.lang.String ejbRefName) 234 { 235 this._ejbRefName = ejbRefName; 236 } 238 243 public void setEjbRefType(java.lang.String ejbRefType) 244 { 245 this._ejbRefType = ejbRefType; 246 } 248 253 public void setId(java.lang.String id) 254 { 255 this._id = id; 256 } 258 263 public void setLocal(java.lang.String local) 264 { 265 this._local = local; 266 } 268 273 public void setLocalHome(java.lang.String localHome) 274 { 275 this._localHome = localHome; 276 } 278 286 public static java.lang.Object unmarshalEjbLocalRef(java.io.Reader reader) 287 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 288 { 289 return (org.openejb.alt.config.ejb11.EjbLocalRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EjbLocalRef.class, reader); 290 } 292 296 public void validate() 297 throws org.exolab.castor.xml.ValidationException 298 { 299 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 300 validator.validate(this); 301 } 303 } 304 | Popular Tags |