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