Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / persistence / generate / Window.java @ 40596

History | View | Annotate | Download (4.55 KB)

1
/**
2
 * gvSIG. Desktop Geographic Information System.
3
 *
4
 * Copyright (C) 2007-2013 gvSIG Association.
5
 *
6
 * This program is free software; you can redistribute it and/or
7
 * modify it under the terms of the GNU General Public License
8
 * as published by the Free Software Foundation; either version 3
9
 * of the License, or (at your option) any later version.
10
 *
11
 * This program is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program; if not, write to the Free Software
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
19
 * MA  02110-1301, USA.
20
 *
21
 * For any additional information, do not hesitate to contact us
22
 * at info AT gvsig.com, or visit our website www.gvsig.com.
23
 */
24
/*
25
 * This class was automatically generated with 
26
 * <a href="http://www.castor.org">Castor 0.9.5.3</a>, using an XML
27
 * Schema.
28
 * $Id: Window.java 29593 2009-06-29 15:54:31Z jpiera $
29
 */
30

    
31
package org.gvsig.andami.persistence.generate;
32

    
33
  //---------------------------------/
34
 //- Imported classes and packages -/
35
//---------------------------------/
36

    
37
import org.exolab.castor.xml.Marshaller;
38
import org.exolab.castor.xml.Unmarshaller;
39

    
40
/**
41
 * Class Window.
42
 * 
43
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
44
 */
45
public class Window implements java.io.Serializable {
46

    
47

    
48
      //--------------------------/
49
     //- Class/Member Variables -/
50
    //--------------------------/
51

    
52
    /**
53
     * Field _rectangle
54
     */
55
    private java.lang.String _rectangle;
56

    
57
    /**
58
     * Field _id
59
     */
60
    private java.lang.String _id;
61

    
62

    
63
      //----------------/
64
     //- Constructors -/
65
    //----------------/
66

    
67
    public Window() {
68
        super();
69
    } //-- com.iver.andami.persistence.generate.Window()
70

    
71

    
72
      //-----------/
73
     //- Methods -/
74
    //-----------/
75

    
76
    /**
77
     * Returns the value of field 'id'.
78
     * 
79
     * @return the value of field 'id'.
80
     */
81
    public java.lang.String getId()
82
    {
83
        return this._id;
84
    } //-- java.lang.String getId() 
85

    
86
    /**
87
     * Returns the value of field 'rectangle'.
88
     * 
89
     * @return the value of field 'rectangle'.
90
     */
91
    public java.lang.String getRectangle()
92
    {
93
        return this._rectangle;
94
    } //-- java.lang.String getRectangle() 
95

    
96
    /**
97
     * Method isValid
98
     */
99
    public boolean isValid()
100
    {
101
        try {
102
            validate();
103
        }
104
        catch (org.exolab.castor.xml.ValidationException vex) {
105
            return false;
106
        }
107
        return true;
108
    } //-- boolean isValid() 
109

    
110
    /**
111
     * Method marshal
112
     * 
113
     * @param out
114
     */
115
    public void marshal(java.io.Writer out)
116
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
117
    {
118
        
119
        Marshaller.marshal(this, out);
120
    } //-- void marshal(java.io.Writer) 
121

    
122
    /**
123
     * Method marshal
124
     * 
125
     * @param handler
126
     */
127
    public void marshal(org.xml.sax.ContentHandler handler)
128
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
129
    {
130
        
131
        Marshaller.marshal(this, handler);
132
    } //-- void marshal(org.xml.sax.ContentHandler) 
133

    
134
    /**
135
     * Sets the value of field 'id'.
136
     * 
137
     * @param id the value of field 'id'.
138
     */
139
    public void setId(java.lang.String id)
140
    {
141
        this._id = id;
142
    } //-- void setId(java.lang.String) 
143

    
144
    /**
145
     * Sets the value of field 'rectangle'.
146
     * 
147
     * @param rectangle the value of field 'rectangle'.
148
     */
149
    public void setRectangle(java.lang.String rectangle)
150
    {
151
        this._rectangle = rectangle;
152
    } //-- void setRectangle(java.lang.String) 
153

    
154
    /**
155
     * Method unmarshal
156
     * 
157
     * @param reader
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 (org.gvsig.andami.persistence.generate.Window) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.Window.class, reader);
163
    } //-- java.lang.Object unmarshal(java.io.Reader) 
164

    
165
    /**
166
     * Method validate
167
     */
168
    public void validate()
169
        throws org.exolab.castor.xml.ValidationException
170
    {
171
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
172
        validator.validate(this);
173
    } //-- void validate() 
174

    
175
}