Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.library / org.gvsig.utils / src / main / java / org / gvsig / utils / xmlEntity / generate / Property.java @ 40561

History | View | Annotate | Download (5.7 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: Property.java 29631 2009-06-29 16:56:19Z jpiera $
29
 */
30

    
31
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
32
 *
33
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
34
 *
35
 * This program is free software; you can redistribute it and/or
36
 * modify it under the terms of the GNU General Public License
37
 * as published by the Free Software Foundation; either version 2
38
 * of the License, or (at your option) any later version.
39
 *
40
 * This program is distributed in the hope that it will be useful,
41
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
42
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
43
 * GNU General Public License for more details.
44
 *
45
 * You should have received a copy of the GNU General Public License
46
 * along with this program; if not, write to the Free Software
47
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
48
 *
49
 * For more information, contact:
50
 *
51
 *  Generalitat Valenciana
52
 *   Conselleria d'Infraestructures i Transport
53
 *   Av. Blasco Ib??ez, 50
54
 *   46010 VALENCIA
55
 *   SPAIN
56
 *
57
 *      +34 963862235
58
 *   gvsig@gva.es
59
 *      www.gvsig.gva.es
60
 *
61
 *    or
62
 *
63
 *   IVER T.I. S.A
64
 *   Salamanca 50
65
 *   46005 Valencia
66
 *   Spain
67
 *
68
 *   +34 963163400
69
 *   dac@iver.es
70
 */
71
package org.gvsig.utils.xmlEntity.generate;
72

    
73
  //---------------------------------/
74
 //- Imported classes and packages -/
75
//---------------------------------/
76

    
77
import org.exolab.castor.xml.Marshaller;
78
import org.exolab.castor.xml.Unmarshaller;
79

    
80
/**
81
 * Class Property.
82
 * 
83
 * @version $Revision: 29631 $ $Date: 2009-06-29 18:56:19 +0200 (lun, 29 jun 2009) $
84
 */
85
public class Property implements java.io.Serializable {
86

    
87

    
88
      //--------------------------/
89
     //- Class/Member Variables -/
90
    //--------------------------/
91

    
92
    /**
93
     * Field _key
94
     */
95
    private java.lang.String _key;
96

    
97
    /**
98
     * Field _value
99
     */
100
    private java.lang.String _value;
101

    
102

    
103
      //----------------/
104
     //- Constructors -/
105
    //----------------/
106

    
107
    public Property() {
108
        super();
109
    } //-- com.iver.utiles.xmlEntity.generate.Property()
110

    
111

    
112
      //-----------/
113
     //- Methods -/
114
    //-----------/
115

    
116
    /**
117
     * Returns the value of field 'key'.
118
     * 
119
     * @return the value of field 'key'.
120
     */
121
    public java.lang.String getKey()
122
    {
123
        return this._key;
124
    } //-- java.lang.String getKey() 
125

    
126
    /**
127
     * Returns the value of field 'value'.
128
     * 
129
     * @return the value of field 'value'.
130
     */
131
    public java.lang.String getValue()
132
    {
133
        return this._value;
134
    } //-- java.lang.String getValue() 
135

    
136
    /**
137
     * Method isValid
138
     */
139
    public boolean isValid()
140
    {
141
        try {
142
            validate();
143
        }
144
        catch (org.exolab.castor.xml.ValidationException vex) {
145
            return false;
146
        }
147
        return true;
148
    } //-- boolean isValid() 
149

    
150
    /**
151
     * Method marshal
152
     * 
153
     * @param out
154
     */
155
    public void marshal(java.io.Writer out)
156
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
157
    {
158
        
159
        Marshaller.marshal(this, out);
160
    } //-- void marshal(java.io.Writer) 
161

    
162
    /**
163
     * Method marshal
164
     * 
165
     * @param handler
166
     */
167
    public void marshal(org.xml.sax.ContentHandler handler)
168
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
169
    {
170
        
171
        Marshaller.marshal(this, handler);
172
    } //-- void marshal(org.xml.sax.ContentHandler) 
173

    
174
    /**
175
     * Sets the value of field 'key'.
176
     * 
177
     * @param key the value of field 'key'.
178
     */
179
    public void setKey(java.lang.String key)
180
    {
181
        this._key = key;
182
    } //-- void setKey(java.lang.String) 
183

    
184
    /**
185
     * Sets the value of field 'value'.
186
     * 
187
     * @param value the value of field 'value'.
188
     */
189
    public void setValue(java.lang.String value)
190
    {
191
        this._value = value;
192
    } //-- void setValue(java.lang.String) 
193

    
194
    /**
195
     * Method unmarshal
196
     * 
197
     * @param reader
198
     */
199
    public static java.lang.Object unmarshal(java.io.Reader reader)
200
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
201
    {
202
        return (org.gvsig.utils.xmlEntity.generate.Property) Unmarshaller.unmarshal(org.gvsig.utils.xmlEntity.generate.Property.class, reader);
203
    } //-- java.lang.Object unmarshal(java.io.Reader) 
204

    
205
    /**
206
     * Method validate
207
     */
208
    public void validate()
209
        throws org.exolab.castor.xml.ValidationException
210
    {
211
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
212
        validator.validate(this);
213
    } //-- void validate() 
214

    
215
}