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