Statistics
| Revision:

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

History | View | Annotate | Download (6.87 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: XmlCastorDescriptor.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

    
78
/**
79
 * Class XmlCastorDescriptor.
80
 * 
81
 * @version $Revision: 29631 $ $Date: 2009-06-29 18:56:19 +0200 (lun, 29 jun 2009) $
82
 */
83
public class XmlCastorDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
84

    
85

    
86
      //--------------------------/
87
     //- Class/Member Variables -/
88
    //--------------------------/
89

    
90
    /**
91
     * Field nsPrefix
92
     */
93
    private java.lang.String nsPrefix;
94

    
95
    /**
96
     * Field nsURI
97
     */
98
    private java.lang.String nsURI;
99

    
100
    /**
101
     * Field xmlName
102
     */
103
    private java.lang.String xmlName;
104

    
105
    /**
106
     * Field identity
107
     */
108
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
109

    
110

    
111
      //----------------/
112
     //- Constructors -/
113
    //----------------/
114

    
115
    public XmlCastorDescriptor() {
116
        super();
117
        nsURI = "http://www.gvsig.gva.es";
118
        xmlName = "xmlCastor";
119
        
120
        //-- set grouping compositor
121
        setCompositorAsSequence();
122
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
123
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
124
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
125
        //-- initialize attribute descriptors
126
        
127
        //-- initialize element descriptors
128
        
129
        //-- _xmlTagList
130
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.utils.xmlEntity.generate.XmlTag.class, "_xmlTagList", "xml-tag", org.exolab.castor.xml.NodeType.Element);
131
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
132
            public java.lang.Object getValue( java.lang.Object object ) 
133
                throws IllegalStateException
134
            {
135
                XmlCastor target = (XmlCastor) object;
136
                return target.getXmlTag();
137
            }
138
            public void setValue( java.lang.Object object, java.lang.Object value) 
139
                throws IllegalStateException, IllegalArgumentException
140
            {
141
                try {
142
                    XmlCastor target = (XmlCastor) object;
143
                    target.addXmlTag( (org.gvsig.utils.xmlEntity.generate.XmlTag) value);
144
                }
145
                catch (java.lang.Exception ex) {
146
                    throw new IllegalStateException(ex.toString());
147
                }
148
            }
149
            public java.lang.Object newInstance( java.lang.Object parent ) {
150
                return new org.gvsig.utils.xmlEntity.generate.XmlTag();
151
            }
152
        } );
153
        desc.setHandler(handler);
154
        desc.setMultivalued(true);
155
        addFieldDescriptor(desc);
156
        
157
        //-- validation code for: _xmlTagList
158
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
159
        fieldValidator.setMinOccurs(0);
160
        { //-- local scope
161
        }
162
        desc.setValidator(fieldValidator);
163
    } //-- com.iver.utiles.xmlEntity.generate.XmlCastorDescriptor()
164

    
165

    
166
      //-----------/
167
     //- Methods -/
168
    //-----------/
169

    
170
    /**
171
     * Method getAccessMode
172
     */
173
    public org.exolab.castor.mapping.AccessMode getAccessMode()
174
    {
175
        return null;
176
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
177

    
178
    /**
179
     * Method getExtends
180
     */
181
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
182
    {
183
        return null;
184
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
185

    
186
    /**
187
     * Method getIdentity
188
     */
189
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
190
    {
191
        return identity;
192
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
193

    
194
    /**
195
     * Method getJavaClass
196
     */
197
    public java.lang.Class getJavaClass()
198
    {
199
        return org.gvsig.utils.xmlEntity.generate.XmlCastor.class;
200
    } //-- java.lang.Class getJavaClass() 
201

    
202
    /**
203
     * Method getNameSpacePrefix
204
     */
205
    public java.lang.String getNameSpacePrefix()
206
    {
207
        return nsPrefix;
208
    } //-- java.lang.String getNameSpacePrefix() 
209

    
210
    /**
211
     * Method getNameSpaceURI
212
     */
213
    public java.lang.String getNameSpaceURI()
214
    {
215
        return nsURI;
216
    } //-- java.lang.String getNameSpaceURI() 
217

    
218
    /**
219
     * Method getValidator
220
     */
221
    public org.exolab.castor.xml.TypeValidator getValidator()
222
    {
223
        return this;
224
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
225

    
226
    /**
227
     * Method getXMLName
228
     */
229
    public java.lang.String getXMLName()
230
    {
231
        return xmlName;
232
    } //-- java.lang.String getXMLName() 
233

    
234
}