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 EnvEntry 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 _envEntryName; 50 51 54 private java.lang.String _envEntryType; 55 56 59 private java.lang.String _envEntryValue; 60 61 62 66 public EnvEntry() { 67 super(); 68 } 70 71 75 80 public java.lang.String getDescription() 81 { 82 return this._description; 83 } 85 90 public java.lang.String getEnvEntryName() 91 { 92 return this._envEntryName; 93 } 95 100 public java.lang.String getEnvEntryType() 101 { 102 return this._envEntryType; 103 } 105 110 public java.lang.String getEnvEntryValue() 111 { 112 return this._envEntryValue; 113 } 115 120 public java.lang.String getId() 121 { 122 return this._id; 123 } 125 128 public boolean isValid() 129 { 130 try { 131 validate(); 132 } 133 catch (org.exolab.castor.xml.ValidationException vex) { 134 return false; 135 } 136 return true; 137 } 139 144 public void marshal(java.io.Writer out) 145 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 146 { 147 148 Marshaller.marshal(this, out); 149 } 151 156 public void marshal(org.xml.sax.ContentHandler handler) 157 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 158 { 159 160 Marshaller.marshal(this, handler); 161 } 163 168 public void setDescription(java.lang.String description) 169 { 170 this._description = description; 171 } 173 178 public void setEnvEntryName(java.lang.String envEntryName) 179 { 180 this._envEntryName = envEntryName; 181 } 183 188 public void setEnvEntryType(java.lang.String envEntryType) 189 { 190 this._envEntryType = envEntryType; 191 } 193 198 public void setEnvEntryValue(java.lang.String envEntryValue) 199 { 200 this._envEntryValue = envEntryValue; 201 } 203 208 public void setId(java.lang.String id) 209 { 210 this._id = id; 211 } 213 218 public static java.lang.Object unmarshal(java.io.Reader reader) 219 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 220 { 221 return (org.openejb.alt.config.ejb11.EnvEntry) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.EnvEntry.class, reader); 222 } 224 227 public void validate() 228 throws org.exolab.castor.xml.ValidationException 229 { 230 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 231 validator.validate(this); 232 } 234 } 235 | Popular Tags |