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 Method 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 _ejbName; 50 51 54 private java.lang.String _methodIntf; 55 56 59 private java.lang.String _methodName; 60 61 64 private org.openejb.alt.config.ejb11.MethodParams _methodParams; 65 66 67 71 public Method() { 72 super(); 73 } 75 76 80 85 public java.lang.String getDescription() 86 { 87 return this._description; 88 } 90 95 public java.lang.String getEjbName() 96 { 97 return this._ejbName; 98 } 100 105 public java.lang.String getId() 106 { 107 return this._id; 108 } 110 115 public java.lang.String getMethodIntf() 116 { 117 return this._methodIntf; 118 } 120 125 public java.lang.String getMethodName() 126 { 127 return this._methodName; 128 } 130 135 public org.openejb.alt.config.ejb11.MethodParams getMethodParams() 136 { 137 return this._methodParams; 138 } 140 143 public boolean isValid() 144 { 145 try { 146 validate(); 147 } 148 catch (org.exolab.castor.xml.ValidationException vex) { 149 return false; 150 } 151 return true; 152 } 154 159 public void marshal(java.io.Writer out) 160 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 161 { 162 163 Marshaller.marshal(this, out); 164 } 166 171 public void marshal(org.xml.sax.ContentHandler handler) 172 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 173 { 174 175 Marshaller.marshal(this, handler); 176 } 178 183 public void setDescription(java.lang.String description) 184 { 185 this._description = description; 186 } 188 193 public void setEjbName(java.lang.String ejbName) 194 { 195 this._ejbName = ejbName; 196 } 198 203 public void setId(java.lang.String id) 204 { 205 this._id = id; 206 } 208 213 public void setMethodIntf(java.lang.String methodIntf) 214 { 215 this._methodIntf = methodIntf; 216 } 218 223 public void setMethodName(java.lang.String methodName) 224 { 225 this._methodName = methodName; 226 } 228 233 public void setMethodParams(org.openejb.alt.config.ejb11.MethodParams methodParams) 234 { 235 this._methodParams = methodParams; 236 } 238 243 public static java.lang.Object unmarshal(java.io.Reader reader) 244 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 245 { 246 return (org.openejb.alt.config.ejb11.Method) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.Method.class, reader); 247 } 249 252 public void validate() 253 throws org.exolab.castor.xml.ValidationException 254 { 255 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 256 validator.validate(this); 257 } 259 } 260 | Popular Tags |