KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openejb > alt > config > sys > Lookup


1 /*
2  * This class was automatically generated with
3  * <a HREF="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
4  * Schema.
5  * $Id: Lookup.java 1105 2004-03-31 00:45:22Z dblevins $
6  */

7
8 package org.openejb.alt.config.sys;
9
10   //---------------------------------/
11
//- Imported classes and packages -/
12
//---------------------------------/
13

14 import java.io.IOException JavaDoc;
15 import java.io.Reader JavaDoc;
16 import java.io.Serializable JavaDoc;
17 import java.io.Writer JavaDoc;
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 JavaDoc;
23
24 /**
25  * Class Lookup.
26  *
27  * @version $Revision: 1105 $ $Date: 2004-03-30 16:45:22 -0800 (Tue, 30 Mar 2004) $
28  */

29 public class Lookup implements java.io.Serializable JavaDoc {
30
31
32       //--------------------------/
33
//- Class/Member Variables -/
34
//--------------------------/
35

36     /**
37      * Field _jndiName
38      */

39     private java.lang.String JavaDoc _jndiName;
40
41     /**
42      * Field _jndiProviderId
43      */

44     private java.lang.String JavaDoc _jndiProviderId;
45
46
47       //----------------/
48
//- Constructors -/
49
//----------------/
50

51     public Lookup() {
52         super();
53     } //-- org.openejb.alt.config.sys.Lookup()
54

55
56       //-----------/
57
//- Methods -/
58
//-----------/
59

60     /**
61      * Returns the value of field 'jndiName'.
62      *
63      * @return the value of field 'jndiName'.
64      */

65     public java.lang.String JavaDoc getJndiName()
66     {
67         return this._jndiName;
68     } //-- java.lang.String getJndiName()
69

70     /**
71      * Returns the value of field 'jndiProviderId'.
72      *
73      * @return the value of field 'jndiProviderId'.
74      */

75     public java.lang.String JavaDoc getJndiProviderId()
76     {
77         return this._jndiProviderId;
78     } //-- java.lang.String getJndiProviderId()
79

80     /**
81      * Method isValid
82      */

83     public boolean isValid()
84     {
85         try {
86             validate();
87         }
88         catch (org.exolab.castor.xml.ValidationException vex) {
89             return false;
90         }
91         return true;
92     } //-- boolean isValid()
93

94     /**
95      * Method marshal
96      *
97      * @param out
98      */

99     public void marshal(java.io.Writer JavaDoc out)
100         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
101     {
102         
103         Marshaller.marshal(this, out);
104     } //-- void marshal(java.io.Writer)
105

106     /**
107      * Method marshal
108      *
109      * @param handler
110      */

111     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
112         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
113     {
114         
115         Marshaller.marshal(this, handler);
116     } //-- void marshal(org.xml.sax.ContentHandler)
117

118     /**
119      * Sets the value of field 'jndiName'.
120      *
121      * @param jndiName the value of field 'jndiName'.
122      */

123     public void setJndiName(java.lang.String JavaDoc jndiName)
124     {
125         this._jndiName = jndiName;
126     } //-- void setJndiName(java.lang.String)
127

128     /**
129      * Sets the value of field 'jndiProviderId'.
130      *
131      * @param jndiProviderId the value of field 'jndiProviderId'.
132      */

133     public void setJndiProviderId(java.lang.String JavaDoc jndiProviderId)
134     {
135         this._jndiProviderId = jndiProviderId;
136     } //-- void setJndiProviderId(java.lang.String)
137

138     /**
139      * Method unmarshal
140      *
141      * @param reader
142      */

143     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
144         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
145     {
146         return (org.openejb.alt.config.sys.Lookup) Unmarshaller.unmarshal(org.openejb.alt.config.sys.Lookup.class, reader);
147     } //-- java.lang.Object unmarshal(java.io.Reader)
148

149     /**
150      * Method validate
151      */

152     public void validate()
153         throws org.exolab.castor.xml.ValidationException
154     {
155         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
156         validator.validate(this);
157     } //-- void validate()
158

159 }
160
Popular Tags