1
2
3
4
5
6
7
8 package fr.in2p3.jsaga.engine.schema.config;
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 MonitorService extends fr.in2p3.jsaga.engine.schema.config.ObjectType
30 implements java.io.Serializable
31 {
32
33
34
35
36
37
38
39
40
41 private java.lang.String _impl;
42
43
44
45
46 private java.lang.String _url;
47
48
49
50
51
52
53 public MonitorService()
54 {
55 super();
56 }
57
58
59
60
61
62
63
64
65
66
67
68
69 public java.lang.String getImpl()
70 {
71 return this._impl;
72 }
73
74
75
76
77
78
79
80 public java.lang.String getUrl()
81 {
82 return this._url;
83 }
84
85
86
87
88
89
90
91
92 public boolean isValid()
93 {
94 try {
95 validate();
96 }
97 catch (org.exolab.castor.xml.ValidationException vex) {
98 return false;
99 }
100 return true;
101 }
102
103
104
105
106
107
108
109
110 public void marshal(java.io.Writer out)
111 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
112 {
113
114 Marshaller.marshal(this, out);
115 }
116
117
118
119
120
121
122
123
124 public void marshal(org.xml.sax.ContentHandler handler)
125 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
126 {
127
128 Marshaller.marshal(this, handler);
129 }
130
131
132
133
134
135
136 public void setImpl(java.lang.String impl)
137 {
138 this._impl = impl;
139 }
140
141
142
143
144
145
146 public void setUrl(java.lang.String url)
147 {
148 this._url = url;
149 }
150
151
152
153
154
155
156
157
158
159 public static java.lang.Object unmarshal(java.io.Reader reader)
160 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
161 {
162 return (fr.in2p3.jsaga.engine.schema.config.MonitorService) Unmarshaller.unmarshal(fr.in2p3.jsaga.engine.schema.config.MonitorService.class, reader);
163 }
164
165
166
167
168
169 public void validate()
170 throws org.exolab.castor.xml.ValidationException
171 {
172 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
173 validator.validate(this);
174 }
175
176 }