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 EjbRef 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 _home; 60 61 64 private java.lang.String _remote; 65 66 69 private java.lang.String _ejbLink; 70 71 72 76 public EjbRef() { 77 super(); 78 } 80 81 85 90 public java.lang.String getDescription() 91 { 92 return this._description; 93 } 95 100 public java.lang.String getEjbLink() 101 { 102 return this._ejbLink; 103 } 105 110 public java.lang.String getEjbRefName() 111 { 112 return this._ejbRefName; 113 } 115 120 public java.lang.String getEjbRefType() 121 { 122 return this._ejbRefType; 123 } 125 130 public java.lang.String getHome() 131 { 132 return this._home; 133 } 135 140 public java.lang.String getId() 141 { 142 return this._id; 143 } 145 150 public java.lang.String getRemote() 151 { 152 return this._remote; 153 } 155 158 public boolean isValid() 159 { 160 try { 161 validate(); 162 } 163 catch (org.exolab.castor.xml.ValidationException vex) { 164 return false; 165 } 166 return true; 167 } 169 174 public void marshal(java.io.Writer out) 175 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 176 { 177 178 Marshaller.marshal(this, out); 179 } 181 186 public void marshal(org.xml.sax.ContentHandler handler) 187 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 188 { 189 190 Marshaller.marshal(this, handler); 191 } 193 198 public void setDescription(java.lang.String description) 199 { 200 this._description = description; 201 } 203 208 public void setEjbLink(java.lang.String ejbLink) 209 { 210 this._ejbLink = ejbLink; 211 } 213 218 public void setEjbRefName(java.lang.String ejbRefName) 219 { 220 this._ejbRefName = ejbRefName; 221 } 223 228 public void setEjbRefType(java.lang.String ejbRefType) 229 { 230 this._ejbRefType = ejbRefType; 231 } 233 238 public void setHome(java.lang.String home) 239 { 240 this._home = home; 241 } 243 248 public void setId(java.lang.String id) 249 { 250 this._id = id; 251 } 253 258 public void setRemote(java.lang.String remote) 259 { 260 this._remote = remote; 261 } 263 268 public static java.lang.Object unmarshal(java.io.Reader reader) 269 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 270 { 271 return (org.openejb.alt.config.ejb11.EjbRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EjbRef.class, reader); 272 } 274 277 public void validate() 278 throws org.exolab.castor.xml.ValidationException 279 { 280 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 281 validator.validate(this); 282 } 284 } 285 | Popular Tags |