1
2
3
4
5
6
7
8 package org.exolab.castor.tests.framework.testDescriptor;
9
10
11
12
13
14
15 public class ListenerType implements java.io.Serializable {
16
17
18
19
20
21
22
23
24
25 private java.lang.String _goldFile;
26
27
28
29
30 private java.lang.String _className;
31
32
33
34
35 private org.exolab.castor.tests.framework.testDescriptor.types.TypeType _type = org.exolab.castor.tests.framework.testDescriptor.types.TypeType.valueOf("Both");
36
37
38
39
40
41
42 public ListenerType() {
43 super();
44 setType(org.exolab.castor.tests.framework.testDescriptor.types.TypeType.valueOf("Both"));
45 }
46
47
48
49
50
51
52
53
54
55
56
57 public java.lang.String getClassName(
58 ) {
59 return this._className;
60 }
61
62
63
64
65
66
67 public java.lang.String getGoldFile(
68 ) {
69 return this._goldFile;
70 }
71
72
73
74
75
76
77 public org.exolab.castor.tests.framework.testDescriptor.types.TypeType getType(
78 ) {
79 return this._type;
80 }
81
82
83
84
85
86
87 public boolean isValid(
88 ) {
89 try {
90 validate();
91 } catch (org.exolab.castor.xml.ValidationException vex) {
92 return false;
93 }
94 return true;
95 }
96
97
98
99
100
101
102
103
104
105
106 public void marshal(
107 final java.io.Writer out)
108 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
109 org.exolab.castor.xml.Marshaller.marshal(this, out);
110 }
111
112
113
114
115
116
117
118
119
120
121
122
123 public void marshal(
124 final org.xml.sax.ContentHandler handler)
125 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
126 org.exolab.castor.xml.Marshaller.marshal(this, handler);
127 }
128
129
130
131
132
133
134 public void setClassName(
135 final java.lang.String className) {
136 this._className = className;
137 }
138
139
140
141
142
143
144 public void setGoldFile(
145 final java.lang.String goldFile) {
146 this._goldFile = goldFile;
147 }
148
149
150
151
152
153
154 public void setType(
155 final org.exolab.castor.tests.framework.testDescriptor.types.TypeType type) {
156 this._type = type;
157 }
158
159
160
161
162
163
164
165
166
167
168
169
170 public static org.exolab.castor.tests.framework.testDescriptor.ListenerType unmarshal(
171 final java.io.Reader reader)
172 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
173 return (org.exolab.castor.tests.framework.testDescriptor.ListenerType) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.tests.framework.testDescriptor.ListenerType.class, reader);
174 }
175
176
177
178
179
180
181
182 public void validate(
183 )
184 throws org.exolab.castor.xml.ValidationException {
185 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
186 validator.validate(this);
187 }
188
189 }