svn-gvsig-desktop / trunk / org.gvsig.desktop / org.gvsig.desktop.framework / org.gvsig.andami / src / main / java / org / gvsig / andami / persistence / generate / ToolBarsDescriptor.java @ 40596
History | View | Annotate | Download (5.68 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: ToolBarsDescriptor.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 ToolBarsDescriptor.
|
40 |
*
|
41 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $
|
42 |
*/
|
43 |
public class ToolBarsDescriptor 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 ToolBarsDescriptor() {
|
76 |
super();
|
77 |
xmlName = "tool-bars";
|
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 |
//-- _toolBarList
|
89 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.ToolBar.class, "_toolBarList", "tool-bar", 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 |
ToolBars target = (ToolBars) object; |
95 |
return target.getToolBar();
|
96 |
} |
97 |
public void setValue( java.lang.Object object, java.lang.Object value) |
98 |
throws IllegalStateException, IllegalArgumentException |
99 |
{ |
100 |
try {
|
101 |
ToolBars target = (ToolBars) object; |
102 |
target.addToolBar( (org.gvsig.andami.persistence.generate.ToolBar) 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.ToolBar(); |
110 |
} |
111 |
} ); |
112 |
desc.setHandler(handler); |
113 |
desc.setRequired(true);
|
114 |
desc.setMultivalued(true);
|
115 |
addFieldDescriptor(desc); |
116 |
|
117 |
//-- validation code for: _toolBarList
|
118 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
119 |
fieldValidator.setMinOccurs(1);
|
120 |
{ //-- local scope
|
121 |
} |
122 |
desc.setValidator(fieldValidator); |
123 |
} //-- com.iver.andami.persistence.generate.ToolBarsDescriptor()
|
124 |
|
125 |
|
126 |
//-----------/
|
127 |
//- Methods -/
|
128 |
//-----------/
|
129 |
|
130 |
/**
|
131 |
* Method getAccessMode
|
132 |
*/
|
133 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
134 |
{ |
135 |
return null; |
136 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
137 |
|
138 |
/**
|
139 |
* Method getExtends
|
140 |
*/
|
141 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
142 |
{ |
143 |
return null; |
144 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
145 |
|
146 |
/**
|
147 |
* Method getIdentity
|
148 |
*/
|
149 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
150 |
{ |
151 |
return identity;
|
152 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
153 |
|
154 |
/**
|
155 |
* Method getJavaClass
|
156 |
*/
|
157 |
public java.lang.Class getJavaClass()
|
158 |
{ |
159 |
return org.gvsig.andami.persistence.generate.ToolBars.class;
|
160 |
} //-- java.lang.Class getJavaClass()
|
161 |
|
162 |
/**
|
163 |
* Method getNameSpacePrefix
|
164 |
*/
|
165 |
public java.lang.String getNameSpacePrefix()
|
166 |
{ |
167 |
return nsPrefix;
|
168 |
} //-- java.lang.String getNameSpacePrefix()
|
169 |
|
170 |
/**
|
171 |
* Method getNameSpaceURI
|
172 |
*/
|
173 |
public java.lang.String getNameSpaceURI()
|
174 |
{ |
175 |
return nsURI;
|
176 |
} //-- java.lang.String getNameSpaceURI()
|
177 |
|
178 |
/**
|
179 |
* Method getValidator
|
180 |
*/
|
181 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
182 |
{ |
183 |
return this; |
184 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
185 |
|
186 |
/**
|
187 |
* Method getXMLName
|
188 |
*/
|
189 |
public java.lang.String getXMLName()
|
190 |
{ |
191 |
return xmlName;
|
192 |
} //-- java.lang.String getXMLName()
|
193 |
|
194 |
} |