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