Statistics
| Revision:

root / branches / v2_0_0_prep / frameworks / _fwAndami / src / org / gvsig / andami / persistence / generate / ToolBarsDescriptor.java @ 29593

History | View | Annotate | Download (5.82 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: ToolBarsDescriptor.java 29593 2009-06-29 15:54:31Z jpiera $
6
 */
7

    
8
/* gvSIG. Sistema de Informaci?n Geogr?fica de la Generalitat Valenciana
9
 *
10
 * Copyright (C) 2004 IVER T.I. and Generalitat Valenciana.
11
 *
12
 * This program is free software; you can redistribute it and/or
13
 * modify it under the terms of the GNU General Public License
14
 * as published by the Free Software Foundation; either version 2
15
 * of the License, or (at your option) any later version.
16
 *
17
 * This program is distributed in the hope that it will be useful,
18
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
19
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
20
 * GNU General Public License for more details.
21
 *
22
 * You should have received a copy of the GNU General Public License
23
 * along with this program; if not, write to the Free Software
24
 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307,USA.
25
 *
26
 * For more information, contact:
27
 *
28
 *  Generalitat Valenciana
29
 *   Conselleria d'Infraestructures i Transport
30
 *   Av. Blasco Ib??ez, 50
31
 *   46010 VALENCIA
32
 *   SPAIN
33
 *
34
 *      +34 963862235
35
 *   gvsig@gva.es
36
 *      www.gvsig.gva.es
37
 *
38
 *    or
39
 *
40
 *   IVER T.I. S.A
41
 *   Salamanca 50
42
 *   46005 Valencia
43
 *   Spain
44
 *
45
 *   +34 963163400
46
 *   dac@iver.es
47
 */
48
package org.gvsig.andami.persistence.generate;
49

    
50
  //---------------------------------/
51
 //- Imported classes and packages -/
52
//---------------------------------/
53

    
54

    
55
/**
56
 * Class ToolBarsDescriptor.
57
 * 
58
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (Mon, 29 Jun 2009) $
59
 */
60
public class ToolBarsDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
61

    
62

    
63
      //--------------------------/
64
     //- Class/Member Variables -/
65
    //--------------------------/
66

    
67
    /**
68
     * Field nsPrefix
69
     */
70
    private java.lang.String nsPrefix;
71

    
72
    /**
73
     * Field nsURI
74
     */
75
    private java.lang.String nsURI;
76

    
77
    /**
78
     * Field xmlName
79
     */
80
    private java.lang.String xmlName;
81

    
82
    /**
83
     * Field identity
84
     */
85
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
86

    
87

    
88
      //----------------/
89
     //- Constructors -/
90
    //----------------/
91

    
92
    public ToolBarsDescriptor() {
93
        super();
94
        xmlName = "tool-bars";
95
        
96
        //-- set grouping compositor
97
        setCompositorAsSequence();
98
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
99
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
100
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
101
        //-- initialize attribute descriptors
102
        
103
        //-- initialize element descriptors
104
        
105
        //-- _toolBarList
106
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.ToolBar.class, "_toolBarList", "tool-bar", org.exolab.castor.xml.NodeType.Element);
107
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
108
            public java.lang.Object getValue( java.lang.Object object ) 
109
                throws IllegalStateException
110
            {
111
                ToolBars target = (ToolBars) object;
112
                return target.getToolBar();
113
            }
114
            public void setValue( java.lang.Object object, java.lang.Object value) 
115
                throws IllegalStateException, IllegalArgumentException
116
            {
117
                try {
118
                    ToolBars target = (ToolBars) object;
119
                    target.addToolBar( (org.gvsig.andami.persistence.generate.ToolBar) value);
120
                }
121
                catch (java.lang.Exception ex) {
122
                    throw new IllegalStateException(ex.toString());
123
                }
124
            }
125
            public java.lang.Object newInstance( java.lang.Object parent ) {
126
                return new org.gvsig.andami.persistence.generate.ToolBar();
127
            }
128
        } );
129
        desc.setHandler(handler);
130
        desc.setRequired(true);
131
        desc.setMultivalued(true);
132
        addFieldDescriptor(desc);
133
        
134
        //-- validation code for: _toolBarList
135
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
136
        fieldValidator.setMinOccurs(1);
137
        { //-- local scope
138
        }
139
        desc.setValidator(fieldValidator);
140
    } //-- com.iver.andami.persistence.generate.ToolBarsDescriptor()
141

    
142

    
143
      //-----------/
144
     //- Methods -/
145
    //-----------/
146

    
147
    /**
148
     * Method getAccessMode
149
     */
150
    public org.exolab.castor.mapping.AccessMode getAccessMode()
151
    {
152
        return null;
153
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
154

    
155
    /**
156
     * Method getExtends
157
     */
158
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
159
    {
160
        return null;
161
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
162

    
163
    /**
164
     * Method getIdentity
165
     */
166
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
167
    {
168
        return identity;
169
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
170

    
171
    /**
172
     * Method getJavaClass
173
     */
174
    public java.lang.Class getJavaClass()
175
    {
176
        return org.gvsig.andami.persistence.generate.ToolBars.class;
177
    } //-- java.lang.Class getJavaClass() 
178

    
179
    /**
180
     * Method getNameSpacePrefix
181
     */
182
    public java.lang.String getNameSpacePrefix()
183
    {
184
        return nsPrefix;
185
    } //-- java.lang.String getNameSpacePrefix() 
186

    
187
    /**
188
     * Method getNameSpaceURI
189
     */
190
    public java.lang.String getNameSpaceURI()
191
    {
192
        return nsURI;
193
    } //-- java.lang.String getNameSpaceURI() 
194

    
195
    /**
196
     * Method getValidator
197
     */
198
    public org.exolab.castor.xml.TypeValidator getValidator()
199
    {
200
        return this;
201
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
202

    
203
    /**
204
     * Method getXMLName
205
     */
206
    public java.lang.String getXMLName()
207
    {
208
        return xmlName;
209
    } //-- java.lang.String getXMLName() 
210

    
211
}