View Javadoc
1 /* 2 * This class was automatically generated with 3 * <a href="http://castor.exolab.org">Castor 0.9.4</a>, using an 4 * XML Schema. 5 * $Id$ 6 */ 7 8 package org.enableit.db.beans; 9 10 //---------------------------------/ 11 //- Imported classes and packages -/ 12 //---------------------------------/ 13 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.*; 19 import org.exolab.castor.xml.MarshalException; 20 import org.exolab.castor.xml.ValidationException; 21 import org.xml.sax.ContentHandler; 22 23 /*** 24 * 25 * 26 * @version $Revision$ $Date$ 27 **/ 28 public class Driver implements java.io.Serializable { 29 30 31 //--------------------------/ 32 //- Class/Member Variables -/ 33 //--------------------------/ 34 35 private java.lang.String _name; 36 37 private java.lang.String _version; 38 39 private java.lang.String _className; 40 41 private java.lang.String _url; 42 43 private java.lang.String _username; 44 45 private java.lang.String _password; 46 47 48 //----------------/ 49 //- Constructors -/ 50 //----------------/ 51 52 public Driver() { 53 super(); 54 } //-- org.enableit.db.beans.Driver() 55 56 57 //-----------/ 58 //- Methods -/ 59 //-----------/ 60 61 /*** 62 * Returns the value of field 'className'. 63 * 64 * @return the value of field 'className'. 65 **/ 66 public java.lang.String getClassName() 67 { 68 return this._className; 69 } //-- java.lang.String getClassName() 70 71 /*** 72 * Returns the value of field 'name'. 73 * 74 * @return the value of field 'name'. 75 **/ 76 public java.lang.String getName() 77 { 78 return this._name; 79 } //-- java.lang.String getName() 80 81 /*** 82 * Returns the value of field 'password'. 83 * 84 * @return the value of field 'password'. 85 **/ 86 public java.lang.String getPassword() 87 { 88 return this._password; 89 } //-- java.lang.String getPassword() 90 91 /*** 92 * Returns the value of field 'url'. 93 * 94 * @return the value of field 'url'. 95 **/ 96 public java.lang.String getUrl() 97 { 98 return this._url; 99 } //-- java.lang.String getUrl() 100 101 /*** 102 * Returns the value of field 'username'. 103 * 104 * @return the value of field 'username'. 105 **/ 106 public java.lang.String getUsername() 107 { 108 return this._username; 109 } //-- java.lang.String getUsername() 110 111 /*** 112 * Returns the value of field 'version'. 113 * 114 * @return the value of field 'version'. 115 **/ 116 public java.lang.String getVersion() 117 { 118 return this._version; 119 } //-- java.lang.String getVersion() 120 121 /*** 122 **/ 123 public boolean isValid() 124 { 125 try { 126 validate(); 127 } 128 catch (org.exolab.castor.xml.ValidationException vex) { 129 return false; 130 } 131 return true; 132 } //-- boolean isValid() 133 134 /*** 135 * 136 * 137 * @param out 138 **/ 139 public void marshal(java.io.Writer out) 140 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 141 { 142 143 Marshaller.marshal(this, out); 144 } //-- void marshal(java.io.Writer) 145 146 /*** 147 * 148 * 149 * @param handler 150 **/ 151 public void marshal(org.xml.sax.ContentHandler handler) 152 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 153 { 154 155 Marshaller.marshal(this, handler); 156 } //-- void marshal(org.xml.sax.ContentHandler) 157 158 /*** 159 * Sets the value of field 'className'. 160 * 161 * @param className the value of field 'className'. 162 **/ 163 public void setClassName(java.lang.String className) 164 { 165 this._className = className; 166 } //-- void setClassName(java.lang.String) 167 168 /*** 169 * Sets the value of field 'name'. 170 * 171 * @param name the value of field 'name'. 172 **/ 173 public void setName(java.lang.String name) 174 { 175 this._name = name; 176 } //-- void setName(java.lang.String) 177 178 /*** 179 * Sets the value of field 'password'. 180 * 181 * @param password the value of field 'password'. 182 **/ 183 public void setPassword(java.lang.String password) 184 { 185 this._password = password; 186 } //-- void setPassword(java.lang.String) 187 188 /*** 189 * Sets the value of field 'url'. 190 * 191 * @param url the value of field 'url'. 192 **/ 193 public void setUrl(java.lang.String url) 194 { 195 this._url = url; 196 } //-- void setUrl(java.lang.String) 197 198 /*** 199 * Sets the value of field 'username'. 200 * 201 * @param username the value of field 'username'. 202 **/ 203 public void setUsername(java.lang.String username) 204 { 205 this._username = username; 206 } //-- void setUsername(java.lang.String) 207 208 /*** 209 * Sets the value of field 'version'. 210 * 211 * @param version the value of field 'version'. 212 **/ 213 public void setVersion(java.lang.String version) 214 { 215 this._version = version; 216 } //-- void setVersion(java.lang.String) 217 218 /*** 219 * 220 * 221 * @param reader 222 **/ 223 public static org.enableit.db.beans.Driver unmarshal(java.io.Reader reader) 224 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 225 { 226 return (org.enableit.db.beans.Driver) Unmarshaller.unmarshal(org.enableit.db.beans.Driver.class, reader); 227 } //-- org.enableit.db.beans.Driver unmarshal(java.io.Reader) 228 229 /*** 230 **/ 231 public void validate() 232 throws org.exolab.castor.xml.ValidationException 233 { 234 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 235 validator.validate(this); 236 } //-- void validate() 237 238 }

This page was automatically generated by Maven