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