svn-gvsig-desktop / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_3_0 / exception / ServiceExceptionType.java @ 150
History | View | Annotate | Download (4.36 KB)
1 |
/*
|
---|---|
2 |
* This class was automatically generated with
|
3 |
* <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
|
4 |
* Schema.
|
5 |
* $Id: ServiceExceptionType.java 150 2004-09-23 09:35:29Z fernando $
|
6 |
*/
|
7 |
|
8 |
package com.iver.wmsclient.wms_1_3_0.exception; |
9 |
|
10 |
//---------------------------------/
|
11 |
//- Imported classes and packages -/
|
12 |
//---------------------------------/
|
13 |
|
14 |
import org.exolab.castor.xml.Marshaller; |
15 |
import org.exolab.castor.xml.Unmarshaller; |
16 |
|
17 |
/**
|
18 |
* Class ServiceExceptionType.
|
19 |
*
|
20 |
* @version $Revision: 150 $ $Date: 2004-09-23 11:35:29 +0200 (Thu, 23 Sep 2004) $
|
21 |
*/
|
22 |
public class ServiceExceptionType implements java.io.Serializable { |
23 |
|
24 |
|
25 |
//--------------------------/
|
26 |
//- Class/Member Variables -/
|
27 |
//--------------------------/
|
28 |
|
29 |
/**
|
30 |
* internal content storage
|
31 |
*/
|
32 |
private java.lang.String _content = ""; |
33 |
|
34 |
/**
|
35 |
* Field _code
|
36 |
*/
|
37 |
private java.lang.String _code;
|
38 |
|
39 |
/**
|
40 |
* Field _locator
|
41 |
*/
|
42 |
private java.lang.String _locator;
|
43 |
|
44 |
|
45 |
//----------------/
|
46 |
//- Constructors -/
|
47 |
//----------------/
|
48 |
|
49 |
public ServiceExceptionType() {
|
50 |
super();
|
51 |
setContent("");
|
52 |
} //-- com.iver.wmsclient.wms_1_3_0.exception.ServiceExceptionType()
|
53 |
|
54 |
|
55 |
//-----------/
|
56 |
//- Methods -/
|
57 |
//-----------/
|
58 |
|
59 |
/**
|
60 |
* Returns the value of field 'code'.
|
61 |
*
|
62 |
* @return the value of field 'code'.
|
63 |
*/
|
64 |
public java.lang.String getCode()
|
65 |
{ |
66 |
return this._code; |
67 |
} //-- java.lang.String getCode()
|
68 |
|
69 |
/**
|
70 |
* Returns the value of field 'content'. The field 'content'
|
71 |
* has the following description: internal content storage
|
72 |
*
|
73 |
* @return the value of field 'content'.
|
74 |
*/
|
75 |
public java.lang.String getContent()
|
76 |
{ |
77 |
return this._content; |
78 |
} //-- java.lang.String getContent()
|
79 |
|
80 |
/**
|
81 |
* Returns the value of field 'locator'.
|
82 |
*
|
83 |
* @return the value of field 'locator'.
|
84 |
*/
|
85 |
public java.lang.String getLocator()
|
86 |
{ |
87 |
return this._locator; |
88 |
} //-- java.lang.String getLocator()
|
89 |
|
90 |
/**
|
91 |
* Method isValid
|
92 |
*/
|
93 |
public boolean isValid() |
94 |
{ |
95 |
try {
|
96 |
validate(); |
97 |
} |
98 |
catch (org.exolab.castor.xml.ValidationException vex) {
|
99 |
return false; |
100 |
} |
101 |
return true; |
102 |
} //-- boolean isValid()
|
103 |
|
104 |
/**
|
105 |
* Method marshal
|
106 |
*
|
107 |
* @param out
|
108 |
*/
|
109 |
public void marshal(java.io.Writer out) |
110 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
111 |
{ |
112 |
|
113 |
Marshaller.marshal(this, out);
|
114 |
} //-- void marshal(java.io.Writer)
|
115 |
|
116 |
/**
|
117 |
* Method marshal
|
118 |
*
|
119 |
* @param handler
|
120 |
*/
|
121 |
public void marshal(org.xml.sax.ContentHandler handler) |
122 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
123 |
{ |
124 |
|
125 |
Marshaller.marshal(this, handler);
|
126 |
} //-- void marshal(org.xml.sax.ContentHandler)
|
127 |
|
128 |
/**
|
129 |
* Sets the value of field 'code'.
|
130 |
*
|
131 |
* @param code the value of field 'code'.
|
132 |
*/
|
133 |
public void setCode(java.lang.String code) |
134 |
{ |
135 |
this._code = code;
|
136 |
} //-- void setCode(java.lang.String)
|
137 |
|
138 |
/**
|
139 |
* Sets the value of field 'content'. The field 'content' has
|
140 |
* the following description: internal content storage
|
141 |
*
|
142 |
* @param content the value of field 'content'.
|
143 |
*/
|
144 |
public void setContent(java.lang.String content) |
145 |
{ |
146 |
this._content = content;
|
147 |
} //-- void setContent(java.lang.String)
|
148 |
|
149 |
/**
|
150 |
* Sets the value of field 'locator'.
|
151 |
*
|
152 |
* @param locator the value of field 'locator'.
|
153 |
*/
|
154 |
public void setLocator(java.lang.String locator) |
155 |
{ |
156 |
this._locator = locator;
|
157 |
} //-- void setLocator(java.lang.String)
|
158 |
|
159 |
/**
|
160 |
* Method unmarshal
|
161 |
*
|
162 |
* @param reader
|
163 |
*/
|
164 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
165 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
|
166 |
{ |
167 |
return (com.iver.wmsclient.wms_1_3_0.exception.ServiceExceptionType) Unmarshaller.unmarshal(com.iver.wmsclient.wms_1_3_0.exception.ServiceExceptionType.class, reader);
|
168 |
} //-- java.lang.Object unmarshal(java.io.Reader)
|
169 |
|
170 |
/**
|
171 |
* Method validate
|
172 |
*/
|
173 |
public void validate() |
174 |
throws org.exolab.castor.xml.ValidationException
|
175 |
{ |
176 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
|
177 |
validator.validate(this);
|
178 |
} //-- void validate()
|
179 |
|
180 |
} |