Statistics
| Revision:

svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / plugins / config / generate / ResourceBundle.java @ 43328

History | View | Annotate | Download (4.29 KB)

1 40559 jjdelcerro
/**
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 40435 jjdelcerro
/*
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: ResourceBundle.java 29593 2009-06-29 15:54:31Z jpiera $
29
 */
30
31
package org.gvsig.andami.plugins.config.generate;
32
33
  //---------------------------------/
34
 //- Imported classes and packages -/
35
//---------------------------------/
36
37
import java.io.IOException;
38
import java.io.Reader;
39
import java.io.Serializable;
40
import java.io.Writer;
41
import org.exolab.castor.xml.MarshalException;
42
import org.exolab.castor.xml.Marshaller;
43
import org.exolab.castor.xml.Unmarshaller;
44
import org.exolab.castor.xml.ValidationException;
45
import org.xml.sax.ContentHandler;
46
47
/**
48
 * Class ResourceBundle.
49
 *
50
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
51
 */
52
public class ResourceBundle implements java.io.Serializable {
53
54
55
      //--------------------------/
56
     //- Class/Member Variables -/
57
    //--------------------------/
58
59
    /**
60
     * Field _name
61
     */
62
    private java.lang.String _name;
63
64
65
      //----------------/
66
     //- Constructors -/
67
    //----------------/
68
69
    public ResourceBundle() {
70
        super();
71
    } //-- com.iver.andami.plugins.config.generate.ResourceBundle()
72
73
74
      //-----------/
75
     //- Methods -/
76
    //-----------/
77
78
    /**
79
     * Returns the value of field 'name'.
80
     *
81
     * @return the value of field 'name'.
82
     */
83
    public java.lang.String getName()
84
    {
85
        return this._name;
86
    } //-- java.lang.String getName()
87
88
    /**
89
     * Method isValid
90
     */
91
    public boolean isValid()
92
    {
93
        try {
94
            validate();
95
        }
96
        catch (org.exolab.castor.xml.ValidationException vex) {
97
            return false;
98
        }
99
        return true;
100
    } //-- boolean isValid()
101
102
    /**
103
     * Method marshal
104
     *
105
     * @param out
106
     */
107
    public void marshal(java.io.Writer out)
108
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
109
    {
110
111
        Marshaller.marshal(this, out);
112
    } //-- void marshal(java.io.Writer)
113
114
    /**
115
     * Method marshal
116
     *
117
     * @param handler
118
     */
119
    public void marshal(org.xml.sax.ContentHandler handler)
120
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
121
    {
122
123
        Marshaller.marshal(this, handler);
124
    } //-- void marshal(org.xml.sax.ContentHandler)
125
126
    /**
127
     * Sets the value of field 'name'.
128
     *
129
     * @param name the value of field 'name'.
130
     */
131
    public void setName(java.lang.String name)
132
    {
133
        this._name = name;
134
    } //-- void setName(java.lang.String)
135
136
    /**
137
     * Method unmarshal
138
     *
139
     * @param reader
140
     */
141
    public static java.lang.Object unmarshal(java.io.Reader reader)
142
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
143
    {
144
        return (org.gvsig.andami.plugins.config.generate.ResourceBundle) Unmarshaller.unmarshal(org.gvsig.andami.plugins.config.generate.ResourceBundle.class, reader);
145
    } //-- java.lang.Object unmarshal(java.io.Reader)
146
147
    /**
148
     * Method validate
149
     */
150
    public void validate()
151
        throws org.exolab.castor.xml.ValidationException
152
    {
153
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
154
        validator.validate(this);
155
    } //-- void validate()
156
157
}