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
20 public class ContentMemberType implements java.io.Serializable {
21
22
23
24
25
26
27
28
29
30 private java.lang.String _name;
31
32
33
34
35 private org.exolab.castor.builder.binding.xml.types.VisibilityType _visibility;
36
37
38
39
40
41
42 public ContentMemberType() {
43 super();
44 }
45
46
47
48
49
50
51
52
53
54
55
56 public java.lang.String getName(
57 ) {
58 return this._name;
59 }
60
61
62
63
64
65
66 public org.exolab.castor.builder.binding.xml.types.VisibilityType getVisibility(
67 ) {
68 return this._visibility;
69 }
70
71
72
73
74
75
76 public boolean isValid(
77 ) {
78 try {
79 validate();
80 } catch (org.exolab.castor.xml.ValidationException vex) {
81 return false;
82 }
83 return true;
84 }
85
86
87
88
89
90
91
92
93
94
95 public void marshal(
96 final java.io.Writer out)
97 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
98 org.exolab.castor.xml.Marshaller.marshal(this, out);
99 }
100
101
102
103
104
105
106
107
108
109
110
111
112 public void marshal(
113 final org.xml.sax.ContentHandler handler)
114 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException {
115 org.exolab.castor.xml.Marshaller.marshal(this, handler);
116 }
117
118
119
120
121
122
123 public void setName(
124 final java.lang.String name) {
125 this._name = name;
126 }
127
128
129
130
131
132
133 public void setVisibility(
134 final org.exolab.castor.builder.binding.xml.types.VisibilityType visibility) {
135 this._visibility = visibility;
136 }
137
138
139
140
141
142
143
144
145
146
147
148
149 public static org.exolab.castor.builder.binding.xml.ContentMemberType unmarshalContentMemberType(
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.ContentMemberType) org.exolab.castor.xml.Unmarshaller.unmarshal(org.exolab.castor.builder.binding.xml.ContentMemberType.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 }