Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: org/enableit/db/daf/conf/Jdbc.java


1   /*
2    * This class was automatically generated with 
3    * <a href="http://castor.exolab.org">Castor 0.9.3.9+</a>, using an
4    * XML Schema.
5    * $Id: Jdbc.java,v 1.1 2002/05/03 13:44:51 anoncvs Exp $
6    */
7   
8   package org.enableit.db.daf.conf;
9   
10    //---------------------------------/
11   //- Imported classes and packages -/
12  //---------------------------------/
13  
14  import java.io.Reader;
15  import java.io.Serializable;
16  import java.io.Writer;
17  import org.exolab.castor.xml.*;
18  import org.exolab.castor.xml.MarshalException;
19  import org.exolab.castor.xml.ValidationException;
20  import org.xml.sax.DocumentHandler;
21  
22  /**
23   * 
24   * @version $Revision: 1.1 $ $Date: 2002/05/03 13:44:51 $
25  **/
26  public class Jdbc implements java.io.Serializable {
27  
28  
29        //--------------------------/
30       //- Class/Member Variables -/
31      //--------------------------/
32  
33      private java.lang.String _datasource;
34  
35      private Driver _driver;
36  
37  
38        //----------------/
39       //- Constructors -/
40      //----------------/
41  
42      public Jdbc() {
43          super();
44      } //-- org.enableit.db.daf.conf.Jdbc()
45  
46  
47        //-----------/
48       //- Methods -/
49      //-----------/
50  
51      /**
52       * Returns the value of field 'datasource'.
53       * @return the value of field 'datasource'.
54      **/
55      public java.lang.String getDatasource()
56      {
57          return this._datasource;
58      } //-- java.lang.String getDatasource() 
59  
60      /**
61       * Returns the value of field 'driver'.
62       * @return the value of field 'driver'.
63      **/
64      public Driver getDriver()
65      {
66          return this._driver;
67      } //-- Driver getDriver() 
68  
69      /**
70      **/
71      public boolean isValid()
72      {
73          try {
74              validate();
75          }
76          catch (org.exolab.castor.xml.ValidationException vex) {
77              return false;
78          }
79          return true;
80      } //-- boolean isValid() 
81  
82      /**
83       * 
84       * @param out
85      **/
86      public void marshal(java.io.Writer out)
87          throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
88      {
89          
90          Marshaller.marshal(this, out);
91      } //-- void marshal(java.io.Writer) 
92  
93      /**
94       * 
95       * @param handler
96      **/
97      public void marshal(org.xml.sax.DocumentHandler handler)
98          throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
99      {
100         
101         Marshaller.marshal(this, handler);
102     } //-- void marshal(org.xml.sax.DocumentHandler) 
103 
104     /**
105      * Sets the value of field 'datasource'.
106      * @param datasource the value of field 'datasource'.
107     **/
108     public void setDatasource(java.lang.String datasource)
109     {
110         this._datasource = datasource;
111     } //-- void setDatasource(java.lang.String) 
112 
113     /**
114      * Sets the value of field 'driver'.
115      * @param driver the value of field 'driver'.
116     **/
117     public void setDriver(Driver driver)
118     {
119         this._driver = driver;
120     } //-- void setDriver(Driver) 
121 
122     /**
123      * 
124      * @param reader
125     **/
126     public static org.enableit.db.daf.conf.Jdbc unmarshal(java.io.Reader reader)
127         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
128     {
129         return (org.enableit.db.daf.conf.Jdbc) Unmarshaller.unmarshal(org.enableit.db.daf.conf.Jdbc.class, reader);
130     } //-- org.enableit.db.daf.conf.Jdbc unmarshal(java.io.Reader) 
131 
132     /**
133     **/
134     public void validate()
135         throws org.exolab.castor.xml.ValidationException
136     {
137         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
138         validator.validate(this);
139     } //-- void validate() 
140 
141 }