KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > openejb > alt > config > ejb11 > SecurityRoleRef


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: SecurityRoleRef.java 1104 2004-03-31 00:44:02Z dblevins $
6  */

7
8 package org.openejb.alt.config.ejb11;
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 SecurityRoleRef.
26  *
27  * @version $Revision: 1104 $ $Date: 2004-03-30 16:44:02 -0800 (Tue, 30 Mar 2004) $
28  */

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

36     /**
37      * Field _id
38      */

39     private java.lang.String JavaDoc _id;
40
41     /**
42      * Field _description
43      */

44     private java.lang.String JavaDoc _description;
45
46     /**
47      * Field _roleName
48      */

49     private java.lang.String JavaDoc _roleName;
50
51     /**
52      * Field _roleLink
53      */

54     private java.lang.String JavaDoc _roleLink;
55
56
57       //----------------/
58
//- Constructors -/
59
//----------------/
60

61     public SecurityRoleRef() {
62         super();
63     } //-- org.openejb.alt.config.ejb11.SecurityRoleRef()
64

65
66       //-----------/
67
//- Methods -/
68
//-----------/
69

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

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

80     /**
81      * Returns the value of field 'id'.
82      *
83      * @return the value of field 'id'.
84      */

85     public java.lang.String JavaDoc getId()
86     {
87         return this._id;
88     } //-- java.lang.String getId()
89

90     /**
91      * Returns the value of field 'roleLink'.
92      *
93      * @return the value of field 'roleLink'.
94      */

95     public java.lang.String JavaDoc getRoleLink()
96     {
97         return this._roleLink;
98     } //-- java.lang.String getRoleLink()
99

100     /**
101      * Returns the value of field 'roleName'.
102      *
103      * @return the value of field 'roleName'.
104      */

105     public java.lang.String JavaDoc getRoleName()
106     {
107         return this._roleName;
108     } //-- java.lang.String getRoleName()
109

110     /**
111      * Method isValid
112      */

113     public boolean isValid()
114     {
115         try {
116             validate();
117         }
118         catch (org.exolab.castor.xml.ValidationException vex) {
119             return false;
120         }
121         return true;
122     } //-- boolean isValid()
123

124     /**
125      * Method marshal
126      *
127      * @param out
128      */

129     public void marshal(java.io.Writer JavaDoc out)
130         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
131     {
132         
133         Marshaller.marshal(this, out);
134     } //-- void marshal(java.io.Writer)
135

136     /**
137      * Method marshal
138      *
139      * @param handler
140      */

141     public void marshal(org.xml.sax.ContentHandler JavaDoc handler)
142         throws java.io.IOException JavaDoc, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
143     {
144         
145         Marshaller.marshal(this, handler);
146     } //-- void marshal(org.xml.sax.ContentHandler)
147

148     /**
149      * Sets the value of field 'description'.
150      *
151      * @param description the value of field 'description'.
152      */

153     public void setDescription(java.lang.String JavaDoc description)
154     {
155         this._description = description;
156     } //-- void setDescription(java.lang.String)
157

158     /**
159      * Sets the value of field 'id'.
160      *
161      * @param id the value of field 'id'.
162      */

163     public void setId(java.lang.String JavaDoc id)
164     {
165         this._id = id;
166     } //-- void setId(java.lang.String)
167

168     /**
169      * Sets the value of field 'roleLink'.
170      *
171      * @param roleLink the value of field 'roleLink'.
172      */

173     public void setRoleLink(java.lang.String JavaDoc roleLink)
174     {
175         this._roleLink = roleLink;
176     } //-- void setRoleLink(java.lang.String)
177

178     /**
179      * Sets the value of field 'roleName'.
180      *
181      * @param roleName the value of field 'roleName'.
182      */

183     public void setRoleName(java.lang.String JavaDoc roleName)
184     {
185         this._roleName = roleName;
186     } //-- void setRoleName(java.lang.String)
187

188     /**
189      * Method unmarshal
190      *
191      * @param reader
192      */

193     public static java.lang.Object JavaDoc unmarshal(java.io.Reader JavaDoc reader)
194         throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
195     {
196         return (org.openejb.alt.config.ejb11.SecurityRoleRef) Unmarshaller.unmarshal(org.openejb.alt.config.ejb11.SecurityRoleRef.class, reader);
197     } //-- java.lang.Object unmarshal(java.io.Reader)
198

199     /**
200      * Method validate
201      */

202     public void validate()
203         throws org.exolab.castor.xml.ValidationException
204     {
205         org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
206         validator.validate(this);
207     } //-- void validate()
208

209 }
210
Popular Tags