1
2
3
4
5
6
7
8 package org.exolab.castor.tests.framework.testDescriptor;
9
10
11
12
13
14
15 public class Listener extends ListenerType
16 implements java.io.Serializable
17 {
18
19
20
21
22
23
24 public Listener() {
25 super();
26 }
27
28
29
30
31
32
33
34
35
36
37
38 public boolean isValid(
39 ) {
40 try {
41 validate();
42 } catch (org.exolab.castor.xml.ValidationException vex) {
43 return false;
44 }
45 return true;
46 }
47
48
49
50
51
52
53
54
55
56
57 public void marshal(
58 final java.io.Writer out)
59 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
60 org.exolab.castor.xml.Marshaller.marshal(this, out);
61 }
62
63
64
65
66
67
68
69
70
71
72
73
74 public void marshal(
75 final org.xml.sax.ContentHandler handler)
76 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
77 org.exolab.castor.xml.Marshaller.marshal(this, handler);
78 }
79
80
81
82
83
84
85
86
87
88
89
90
91 public static org.exolab.castor.tests.framework.testDescriptor.ListenerType unmarshal(
92 final java.io.Reader reader)
93 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
94 return (org.exolab.castor.tests.framework.testDescriptor.ListenerType) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.tests.framework.testDescriptor.Listener.class, reader);
95 }
96
97
98
99
100
101
102
103 public void validate(
104 )
105 throws org.exolab.castor.xml.ValidationException {
106 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
107 validator.validate(this);
108 }
109
110 }