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 ProviderChoice implements java.io.Serializable { 29 30 31 //--------------------------/ 32 //- Class/Member Variables -/ 33 //--------------------------/ 34 35 private Driver _driver; 36 37 private java.lang.String _jdbc2DatasourceName; 38 39 40 //----------------/ 41 //- Constructors -/ 42 //----------------/ 43 44 public ProviderChoice() { 45 super(); 46 } //-- org.enableit.db.beans.ProviderChoice() 47 48 49 //-----------/ 50 //- Methods -/ 51 //-----------/ 52 53 /*** 54 * Returns the value of field 'driver'. 55 * 56 * @return the value of field 'driver'. 57 **/ 58 public Driver getDriver() 59 { 60 return this._driver; 61 } //-- Driver getDriver() 62 63 /*** 64 * Returns the value of field 'jdbc2DatasourceName'. 65 * 66 * @return the value of field 'jdbc2DatasourceName'. 67 **/ 68 public java.lang.String getJdbc2DatasourceName() 69 { 70 return this._jdbc2DatasourceName; 71 } //-- java.lang.String getJdbc2DatasourceName() 72 73 /*** 74 **/ 75 public boolean isValid() 76 { 77 try { 78 validate(); 79 } 80 catch (org.exolab.castor.xml.ValidationException vex) { 81 return false; 82 } 83 return true; 84 } //-- boolean isValid() 85 86 /*** 87 * 88 * 89 * @param out 90 **/ 91 public void marshal(java.io.Writer out) 92 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 93 { 94 95 Marshaller.marshal(this, out); 96 } //-- void marshal(java.io.Writer) 97 98 /*** 99 * 100 * 101 * @param handler 102 **/ 103 public void marshal(org.xml.sax.ContentHandler handler) 104 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 105 { 106 107 Marshaller.marshal(this, handler); 108 } //-- void marshal(org.xml.sax.ContentHandler) 109 110 /*** 111 * Sets the value of field 'driver'. 112 * 113 * @param driver the value of field 'driver'. 114 **/ 115 public void setDriver(Driver driver) 116 { 117 this._driver = driver; 118 } //-- void setDriver(Driver) 119 120 /*** 121 * Sets the value of field 'jdbc2DatasourceName'. 122 * 123 * @param jdbc2DatasourceName the value of field 124 * 'jdbc2DatasourceName'. 125 **/ 126 public void setJdbc2DatasourceName(java.lang.String jdbc2DatasourceName) 127 { 128 this._jdbc2DatasourceName = jdbc2DatasourceName; 129 } //-- void setJdbc2DatasourceName(java.lang.String) 130 131 /*** 132 * 133 * 134 * @param reader 135 **/ 136 public static org.enableit.db.beans.ProviderChoice unmarshal(java.io.Reader reader) 137 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 138 { 139 return (org.enableit.db.beans.ProviderChoice) Unmarshaller.unmarshal(org.enableit.db.beans.ProviderChoice.class, reader); 140 } //-- org.enableit.db.beans.ProviderChoice unmarshal(java.io.Reader) 141 142 /*** 143 **/ 144 public void validate() 145 throws org.exolab.castor.xml.ValidationException 146 { 147 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 148 validator.validate(this); 149 } //-- void validate() 150 151 }

This page was automatically generated by Maven