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