Revision 46189
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/pom.xml | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> |
|
3 |
|
|
4 |
<modelVersion>4.0.0</modelVersion> |
|
5 |
<artifactId>org.gvsig.desktop.framework</artifactId> |
|
6 |
<packaging>pom</packaging> |
|
7 |
<name>${project.artifactId}</name> |
|
8 |
<parent> |
|
9 |
<groupId>org.gvsig</groupId> |
|
10 |
<artifactId>org.gvsig.desktop</artifactId> |
|
11 |
<version>2.0.353</version> |
|
12 |
</parent> |
|
13 |
|
|
14 |
<modules> |
|
15 |
<module>org.gvsig.andami</module> |
|
16 |
<module>org.gvsig.andami.updater</module> |
|
17 |
</modules> |
|
18 |
|
|
19 |
<description>Contains the launcher and plugin framework used in gvSIG.</description> |
|
20 |
</project> |
|
21 |
|
|
0 | 22 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/test/java/org/gvsig/andami/AllTests.java | ||
---|---|---|
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 |
package org.gvsig.andami; |
|
25 |
|
|
26 |
import junit.framework.Test; |
|
27 |
import junit.framework.TestSuite; |
|
28 |
|
|
29 |
public class AllTests { |
|
30 |
|
|
31 |
public static Test suite() { |
|
32 |
TestSuite suite = new TestSuite("Test for com.iver.andami"); |
|
33 |
//$JUnit-BEGIN$ |
|
34 |
|
|
35 |
//$JUnit-END$ |
|
36 |
return suite; |
|
37 |
} |
|
38 |
|
|
39 |
} |
|
0 | 40 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/PluginsStatusDescriptor.java | ||
---|---|---|
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 |
} |
|
0 | 230 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/Property.java | ||
---|---|---|
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: Property.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 |
import org.exolab.castor.xml.Marshaller; |
|
38 |
import org.exolab.castor.xml.Unmarshaller; |
|
39 |
|
|
40 |
/** |
|
41 |
* Class Property. |
|
42 |
* |
|
43 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $ |
|
44 |
*/ |
|
45 |
public class Property implements java.io.Serializable { |
|
46 |
|
|
47 |
|
|
48 |
//--------------------------/ |
|
49 |
//- Class/Member Variables -/ |
|
50 |
//--------------------------/ |
|
51 |
|
|
52 |
/** |
|
53 |
* Field _name |
|
54 |
*/ |
|
55 |
private java.lang.String _name; |
|
56 |
|
|
57 |
/** |
|
58 |
* Field _value |
|
59 |
*/ |
|
60 |
private java.lang.String _value; |
|
61 |
|
|
62 |
|
|
63 |
//----------------/ |
|
64 |
//- Constructors -/ |
|
65 |
//----------------/ |
|
66 |
|
|
67 |
public Property() { |
|
68 |
super(); |
|
69 |
} //-- com.iver.andami.persistence.generate.Property() |
|
70 |
|
|
71 |
|
|
72 |
//-----------/ |
|
73 |
//- Methods -/ |
|
74 |
//-----------/ |
|
75 |
|
|
76 |
/** |
|
77 |
* Returns the value of field 'name'. |
|
78 |
* |
|
79 |
* @return the value of field 'name'. |
|
80 |
*/ |
|
81 |
public java.lang.String getName() |
|
82 |
{ |
|
83 |
return this._name; |
|
84 |
} //-- java.lang.String getName() |
|
85 |
|
|
86 |
/** |
|
87 |
* Returns the value of field 'value'. |
|
88 |
* |
|
89 |
* @return the value of field 'value'. |
|
90 |
*/ |
|
91 |
public java.lang.String getValue() |
|
92 |
{ |
|
93 |
return this._value; |
|
94 |
} //-- java.lang.String getValue() |
|
95 |
|
|
96 |
/** |
|
97 |
* Method isValid |
|
98 |
*/ |
|
99 |
public boolean isValid() |
|
100 |
{ |
|
101 |
try { |
|
102 |
validate(); |
|
103 |
} |
|
104 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
105 |
return false; |
|
106 |
} |
|
107 |
return true; |
|
108 |
} //-- boolean isValid() |
|
109 |
|
|
110 |
/** |
|
111 |
* Method marshal |
|
112 |
* |
|
113 |
* @param out |
|
114 |
*/ |
|
115 |
public void marshal(java.io.Writer out) |
|
116 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
117 |
{ |
|
118 |
|
|
119 |
Marshaller.marshal(this, out); |
|
120 |
} //-- void marshal(java.io.Writer) |
|
121 |
|
|
122 |
/** |
|
123 |
* Method marshal |
|
124 |
* |
|
125 |
* @param handler |
|
126 |
*/ |
|
127 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
128 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
129 |
{ |
|
130 |
|
|
131 |
Marshaller.marshal(this, handler); |
|
132 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
133 |
|
|
134 |
/** |
|
135 |
* Sets the value of field 'name'. |
|
136 |
* |
|
137 |
* @param name the value of field 'name'. |
|
138 |
*/ |
|
139 |
public void setName(java.lang.String name) |
|
140 |
{ |
|
141 |
this._name = name; |
|
142 |
} //-- void setName(java.lang.String) |
|
143 |
|
|
144 |
/** |
|
145 |
* Sets the value of field 'value'. |
|
146 |
* |
|
147 |
* @param value the value of field 'value'. |
|
148 |
*/ |
|
149 |
public void setValue(java.lang.String value) |
|
150 |
{ |
|
151 |
this._value = value; |
|
152 |
} //-- void setValue(java.lang.String) |
|
153 |
|
|
154 |
/** |
|
155 |
* Method unmarshal |
|
156 |
* |
|
157 |
* @param reader |
|
158 |
*/ |
|
159 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
|
160 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
161 |
{ |
|
162 |
return (org.gvsig.andami.persistence.generate.Property) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.Property.class, reader); |
|
163 |
} //-- java.lang.Object unmarshal(java.io.Reader) |
|
164 |
|
|
165 |
/** |
|
166 |
* Method validate |
|
167 |
*/ |
|
168 |
public void validate() |
|
169 |
throws org.exolab.castor.xml.ValidationException |
|
170 |
{ |
|
171 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
|
172 |
validator.validate(this); |
|
173 |
} //-- void validate() |
|
174 |
|
|
175 |
} |
|
0 | 176 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/ToolBarsDescriptor.java | ||
---|---|---|
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 |
} |
|
0 | 195 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/PluginsStatus.java | ||
---|---|---|
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: PluginsStatus.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 |
import org.exolab.castor.xml.Marshaller; |
|
38 |
import org.exolab.castor.xml.Unmarshaller; |
|
39 |
|
|
40 |
/** |
|
41 |
* Class PluginsStatus. |
|
42 |
* |
|
43 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $ |
|
44 |
*/ |
|
45 |
public class PluginsStatus implements java.io.Serializable { |
|
46 |
|
|
47 |
|
|
48 |
//--------------------------/ |
|
49 |
//- Class/Member Variables -/ |
|
50 |
//--------------------------/ |
|
51 |
|
|
52 |
/** |
|
53 |
* Field _plugin |
|
54 |
*/ |
|
55 |
private org.gvsig.andami.persistence.generate.Plugin _plugin; |
|
56 |
|
|
57 |
/** |
|
58 |
* Field _toolBars |
|
59 |
*/ |
|
60 |
private org.gvsig.andami.persistence.generate.ToolBars _toolBars; |
|
61 |
|
|
62 |
|
|
63 |
//----------------/ |
|
64 |
//- Constructors -/ |
|
65 |
//----------------/ |
|
66 |
|
|
67 |
public PluginsStatus() { |
|
68 |
super(); |
|
69 |
} //-- com.iver.andami.persistence.generate.PluginsStatus() |
|
70 |
|
|
71 |
|
|
72 |
//-----------/ |
|
73 |
//- Methods -/ |
|
74 |
//-----------/ |
|
75 |
|
|
76 |
/** |
|
77 |
* Returns the value of field 'plugin'. |
|
78 |
* |
|
79 |
* @return the value of field 'plugin'. |
|
80 |
*/ |
|
81 |
public org.gvsig.andami.persistence.generate.Plugin getPlugin() |
|
82 |
{ |
|
83 |
return this._plugin; |
|
84 |
} //-- com.iver.andami.persistence.generate.Plugin getPlugin() |
|
85 |
|
|
86 |
/** |
|
87 |
* Returns the value of field 'toolBars'. |
|
88 |
* |
|
89 |
* @return the value of field 'toolBars'. |
|
90 |
*/ |
|
91 |
public org.gvsig.andami.persistence.generate.ToolBars getToolBars() |
|
92 |
{ |
|
93 |
return this._toolBars; |
|
94 |
} //-- com.iver.andami.persistence.generate.ToolBars getToolBars() |
|
95 |
|
|
96 |
/** |
|
97 |
* Method isValid |
|
98 |
*/ |
|
99 |
public boolean isValid() |
|
100 |
{ |
|
101 |
try { |
|
102 |
validate(); |
|
103 |
} |
|
104 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
105 |
return false; |
|
106 |
} |
|
107 |
return true; |
|
108 |
} //-- boolean isValid() |
|
109 |
|
|
110 |
/** |
|
111 |
* Method marshal |
|
112 |
* |
|
113 |
* @param out |
|
114 |
*/ |
|
115 |
public void marshal(java.io.Writer out) |
|
116 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
117 |
{ |
|
118 |
|
|
119 |
Marshaller.marshal(this, out); |
|
120 |
} //-- void marshal(java.io.Writer) |
|
121 |
|
|
122 |
/** |
|
123 |
* Method marshal |
|
124 |
* |
|
125 |
* @param handler |
|
126 |
*/ |
|
127 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
128 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
129 |
{ |
|
130 |
|
|
131 |
Marshaller.marshal(this, handler); |
|
132 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
133 |
|
|
134 |
/** |
|
135 |
* Sets the value of field 'plugin'. |
|
136 |
* |
|
137 |
* @param plugin the value of field 'plugin'. |
|
138 |
*/ |
|
139 |
public void setPlugin(org.gvsig.andami.persistence.generate.Plugin plugin) |
|
140 |
{ |
|
141 |
this._plugin = plugin; |
|
142 |
} //-- void setPlugin(com.iver.andami.persistence.generate.Plugin) |
|
143 |
|
|
144 |
/** |
|
145 |
* Sets the value of field 'toolBars'. |
|
146 |
* |
|
147 |
* @param toolBars the value of field 'toolBars'. |
|
148 |
*/ |
|
149 |
public void setToolBars(org.gvsig.andami.persistence.generate.ToolBars toolBars) |
|
150 |
{ |
|
151 |
this._toolBars = toolBars; |
|
152 |
} //-- void setToolBars(com.iver.andami.persistence.generate.ToolBars) |
|
153 |
|
|
154 |
/** |
|
155 |
* Method unmarshal |
|
156 |
* |
|
157 |
* @param reader |
|
158 |
*/ |
|
159 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
|
160 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
161 |
{ |
|
162 |
return (org.gvsig.andami.persistence.generate.PluginsStatus) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.PluginsStatus.class, reader); |
|
163 |
} //-- java.lang.Object unmarshal(java.io.Reader) |
|
164 |
|
|
165 |
/** |
|
166 |
* Method validate |
|
167 |
*/ |
|
168 |
public void validate() |
|
169 |
throws org.exolab.castor.xml.ValidationException |
|
170 |
{ |
|
171 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
|
172 |
validator.validate(this); |
|
173 |
} //-- void validate() |
|
174 |
|
|
175 |
} |
|
0 | 176 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/ToolBars.java | ||
---|---|---|
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: ToolBars.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 |
import java.util.Vector; |
|
38 |
|
|
39 |
import org.exolab.castor.xml.Marshaller; |
|
40 |
import org.exolab.castor.xml.Unmarshaller; |
|
41 |
|
|
42 |
/** |
|
43 |
* Class ToolBars. |
|
44 |
* |
|
45 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $ |
|
46 |
*/ |
|
47 |
public class ToolBars implements java.io.Serializable { |
|
48 |
|
|
49 |
|
|
50 |
//--------------------------/ |
|
51 |
//- Class/Member Variables -/ |
|
52 |
//--------------------------/ |
|
53 |
|
|
54 |
/** |
|
55 |
* Field _toolBarList |
|
56 |
*/ |
|
57 |
private java.util.Vector _toolBarList; |
|
58 |
|
|
59 |
|
|
60 |
//----------------/ |
|
61 |
//- Constructors -/ |
|
62 |
//----------------/ |
|
63 |
|
|
64 |
public ToolBars() { |
|
65 |
super(); |
|
66 |
_toolBarList = new Vector(); |
|
67 |
} //-- com.iver.andami.persistence.generate.ToolBars() |
|
68 |
|
|
69 |
|
|
70 |
//-----------/ |
|
71 |
//- Methods -/ |
|
72 |
//-----------/ |
|
73 |
|
|
74 |
/** |
|
75 |
* Method addToolBar |
|
76 |
* |
|
77 |
* @param vToolBar |
|
78 |
*/ |
|
79 |
public void addToolBar(org.gvsig.andami.persistence.generate.ToolBar vToolBar) |
|
80 |
throws java.lang.IndexOutOfBoundsException |
|
81 |
{ |
|
82 |
_toolBarList.addElement(vToolBar); |
|
83 |
} //-- void addToolBar(com.iver.andami.persistence.generate.ToolBar) |
|
84 |
|
|
85 |
/** |
|
86 |
* Method addToolBar |
|
87 |
* |
|
88 |
* @param index |
|
89 |
* @param vToolBar |
|
90 |
*/ |
|
91 |
public void addToolBar(int index, org.gvsig.andami.persistence.generate.ToolBar vToolBar) |
|
92 |
throws java.lang.IndexOutOfBoundsException |
|
93 |
{ |
|
94 |
_toolBarList.insertElementAt(vToolBar, index); |
|
95 |
} //-- void addToolBar(int, com.iver.andami.persistence.generate.ToolBar) |
|
96 |
|
|
97 |
/** |
|
98 |
* Method enumerateToolBar |
|
99 |
*/ |
|
100 |
public java.util.Enumeration enumerateToolBar() |
|
101 |
{ |
|
102 |
return _toolBarList.elements(); |
|
103 |
} //-- java.util.Enumeration enumerateToolBar() |
|
104 |
|
|
105 |
/** |
|
106 |
* Method getToolBar |
|
107 |
* |
|
108 |
* @param index |
|
109 |
*/ |
|
110 |
public org.gvsig.andami.persistence.generate.ToolBar getToolBar(int index) |
|
111 |
throws java.lang.IndexOutOfBoundsException |
|
112 |
{ |
|
113 |
//-- check bounds for index |
|
114 |
if ((index < 0) || (index > _toolBarList.size())) { |
|
115 |
throw new IndexOutOfBoundsException(); |
|
116 |
} |
|
117 |
|
|
118 |
return (org.gvsig.andami.persistence.generate.ToolBar) _toolBarList.elementAt(index); |
|
119 |
} //-- com.iver.andami.persistence.generate.ToolBar getToolBar(int) |
|
120 |
|
|
121 |
/** |
|
122 |
* Method getToolBar |
|
123 |
*/ |
|
124 |
public org.gvsig.andami.persistence.generate.ToolBar[] getToolBar() |
|
125 |
{ |
|
126 |
int size = _toolBarList.size(); |
|
127 |
org.gvsig.andami.persistence.generate.ToolBar[] mArray = new org.gvsig.andami.persistence.generate.ToolBar[size]; |
|
128 |
for (int index = 0; index < size; index++) { |
|
129 |
mArray[index] = (org.gvsig.andami.persistence.generate.ToolBar) _toolBarList.elementAt(index); |
|
130 |
} |
|
131 |
return mArray; |
|
132 |
} //-- com.iver.andami.persistence.generate.ToolBar[] getToolBar() |
|
133 |
|
|
134 |
/** |
|
135 |
* Method getToolBarCount |
|
136 |
*/ |
|
137 |
public int getToolBarCount() |
|
138 |
{ |
|
139 |
return _toolBarList.size(); |
|
140 |
} //-- int getToolBarCount() |
|
141 |
|
|
142 |
/** |
|
143 |
* Method isValid |
|
144 |
*/ |
|
145 |
public boolean isValid() |
|
146 |
{ |
|
147 |
try { |
|
148 |
validate(); |
|
149 |
} |
|
150 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
151 |
return false; |
|
152 |
} |
|
153 |
return true; |
|
154 |
} //-- boolean isValid() |
|
155 |
|
|
156 |
/** |
|
157 |
* Method marshal |
|
158 |
* |
|
159 |
* @param out |
|
160 |
*/ |
|
161 |
public void marshal(java.io.Writer out) |
|
162 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
163 |
{ |
|
164 |
|
|
165 |
Marshaller.marshal(this, out); |
|
166 |
} //-- void marshal(java.io.Writer) |
|
167 |
|
|
168 |
/** |
|
169 |
* Method marshal |
|
170 |
* |
|
171 |
* @param handler |
|
172 |
*/ |
|
173 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
174 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
175 |
{ |
|
176 |
|
|
177 |
Marshaller.marshal(this, handler); |
|
178 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
179 |
|
|
180 |
/** |
|
181 |
* Method removeAllToolBar |
|
182 |
*/ |
|
183 |
public void removeAllToolBar() |
|
184 |
{ |
|
185 |
_toolBarList.removeAllElements(); |
|
186 |
} //-- void removeAllToolBar() |
|
187 |
|
|
188 |
/** |
|
189 |
* Method removeToolBar |
|
190 |
* |
|
191 |
* @param index |
|
192 |
*/ |
|
193 |
public org.gvsig.andami.persistence.generate.ToolBar removeToolBar(int index) |
|
194 |
{ |
|
195 |
java.lang.Object obj = _toolBarList.elementAt(index); |
|
196 |
_toolBarList.removeElementAt(index); |
|
197 |
return (org.gvsig.andami.persistence.generate.ToolBar) obj; |
|
198 |
} //-- com.iver.andami.persistence.generate.ToolBar removeToolBar(int) |
|
199 |
|
|
200 |
/** |
|
201 |
* Method setToolBar |
|
202 |
* |
|
203 |
* @param index |
|
204 |
* @param vToolBar |
|
205 |
*/ |
|
206 |
public void setToolBar(int index, org.gvsig.andami.persistence.generate.ToolBar vToolBar) |
|
207 |
throws java.lang.IndexOutOfBoundsException |
|
208 |
{ |
|
209 |
//-- check bounds for index |
|
210 |
if ((index < 0) || (index > _toolBarList.size())) { |
|
211 |
throw new IndexOutOfBoundsException(); |
|
212 |
} |
|
213 |
_toolBarList.setElementAt(vToolBar, index); |
|
214 |
} //-- void setToolBar(int, com.iver.andami.persistence.generate.ToolBar) |
|
215 |
|
|
216 |
/** |
|
217 |
* Method setToolBar |
|
218 |
* |
|
219 |
* @param toolBarArray |
|
220 |
*/ |
|
221 |
public void setToolBar(org.gvsig.andami.persistence.generate.ToolBar[] toolBarArray) |
|
222 |
{ |
|
223 |
//-- copy array |
|
224 |
_toolBarList.removeAllElements(); |
|
225 |
for (int i = 0; i < toolBarArray.length; i++) { |
|
226 |
_toolBarList.addElement(toolBarArray[i]); |
|
227 |
} |
|
228 |
} //-- void setToolBar(com.iver.andami.persistence.generate.ToolBar) |
|
229 |
|
|
230 |
/** |
|
231 |
* Method unmarshal |
|
232 |
* |
|
233 |
* @param reader |
|
234 |
*/ |
|
235 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
|
236 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
237 |
{ |
|
238 |
return (org.gvsig.andami.persistence.generate.ToolBars) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.ToolBars.class, reader); |
|
239 |
} //-- java.lang.Object unmarshal(java.io.Reader) |
|
240 |
|
|
241 |
/** |
|
242 |
* Method validate |
|
243 |
*/ |
|
244 |
public void validate() |
|
245 |
throws org.exolab.castor.xml.ValidationException |
|
246 |
{ |
|
247 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
|
248 |
validator.validate(this); |
|
249 |
} //-- void validate() |
|
250 |
|
|
251 |
} |
|
0 | 252 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/BookmarksDescriptor.java | ||
---|---|---|
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: BookmarksDescriptor.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 BookmarksDescriptor. |
|
40 |
* |
|
41 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $ |
|
42 |
*/ |
|
43 |
public class BookmarksDescriptor 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 BookmarksDescriptor() { |
|
76 |
super(); |
|
77 |
xmlName = "bookmarks"; |
|
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 |
//-- _bookmark |
|
89 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.Bookmark.class, "_bookmark", "bookmark", 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 |
Bookmarks target = (Bookmarks) object; |
|
95 |
return target.getBookmark(); |
|
96 |
} |
|
97 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
98 |
throws IllegalStateException, IllegalArgumentException |
|
99 |
{ |
|
100 |
try { |
|
101 |
Bookmarks target = (Bookmarks) object; |
|
102 |
target.setBookmark( (org.gvsig.andami.persistence.generate.Bookmark) 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.Bookmark(); |
|
110 |
} |
|
111 |
} ); |
|
112 |
desc.setHandler(handler); |
|
113 |
desc.setRequired(true); |
|
114 |
desc.setMultivalued(false); |
|
115 |
addFieldDescriptor(desc); |
|
116 |
|
|
117 |
//-- validation code for: _bookmark |
|
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.BookmarksDescriptor() |
|
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.Bookmarks.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 |
} |
|
0 | 195 |
tags/org.gvsig.desktop-2.0.353/org.gvsig.desktop.framework/org.gvsig.andami/src/main/java/org/gvsig/andami/persistence/generate/Bookmarks.java | ||
---|---|---|
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: Bookmarks.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 |
import org.exolab.castor.xml.Marshaller; |
|
38 |
import org.exolab.castor.xml.Unmarshaller; |
|
39 |
|
|
40 |
/** |
|
41 |
* Class Bookmarks. |
|
42 |
* |
|
43 |
* @version $Revision: 29593 $ $Date: 2009-06-29 17:54:31 +0200 (lun, 29 jun 2009) $ |
|
44 |
*/ |
|
45 |
public class Bookmarks implements java.io.Serializable { |
|
46 |
|
|
47 |
|
|
48 |
//--------------------------/ |
|
49 |
//- Class/Member Variables -/ |
|
50 |
//--------------------------/ |
|
51 |
|
|
52 |
/** |
|
53 |
* Field _bookmark |
|
54 |
*/ |
|
55 |
private org.gvsig.andami.persistence.generate.Bookmark _bookmark; |
|
56 |
|
|
57 |
|
|
58 |
//----------------/ |
|
59 |
//- Constructors -/ |
|
60 |
//----------------/ |
|
61 |
|
|
62 |
public Bookmarks() { |
|
63 |
super(); |
|
64 |
} //-- com.iver.andami.persistence.generate.Bookmarks() |
|
65 |
|
|
66 |
|
|
67 |
//-----------/ |
|
68 |
//- Methods -/ |
|
69 |
//-----------/ |
|
70 |
|
|
71 |
/** |
|
72 |
* Returns the value of field 'bookmark'. |
|
73 |
* |
|
74 |
* @return the value of field 'bookmark'. |
|
75 |
*/ |
|
76 |
public org.gvsig.andami.persistence.generate.Bookmark getBookmark() |
|
77 |
{ |
|
78 |
return this._bookmark; |
|
79 |
} //-- com.iver.andami.persistence.generate.Bookmark getBookmark() |
|
80 |
|
|
81 |
/** |
|
82 |
* Method isValid |
|
83 |
*/ |
|
84 |
public boolean isValid() |
|
85 |
{ |
|
86 |
try { |
|
87 |
validate(); |
|
88 |
} |
|
89 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
90 |
return false; |
|
91 |
} |
|
92 |
return true; |
|
93 |
} //-- boolean isValid() |
|
94 |
|
|
95 |
/** |
|
96 |
* Method marshal |
|
97 |
* |
|
98 |
* @param out |
|
99 |
*/ |
|
100 |
public void marshal(java.io.Writer out) |
|
101 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
102 |
{ |
|
103 |
|
|
104 |
Marshaller.marshal(this, out); |
|
105 |
} //-- void marshal(java.io.Writer) |
|
106 |
|
|
107 |
/** |
|
108 |
* Method marshal |
|
109 |
* |
|
110 |
* @param handler |
|
111 |
*/ |
|
112 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
113 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
114 |
{ |
|
115 |
|
|
116 |
Marshaller.marshal(this, handler); |
|
117 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
118 |
|
|
119 |
/** |
|
120 |
* Sets the value of field 'bookmark'. |
|
121 |
* |
|
122 |
* @param bookmark the value of field 'bookmark'. |
|
123 |
*/ |
|
124 |
public void setBookmark(org.gvsig.andami.persistence.generate.Bookmark bookmark) |
|
125 |
{ |
|
126 |
this._bookmark = bookmark; |
|
127 |
} //-- void setBookmark(com.iver.andami.persistence.generate.Bookmark) |
|
128 |
|
Also available in: Unified diff