Statistics
| Revision:

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

History | View | Annotate | Download (7.29 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: PluginsStatusDescriptor.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

    
38
/**
39
 * Class PluginsStatusDescriptor.
40
 * 
41
 * @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
42
 */
43
public class PluginsStatusDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
44

    
45

    
46
      //--------------------------/
47
     //- Class/Member Variables -/
48
    //--------------------------/
49

    
50
    /**
51
     * Field nsPrefix
52
     */
53
    private java.lang.String nsPrefix;
54

    
55
    /**
56
     * Field nsURI
57
     */
58
    private java.lang.String nsURI;
59

    
60
    /**
61
     * Field xmlName
62
     */
63
    private java.lang.String xmlName;
64

    
65
    /**
66
     * Field identity
67
     */
68
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
69

    
70

    
71
      //----------------/
72
     //- Constructors -/
73
    //----------------/
74

    
75
    public PluginsStatusDescriptor() {
76
        super();
77
        xmlName = "plugins-status";
78
        
79
        //-- set grouping compositor
80
        setCompositorAsSequence();
81
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
82
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
83
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
84
        //-- initialize attribute descriptors
85
        
86
        //-- initialize element descriptors
87
        
88
        //-- _plugin
89
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.Plugin.class, "_plugin", "plugin", org.exolab.castor.xml.NodeType.Element);
90
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
91
            public java.lang.Object getValue( java.lang.Object object ) 
92
                throws IllegalStateException
93
            {
94
                PluginsStatus target = (PluginsStatus) object;
95
                return target.getPlugin();
96
            }
97
            public void setValue( java.lang.Object object, java.lang.Object value) 
98
                throws IllegalStateException, IllegalArgumentException
99
            {
100
                try {
101
                    PluginsStatus target = (PluginsStatus) object;
102
                    target.setPlugin( (org.gvsig.andami.persistence.generate.Plugin) value);
103
                }
104
                catch (java.lang.Exception ex) {
105
                    throw new IllegalStateException(ex.toString());
106
                }
107
            }
108
            public java.lang.Object newInstance( java.lang.Object parent ) {
109
                return new org.gvsig.andami.persistence.generate.Plugin();
110
            }
111
        } );
112
        desc.setHandler(handler);
113
        desc.setRequired(true);
114
        desc.setMultivalued(false);
115
        addFieldDescriptor(desc);
116
        
117
        //-- validation code for: _plugin
118
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
119
        fieldValidator.setMinOccurs(1);
120
        { //-- local scope
121
        }
122
        desc.setValidator(fieldValidator);
123
        //-- _toolBars
124
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.ToolBars.class, "_toolBars", "tool-bars", org.exolab.castor.xml.NodeType.Element);
125
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
126
            public java.lang.Object getValue( java.lang.Object object ) 
127
                throws IllegalStateException
128
            {
129
                PluginsStatus target = (PluginsStatus) object;
130
                return target.getToolBars();
131
            }
132
            public void setValue( java.lang.Object object, java.lang.Object value) 
133
                throws IllegalStateException, IllegalArgumentException
134
            {
135
                try {
136
                    PluginsStatus target = (PluginsStatus) object;
137
                    target.setToolBars( (org.gvsig.andami.persistence.generate.ToolBars) value);
138
                }
139
                catch (java.lang.Exception ex) {
140
                    throw new IllegalStateException(ex.toString());
141
                }
142
            }
143
            public java.lang.Object newInstance( java.lang.Object parent ) {
144
                return new org.gvsig.andami.persistence.generate.ToolBars();
145
            }
146
        } );
147
        desc.setHandler(handler);
148
        desc.setRequired(true);
149
        desc.setMultivalued(false);
150
        addFieldDescriptor(desc);
151
        
152
        //-- validation code for: _toolBars
153
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
154
        fieldValidator.setMinOccurs(1);
155
        { //-- local scope
156
        }
157
        desc.setValidator(fieldValidator);
158
    } //-- com.iver.andami.persistence.generate.PluginsStatusDescriptor()
159

    
160

    
161
      //-----------/
162
     //- Methods -/
163
    //-----------/
164

    
165
    /**
166
     * Method getAccessMode
167
     */
168
    public org.exolab.castor.mapping.AccessMode getAccessMode()
169
    {
170
        return null;
171
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
172

    
173
    /**
174
     * Method getExtends
175
     */
176
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
177
    {
178
        return null;
179
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
180

    
181
    /**
182
     * Method getIdentity
183
     */
184
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
185
    {
186
        return identity;
187
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
188

    
189
    /**
190
     * Method getJavaClass
191
     */
192
    public java.lang.Class getJavaClass()
193
    {
194
        return org.gvsig.andami.persistence.generate.PluginsStatus.class;
195
    } //-- java.lang.Class getJavaClass() 
196

    
197
    /**
198
     * Method getNameSpacePrefix
199
     */
200
    public java.lang.String getNameSpacePrefix()
201
    {
202
        return nsPrefix;
203
    } //-- java.lang.String getNameSpacePrefix() 
204

    
205
    /**
206
     * Method getNameSpaceURI
207
     */
208
    public java.lang.String getNameSpaceURI()
209
    {
210
        return nsURI;
211
    } //-- java.lang.String getNameSpaceURI() 
212

    
213
    /**
214
     * Method getValidator
215
     */
216
    public org.exolab.castor.xml.TypeValidator getValidator()
217
    {
218
        return this;
219
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
220

    
221
    /**
222
     * Method getXMLName
223
     */
224
    public java.lang.String getXMLName()
225
    {
226
        return xmlName;
227
    } //-- java.lang.String getXMLName() 
228

    
229
}