1 /*
2 * This class was automatically generated with
3 * <a href="http://www.castor.org">Castor 1.3.1</a>, using an XML
4 * Schema.
5 * $Id$
6 */
7
8 package org.exolab.castor.builder.binding.xml;
9
10 /**
11 * Class Exclude.
12 *
13 * @version $Revision$ $Date$
14 */
15 public class Exclude implements java.io.Serializable {
16
17
18 //--------------------------/
19 //- Class/Member Variables -/
20 //--------------------------/
21
22 /**
23 * Field _name.
24 */
25 private java.lang.String _name;
26
27 /**
28 * Field _className.
29 */
30 private java.lang.String _className;
31
32
33 //----------------/
34 //- Constructors -/
35 //----------------/
36
37 public Exclude() {
38 super();
39 }
40
41
42 //-----------/
43 //- Methods -/
44 //-----------/
45
46 /**
47 * Returns the value of field 'className'.
48 *
49 * @return the value of field 'ClassName'.
50 */
51 public java.lang.String getClassName(
52 ) {
53 return this._className;
54 }
55
56 /**
57 * Returns the value of field 'name'.
58 *
59 * @return the value of field 'Name'.
60 */
61 public java.lang.String getName(
62 ) {
63 return this._name;
64 }
65
66 /**
67 * Method isValid.
68 *
69 * @return true if this object is valid according to the schema
70 */
71 public boolean isValid(
72 ) {
73 try {
74 validate();
75 } catch (org.exolab.castor.xml.ValidationException vex) {
76 return false;
77 }
78 return true;
79 }
80
81 /**
82 *
83 *
84 * @param out
85 * @throws org.exolab.castor.xml.MarshalException if object is
86 * null or if any SAXException is thrown during marshaling
87 * @throws org.exolab.castor.xml.ValidationException if this
88 * object is an invalid instance according to the schema
89 */
90 public void marshal(
91 final java.io.Writer out)
92 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
93 org.exolab.castor.xml.Marshaller.marshal(this, out);
94 }
95
96 /**
97 *
98 *
99 * @param handler
100 * @throws java.io.IOException if an IOException occurs during
101 * marshaling
102 * @throws org.exolab.castor.xml.ValidationException if this
103 * object is an invalid instance according to the schema
104 * @throws org.exolab.castor.xml.MarshalException if object is
105 * null or if any SAXException is thrown during marshaling
106 */
107 public void marshal(
108 final org.xml.sax.ContentHandler handler)
109 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
110 org.exolab.castor.xml.Marshaller.marshal(this, handler);
111 }
112
113 /**
114 * Sets the value of field 'className'.
115 *
116 * @param className the value of field 'className'.
117 */
118 public void setClassName(
119 final java.lang.String className) {
120 this._className = className;
121 }
122
123 /**
124 * Sets the value of field 'name'.
125 *
126 * @param name the value of field 'name'.
127 */
128 public void setName(
129 final java.lang.String name) {
130 this._name = name;
131 }
132
133 /**
134 * Method unmarshalExclude.
135 *
136 * @param reader
137 * @throws org.exolab.castor.xml.MarshalException if object is
138 * null or if any SAXException is thrown during marshaling
139 * @throws org.exolab.castor.xml.ValidationException if this
140 * object is an invalid instance according to the schema
141 * @return the unmarshaled
142 * org.exolab.castor.builder.binding.xml.Exclude
143 */
144 public static org.exolab.castor.builder.binding.xml.Exclude unmarshalExclude(
145 final java.io.Reader reader)
146 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
147 return (org.exolab.castor.builder.binding.xml.Exclude) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.Exclude.class, reader);
148 }
149
150 /**
151 *
152 *
153 * @throws org.exolab.castor.xml.ValidationException if this
154 * object is an invalid instance according to the schema
155 */
156 public void validate(
157 )
158 throws org.exolab.castor.xml.ValidationException {
159 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
160 validator.validate(this);
161 }
162
163 }