Statistics
| Revision:

root / trunk / libraries / libWMSv0 / src / com / iver / wmsclient / wms_1_1_0 / exception / ServiceException.java @ 188

History | View | Annotate | Download (3.78 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: ServiceException.java 188 2004-10-14 08:09:25Z fernando $
6
 */
7

    
8
package com.iver.wmsclient.wms_1_1_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 ServiceException.
19
 * 
20
 * @version $Revision: 188 $ $Date: 2004-10-14 10:09:25 +0200 (Thu, 14 Oct 2004) $
21
 */
22
public class ServiceException implements java.io.Serializable {
23

    
24

    
25
      //--------------------------/
26
     //- Class/Member Variables -/
27
    //--------------------------/
28

    
29
    /**
30
     * Field _code
31
     */
32
    private java.lang.String _code;
33

    
34
    /**
35
     * internal content storage
36
     */
37
    private java.lang.String _content = "";
38

    
39

    
40
      //----------------/
41
     //- Constructors -/
42
    //----------------/
43

    
44
    public ServiceException() {
45
        super();
46
        setContent("");
47
    } //-- com.iver.wmsclient.wms_1_1_0.exception.ServiceException()
48

    
49

    
50
      //-----------/
51
     //- Methods -/
52
    //-----------/
53

    
54
    /**
55
     * Returns the value of field 'code'.
56
     * 
57
     * @return the value of field 'code'.
58
     */
59
    public java.lang.String getCode()
60
    {
61
        return this._code;
62
    } //-- java.lang.String getCode() 
63

    
64
    /**
65
     * Returns the value of field 'content'. The field 'content'
66
     * has the following description: internal content storage
67
     * 
68
     * @return the value of field 'content'.
69
     */
70
    public java.lang.String getContent()
71
    {
72
        return this._content;
73
    } //-- java.lang.String getContent() 
74

    
75
    /**
76
     * Method isValid
77
     */
78
    public boolean isValid()
79
    {
80
        try {
81
            validate();
82
        }
83
        catch (org.exolab.castor.xml.ValidationException vex) {
84
            return false;
85
        }
86
        return true;
87
    } //-- boolean isValid() 
88

    
89
    /**
90
     * Method marshal
91
     * 
92
     * @param out
93
     */
94
    public void marshal(java.io.Writer out)
95
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
96
    {
97
        
98
        Marshaller.marshal(this, out);
99
    } //-- void marshal(java.io.Writer) 
100

    
101
    /**
102
     * Method marshal
103
     * 
104
     * @param handler
105
     */
106
    public void marshal(org.xml.sax.ContentHandler handler)
107
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
108
    {
109
        
110
        Marshaller.marshal(this, handler);
111
    } //-- void marshal(org.xml.sax.ContentHandler) 
112

    
113
    /**
114
     * Sets the value of field 'code'.
115
     * 
116
     * @param code the value of field 'code'.
117
     */
118
    public void setCode(java.lang.String code)
119
    {
120
        this._code = code;
121
    } //-- void setCode(java.lang.String) 
122

    
123
    /**
124
     * Sets the value of field 'content'. The field 'content' has
125
     * the following description: internal content storage
126
     * 
127
     * @param content the value of field 'content'.
128
     */
129
    public void setContent(java.lang.String content)
130
    {
131
        this._content = content;
132
    } //-- void setContent(java.lang.String) 
133

    
134
    /**
135
     * Method unmarshal
136
     * 
137
     * @param reader
138
     */
139
    public static java.lang.Object unmarshal(java.io.Reader reader)
140
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
141
    {
142
        return (com.iver.wmsclient.wms_1_1_0.exception.ServiceException) Unmarshaller.unmarshal(com.iver.wmsclient.wms_1_1_0.exception.ServiceException.class, reader);
143
    } //-- java.lang.Object unmarshal(java.io.Reader) 
144

    
145
    /**
146
     * Method validate
147
     */
148
    public void validate()
149
        throws org.exolab.castor.xml.ValidationException
150
    {
151
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
152
        validator.validate(this);
153
    } //-- void validate() 
154

    
155
}