Revision 39433

View differences:

tags/v2_0_0_Build_2061/frameworks/_fwAndami/theme/andami-theme.xml
1
<AndamiProperties>
2
	<ApplicationImages>
3
		<SplashImages>
4
			<Splash
5
				path="splash.png"
6
				timer="10000"
7
				x="270" y="240"
8
				fontsize="18" color="80,170,240"
9
				version="2.0.0"/>
10
		</SplashImages>
11
		<!-- 
12
		<BackgroundImage path="gvsig-icon16x16.png"/>
13
		 -->
14
		<WallpaperType value="CENTERED"/>
15
		<Icon path="gvsig-icon16x16.png"/>
16
	</ApplicationImages>
17
	<ApplicationName value="Andami 2.0.0"/>
18
</AndamiProperties>
0 19

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/theme/README.txt
1
Use those files as a template for your own andami theme. 
2

  
3
If none provided by any plugin, this theme will be used as the default one.
tags/v2_0_0_Build_2061/frameworks/_fwAndami/schemas/andami-config.xml
1
<andami-config locale-language="es" locale-country="ES" locale-variant="es" pluginsDirectory="c:\tirar">
2
	<andami update="yes"/>
3
	<plugin name="com.iver.cit.gvsig" update="yes"/>
4
	<plugin name="com.iver.core" update="no"/>
5
	<andami-options>
6
	  <option name="CustomOption1" value="customValue1"/>
7
	  <icon-theme name="DefaultTheme" resource="iconThemes/default" basedir="iconThemes" />
8
	</andami-options>
9
</andami-config>
0 10

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/schemas/sample-plugins-persistence.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugins-status>
3
	<plugin name="gvsig" lastUpdate="237628686">
4
		<xml-entity name="config">
5
			<property name="dataDirectory" value="c:\"/>
6
			<xml-entity>
7
				<property name="dataDirectory" value="c:\"/>
8
				<property name="dataDirectory" value="c:\"/>
9
				<property name="dataDirectory" value="c:\"/>
10
			</xml-entity>
11
		</xml-entity>
12
		<bookmarks>
13
			<bookmark text="Recientes/raster">
14
				<xml-entity>
15
					<property name="projection" value="EPSG:3403"/>
16
					<property name="boundinBox" value="12,12,115,115"/>
17
				</xml-entity>
18
			</bookmark>
19
		</bookmarks>
20
		<windows>
21
			<window id="0" rectangle="0,0,150,150"/>
22
			<window id="2" rectangle="50,50,150,150"/>
23
			<window id="8" rectangle="100,100,150,150"/>
24
			<window id="12" rectangle="150,150,150,150"/>
25
		</windows>
26
	</plugin>
27
	<tool-bars>
28
		<tool-bar name="gvsig.herramientas" x-position="0" y-position="1"/>
29
		<tool-bar name="gvsig.herramientas" x-position="0" y-position="0"/>
30
	</tool-bars>
31
</plugins-status>
0 32

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/schemas/sample-config.xml
1
<?xml version="1.0" encoding="ISO-8859-1"?>
2
<plugin-config>
3
	<icon src="images/logoGVA.gif" text="gvSIG"/>
4
	<resourceBundle name="text"/>
5
	<import plugin-name="com.iver.cit.gvsig" />
6
	<labelSet class="com.iver.cit.gvsig.gui.View">
7
		<label id="1" size="100"/>
8
		<label id="2" size="230"/>
9
	</labelSet>
10
	<libraries>
11
		<library file="com.iver.cit.gvsig.jar"/>
12
		<library file="wmsclient.jar"/>	
13
	</libraries>
14
	<extensions>
15
		<extension>
16
			<class name="com.iver.cit.gvsig.ProjectExtension"/>
17
			<menu text="Archivo/nuevo_proyecto" 
18
				key="n" mnemonic="n" 
19
				tooltip="nuevo_tooltip"
20
				action-command="NUEVO" icon="images/new.png"/>
21
			<menu text="Archivo/abrir_proyecto" 
22
				key="a" mnemonic="a" 
23
				tooltip="abrir_tooltip"
24
				action-command="ABRIR" icon="images/open.png"/>
25
			<menu text="Archivo/guardar_proyecto" 
26
				key="g" mnemonic="g" 
27
				tooltip="guardar_tooltip"
28
				action-command="GUARDAR" icon="images/save.png"/>
29

  
30
			<toolBar>
31
				<tool icon="images/new.png" tooltip="nuevo_tooltip"
32
					action-command="NUEVO"/>
33
				<tool icon="images/open.png" tooltip="abrir_tooltip"
34
					action-command="ABRIR"/>
35
				<tool icon="images/save.png" tooltip="guardar_tooltip"
36
					action-command="GUARDAR"/>
37

  
38
				<!-- these will be added to the containing toolbar -->
39
				<combo-scale
40
					name="JPEG Quality"
41
					elements="15;30;60;70;80;90;100"
42
					value="80"
43
					action-command="JPEG_QUALITY" />
44

  
45
				<combo-button
46
					name="Copy/paste tools">
47
				  <combo-button-element icon="images/scissor.png" action-command="CUT" />
48
				  <combo-button-element icon="images/paste.png" action-command="PASTE" />
49
				  <combo-button-element icon="images/copy.png" action-command="COPY" />
50
				</combo-button>
51
			</toolBar>
52

  
53
		</extension>
54

  
55
		<extension>
56
			<class name="com.iver.cit.gvsig.ZoomPrev"/>
57
			<menu text="Vista/Zoom_Previo" icon="images/ZoomPrevio.png"/>
58
			<tool-bar name="Herramientas">
59
				<action-tool icon="images/ZoomPrevio.png" action-command="ZOOM_PREV" tooltip="Zoom_Previo" position="11"/>
60
			</tool-bar>
61
			
62
			<!-- these will be added to the status-bar (because they are not contained in any toolbar) -->					
63
			<combo-scale 
64
		  		name="Scale"
65
		  		label="Scale:"
66
		  		elements="1000;2000;5000;10000;25000;50000;100000;200000;500000;1000000;2000000;5000000"
67
	  			value="10000"
68
	  			action-command="CHANGE_SCALE" />
69

  
70
			<combo-button
71
				name="Tool Mode">
72
			  <combo-button-element icon="images/once.png" action-command="USE_ONCE" />
73
			  <combo-button-element icon="images/sticky-tool.png" action-command="UNTIL_CHANGED" />
74
			</combo-button>
75
		</extension>
76
		<extension processing-position="2">
77
			<class name="com.iver.cit.gvsig.ViewControls"/>
78
			<menus>
79
				<menu text="Vista/Zoom_Completo" action-command="FULL" icon="images/MapContents.png" tooltip="Zoom completo a la v?sta"/>
80
				<menu text="Vista/Zoom_Select" action-command="ZOOM_SELECT" icon="image/Select.png"/>
81
				<menu text="Vista/Encuadre" action-command="ENCUADRE" icon="images/encuadre.png"/>
82
				<menu text="Vista/Seleccion_por_tema" action-command="SELECTIONBYSHAPE"/>
83
				<menu text="Vista/configurar_localizador" action-command="CONFIG_LOCATOR"/>		
84
				<menu text="Vista/propiedades" action-command="PROPERTIES"/>
85
			</menus>
86
			<tool-bar name="Herramientas" y-position="1">
87
				<action-tool icon="images/MapContents.png" action-command="FULL" tooltip="Zoom_Completo" position="1"/>
88
				<action-tool icon="images/encuadre.png" action-command="ENCUADRE" tooltip="gestion_encuadre" last="true" position="2"/>			
89
				<selectable-tool group="grupo1" default="true" icon="images/ZoomIn.png" action-command="ZOOM_IN" tooltip="Zoom_M?s" position="3"/>
90
				<selectable-tool group="grupo1" icon="images/ZoomOut.png" action-command="ZOOM_OUT" position="4"/>
91
				<selectable-tool group="grupo1" icon="images/Pan.png" action-command="PAN"  tooltip="Encuadre" position="5"/>
92
				<selectable-tool group="grupo1" icon="images/Identify.png" action-command="INFO"  tooltip="informacion" position="6" />
93
				<selectable-tool group="grupo2" icon="images/Distancia.png" action-command="MEDICION"  tooltip="medir_distancias" position="7"/>
94
				<selectable-tool group="grupo2" icon="images/Poligono16.png" action-command="AREA"  tooltip="medir_area" position="8"/>
95
				<selectable-tool group="grupo2" default="true" icon="images/Select.png" action-command="SELPOINT"  tooltip="seleccionar_por_punto" position="9"/>
96
				<selectable-tool group="grupo2" icon="images/SelEspacial2b.png" action-command="SELRECT"  tooltip="seleccionar_por_rectangulo" position="10"/>
97
			</tool-bar>
98
		</extension>
99
		<extension>
100
			<class name="com.iver.cit.gvsig.ThemeControls"/>
101
			<menu text="Tema/propiedades"/>
102
		</extension>
103
	</extensions>
104

  
105
	<file-extensions>
106
		<file-extension description="DGNfiles" ends-with="dgn" dialog="openLayer">
107
			<class name="com.iver.cit.gvsig.DGNFileExtension"/>
108
		</file-extension>
109
		<file-extension description="Rasterfiles" ends-with="ecw,tif,tiff,jpg,png" dialog="openLayer">
110
			<class name="com.iver.cit.gvsig.RasterFileExtension"/>
111
		</file-extension>
112
	</file-extensions>
113
</plugin-config>
0 114

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/src-test/org/gvsig/andami/AllTests.java
1
package org.gvsig.andami;
2

  
3
import junit.framework.Test;
4
import junit.framework.TestSuite;
5

  
6
public class AllTests {
7

  
8
	public static Test suite() {
9
		TestSuite suite = new TestSuite("Test for com.iver.andami");
10
		//$JUnit-BEGIN$
11

  
12
		//$JUnit-END$
13
		return suite;
14
	}
15

  
16
}
0 17

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/castor.properties
1
org.exolab.castor.indent=true
0 2

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/compile-classpath.xml
1
<project name="_fwAndami.compile-classpath" basedir=".">
2
	<!-- defines the classpath to be used for batch-compilation -->
3
	<property name="andami" location="../_fwAndami"/>
4
	<property name="andamiLibs" location="${andami}/lib"/>
5
	<path id="_fwAndami.compile-classpath">
6
	    <pathelement location="${andamiLibs}/beans.jar"/>
7
   	    <pathelement location="${andamiLibs}/castor-0.9.5.3-xml.jar"/>
8
  	    <pathelement location="${andamiLibs}/gvsig-i18n.jar"/>
9
	    <pathelement location="${andamiLibs}/iver-utiles.jar"/>
10
	    <pathelement location="${andamiLibs}/javaws.jar"/>
11
	    <pathelement location="${andamiLibs}/JWizardComponent.jar"/>
12
	    <pathelement location="${andamiLibs}/log4j-1.2.8.jar"/>
13
	    <pathelement location="${andamiLibs}/tempFileManager.jar"/>
14
	    <pathelement location="${andamiLibs}/xercesImpl.jar"/>
15
	    <pathelement location="${andamiLibs}/xml-apis.jar"/>
16
	    <pathelement location="${andamiLibs}/kxml2.jar"/>
17
	    <pathelement location="${andamiLibs}/jcalendar.jar"/>
18
	</path>
19
</project>
0 20

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/src/org/gvsig/andami/persistence/generate/Window.java
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$
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
import org.exolab.castor.xml.Marshaller;
55
import org.exolab.castor.xml.Unmarshaller;
56

  
57
/**
58
 * Class Window.
59
 * 
60
 * @version $Revision$ $Date$
61
 */
62
public class Window implements java.io.Serializable {
63

  
64

  
65
      //--------------------------/
66
     //- Class/Member Variables -/
67
    //--------------------------/
68

  
69
    /**
70
     * Field _rectangle
71
     */
72
    private java.lang.String _rectangle;
73

  
74
    /**
75
     * Field _id
76
     */
77
    private java.lang.String _id;
78

  
79

  
80
      //----------------/
81
     //- Constructors -/
82
    //----------------/
83

  
84
    public Window() {
85
        super();
86
    } //-- com.iver.andami.persistence.generate.Window()
87

  
88

  
89
      //-----------/
90
     //- Methods -/
91
    //-----------/
92

  
93
    /**
94
     * Returns the value of field 'id'.
95
     * 
96
     * @return the value of field 'id'.
97
     */
98
    public java.lang.String getId()
99
    {
100
        return this._id;
101
    } //-- java.lang.String getId() 
102

  
103
    /**
104
     * Returns the value of field 'rectangle'.
105
     * 
106
     * @return the value of field 'rectangle'.
107
     */
108
    public java.lang.String getRectangle()
109
    {
110
        return this._rectangle;
111
    } //-- java.lang.String getRectangle() 
112

  
113
    /**
114
     * Method isValid
115
     */
116
    public boolean isValid()
117
    {
118
        try {
119
            validate();
120
        }
121
        catch (org.exolab.castor.xml.ValidationException vex) {
122
            return false;
123
        }
124
        return true;
125
    } //-- boolean isValid() 
126

  
127
    /**
128
     * Method marshal
129
     * 
130
     * @param out
131
     */
132
    public void marshal(java.io.Writer out)
133
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
134
    {
135
        
136
        Marshaller.marshal(this, out);
137
    } //-- void marshal(java.io.Writer) 
138

  
139
    /**
140
     * Method marshal
141
     * 
142
     * @param handler
143
     */
144
    public void marshal(org.xml.sax.ContentHandler handler)
145
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
146
    {
147
        
148
        Marshaller.marshal(this, handler);
149
    } //-- void marshal(org.xml.sax.ContentHandler) 
150

  
151
    /**
152
     * Sets the value of field 'id'.
153
     * 
154
     * @param id the value of field 'id'.
155
     */
156
    public void setId(java.lang.String id)
157
    {
158
        this._id = id;
159
    } //-- void setId(java.lang.String) 
160

  
161
    /**
162
     * Sets the value of field 'rectangle'.
163
     * 
164
     * @param rectangle the value of field 'rectangle'.
165
     */
166
    public void setRectangle(java.lang.String rectangle)
167
    {
168
        this._rectangle = rectangle;
169
    } //-- void setRectangle(java.lang.String) 
170

  
171
    /**
172
     * Method unmarshal
173
     * 
174
     * @param reader
175
     */
176
    public static java.lang.Object unmarshal(java.io.Reader reader)
177
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
178
    {
179
        return (org.gvsig.andami.persistence.generate.Window) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.Window.class, reader);
180
    } //-- java.lang.Object unmarshal(java.io.Reader) 
181

  
182
    /**
183
     * Method validate
184
     */
185
    public void validate()
186
        throws org.exolab.castor.xml.ValidationException
187
    {
188
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
189
        validator.validate(this);
190
    } //-- void validate() 
191

  
192
}
0 193

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/src/org/gvsig/andami/persistence/generate/PropertyDescriptor.java
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$
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
import org.exolab.castor.xml.validators.NameValidator;
55
import org.exolab.castor.xml.validators.StringValidator;
56

  
57
/**
58
 * Class PropertyDescriptor.
59
 * 
60
 * @version $Revision$ $Date$
61
 */
62
public class PropertyDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
63

  
64

  
65
      //--------------------------/
66
     //- Class/Member Variables -/
67
    //--------------------------/
68

  
69
    /**
70
     * Field nsPrefix
71
     */
72
    private java.lang.String nsPrefix;
73

  
74
    /**
75
     * Field nsURI
76
     */
77
    private java.lang.String nsURI;
78

  
79
    /**
80
     * Field xmlName
81
     */
82
    private java.lang.String xmlName;
83

  
84
    /**
85
     * Field identity
86
     */
87
    private org.exolab.castor.xml.XMLFieldDescriptor identity;
88

  
89

  
90
      //----------------/
91
     //- Constructors -/
92
    //----------------/
93

  
94
    public PropertyDescriptor() {
95
        super();
96
        xmlName = "property";
97
        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
98
        org.exolab.castor.xml.XMLFieldHandler              handler        = null;
99
        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
100
        //-- initialize attribute descriptors
101
        
102
        //-- _name
103
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
104
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
105
            public java.lang.Object getValue( java.lang.Object object ) 
106
                throws IllegalStateException
107
            {
108
                Property target = (Property) object;
109
                return target.getName();
110
            }
111
            public void setValue( java.lang.Object object, java.lang.Object value) 
112
                throws IllegalStateException, IllegalArgumentException
113
            {
114
                try {
115
                    Property target = (Property) object;
116
                    target.setName( (java.lang.String) value);
117
                }
118
                catch (java.lang.Exception ex) {
119
                    throw new IllegalStateException(ex.toString());
120
                }
121
            }
122
            public java.lang.Object newInstance( java.lang.Object parent ) {
123
                return new java.lang.String();
124
            }
125
        } );
126
        desc.setHandler(handler);
127
        desc.setRequired(true);
128
        addFieldDescriptor(desc);
129
        
130
        //-- validation code for: _name
131
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
132
        fieldValidator.setMinOccurs(1);
133
        { //-- local scope
134
            NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN);
135
            fieldValidator.setValidator(typeValidator);
136
        }
137
        desc.setValidator(fieldValidator);
138
        //-- _value
139
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_value", "value", org.exolab.castor.xml.NodeType.Attribute);
140
        desc.setImmutable(true);
141
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
142
            public java.lang.Object getValue( java.lang.Object object ) 
143
                throws IllegalStateException
144
            {
145
                Property target = (Property) object;
146
                return target.getValue();
147
            }
148
            public void setValue( java.lang.Object object, java.lang.Object value) 
149
                throws IllegalStateException, IllegalArgumentException
150
            {
151
                try {
152
                    Property target = (Property) object;
153
                    target.setValue( (java.lang.String) value);
154
                }
155
                catch (java.lang.Exception ex) {
156
                    throw new IllegalStateException(ex.toString());
157
                }
158
            }
159
            public java.lang.Object newInstance( java.lang.Object parent ) {
160
                return null;
161
            }
162
        } );
163
        desc.setHandler(handler);
164
        desc.setRequired(true);
165
        addFieldDescriptor(desc);
166
        
167
        //-- validation code for: _value
168
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
169
        fieldValidator.setMinOccurs(1);
170
        { //-- local scope
171
            StringValidator typeValidator = new StringValidator();
172
            typeValidator.setWhiteSpace("preserve");
173
            fieldValidator.setValidator(typeValidator);
174
        }
175
        desc.setValidator(fieldValidator);
176
        //-- initialize element descriptors
177
        
178
    } //-- com.iver.andami.persistence.generate.PropertyDescriptor()
179

  
180

  
181
      //-----------/
182
     //- Methods -/
183
    //-----------/
184

  
185
    /**
186
     * Method getAccessMode
187
     */
188
    public org.exolab.castor.mapping.AccessMode getAccessMode()
189
    {
190
        return null;
191
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
192

  
193
    /**
194
     * Method getExtends
195
     */
196
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
197
    {
198
        return null;
199
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
200

  
201
    /**
202
     * Method getIdentity
203
     */
204
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
205
    {
206
        return identity;
207
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
208

  
209
    /**
210
     * Method getJavaClass
211
     */
212
    public java.lang.Class getJavaClass()
213
    {
214
        return org.gvsig.andami.persistence.generate.Property.class;
215
    } //-- java.lang.Class getJavaClass() 
216

  
217
    /**
218
     * Method getNameSpacePrefix
219
     */
220
    public java.lang.String getNameSpacePrefix()
221
    {
222
        return nsPrefix;
223
    } //-- java.lang.String getNameSpacePrefix() 
224

  
225
    /**
226
     * Method getNameSpaceURI
227
     */
228
    public java.lang.String getNameSpaceURI()
229
    {
230
        return nsURI;
231
    } //-- java.lang.String getNameSpaceURI() 
232

  
233
    /**
234
     * Method getValidator
235
     */
236
    public org.exolab.castor.xml.TypeValidator getValidator()
237
    {
238
        return this;
239
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
240

  
241
    /**
242
     * Method getXMLName
243
     */
244
    public java.lang.String getXMLName()
245
    {
246
        return xmlName;
247
    } //-- java.lang.String getXMLName() 
248

  
249
}
0 250

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/src/org/gvsig/andami/persistence/generate/PluginsStatusDescriptor.java
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$
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 PluginsStatusDescriptor.
57
 * 
58
 * @version $Revision$ $Date$
59
 */
60
public class PluginsStatusDescriptor 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 PluginsStatusDescriptor() {
93
        super();
94
        xmlName = "plugins-status";
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
        //-- _plugin
106
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.Plugin.class, "_plugin", "plugin", 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
                PluginsStatus target = (PluginsStatus) object;
112
                return target.getPlugin();
113
            }
114
            public void setValue( java.lang.Object object, java.lang.Object value) 
115
                throws IllegalStateException, IllegalArgumentException
116
            {
117
                try {
118
                    PluginsStatus target = (PluginsStatus) object;
119
                    target.setPlugin( (org.gvsig.andami.persistence.generate.Plugin) 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.Plugin();
127
            }
128
        } );
129
        desc.setHandler(handler);
130
        desc.setRequired(true);
131
        desc.setMultivalued(false);
132
        addFieldDescriptor(desc);
133
        
134
        //-- validation code for: _plugin
135
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
136
        fieldValidator.setMinOccurs(1);
137
        { //-- local scope
138
        }
139
        desc.setValidator(fieldValidator);
140
        //-- _toolBars
141
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.gvsig.andami.persistence.generate.ToolBars.class, "_toolBars", "tool-bars", org.exolab.castor.xml.NodeType.Element);
142
        handler = (new org.exolab.castor.xml.XMLFieldHandler() {
143
            public java.lang.Object getValue( java.lang.Object object ) 
144
                throws IllegalStateException
145
            {
146
                PluginsStatus target = (PluginsStatus) object;
147
                return target.getToolBars();
148
            }
149
            public void setValue( java.lang.Object object, java.lang.Object value) 
150
                throws IllegalStateException, IllegalArgumentException
151
            {
152
                try {
153
                    PluginsStatus target = (PluginsStatus) object;
154
                    target.setToolBars( (org.gvsig.andami.persistence.generate.ToolBars) value);
155
                }
156
                catch (java.lang.Exception ex) {
157
                    throw new IllegalStateException(ex.toString());
158
                }
159
            }
160
            public java.lang.Object newInstance( java.lang.Object parent ) {
161
                return new org.gvsig.andami.persistence.generate.ToolBars();
162
            }
163
        } );
164
        desc.setHandler(handler);
165
        desc.setRequired(true);
166
        desc.setMultivalued(false);
167
        addFieldDescriptor(desc);
168
        
169
        //-- validation code for: _toolBars
170
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
171
        fieldValidator.setMinOccurs(1);
172
        { //-- local scope
173
        }
174
        desc.setValidator(fieldValidator);
175
    } //-- com.iver.andami.persistence.generate.PluginsStatusDescriptor()
176

  
177

  
178
      //-----------/
179
     //- Methods -/
180
    //-----------/
181

  
182
    /**
183
     * Method getAccessMode
184
     */
185
    public org.exolab.castor.mapping.AccessMode getAccessMode()
186
    {
187
        return null;
188
    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() 
189

  
190
    /**
191
     * Method getExtends
192
     */
193
    public org.exolab.castor.mapping.ClassDescriptor getExtends()
194
    {
195
        return null;
196
    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
197

  
198
    /**
199
     * Method getIdentity
200
     */
201
    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
202
    {
203
        return identity;
204
    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
205

  
206
    /**
207
     * Method getJavaClass
208
     */
209
    public java.lang.Class getJavaClass()
210
    {
211
        return org.gvsig.andami.persistence.generate.PluginsStatus.class;
212
    } //-- java.lang.Class getJavaClass() 
213

  
214
    /**
215
     * Method getNameSpacePrefix
216
     */
217
    public java.lang.String getNameSpacePrefix()
218
    {
219
        return nsPrefix;
220
    } //-- java.lang.String getNameSpacePrefix() 
221

  
222
    /**
223
     * Method getNameSpaceURI
224
     */
225
    public java.lang.String getNameSpaceURI()
226
    {
227
        return nsURI;
228
    } //-- java.lang.String getNameSpaceURI() 
229

  
230
    /**
231
     * Method getValidator
232
     */
233
    public org.exolab.castor.xml.TypeValidator getValidator()
234
    {
235
        return this;
236
    } //-- org.exolab.castor.xml.TypeValidator getValidator() 
237

  
238
    /**
239
     * Method getXMLName
240
     */
241
    public java.lang.String getXMLName()
242
    {
243
        return xmlName;
244
    } //-- java.lang.String getXMLName() 
245

  
246
}
0 247

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/src/org/gvsig/andami/persistence/generate/Property.java
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$
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
import org.exolab.castor.xml.Marshaller;
55
import org.exolab.castor.xml.Unmarshaller;
56

  
57
/**
58
 * Class Property.
59
 * 
60
 * @version $Revision$ $Date$
61
 */
62
public class Property implements java.io.Serializable {
63

  
64

  
65
      //--------------------------/
66
     //- Class/Member Variables -/
67
    //--------------------------/
68

  
69
    /**
70
     * Field _name
71
     */
72
    private java.lang.String _name;
73

  
74
    /**
75
     * Field _value
76
     */
77
    private java.lang.String _value;
78

  
79

  
80
      //----------------/
81
     //- Constructors -/
82
    //----------------/
83

  
84
    public Property() {
85
        super();
86
    } //-- com.iver.andami.persistence.generate.Property()
87

  
88

  
89
      //-----------/
90
     //- Methods -/
91
    //-----------/
92

  
93
    /**
94
     * Returns the value of field 'name'.
95
     * 
96
     * @return the value of field 'name'.
97
     */
98
    public java.lang.String getName()
99
    {
100
        return this._name;
101
    } //-- java.lang.String getName() 
102

  
103
    /**
104
     * Returns the value of field 'value'.
105
     * 
106
     * @return the value of field 'value'.
107
     */
108
    public java.lang.String getValue()
109
    {
110
        return this._value;
111
    } //-- java.lang.String getValue() 
112

  
113
    /**
114
     * Method isValid
115
     */
116
    public boolean isValid()
117
    {
118
        try {
119
            validate();
120
        }
121
        catch (org.exolab.castor.xml.ValidationException vex) {
122
            return false;
123
        }
124
        return true;
125
    } //-- boolean isValid() 
126

  
127
    /**
128
     * Method marshal
129
     * 
130
     * @param out
131
     */
132
    public void marshal(java.io.Writer out)
133
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
134
    {
135
        
136
        Marshaller.marshal(this, out);
137
    } //-- void marshal(java.io.Writer) 
138

  
139
    /**
140
     * Method marshal
141
     * 
142
     * @param handler
143
     */
144
    public void marshal(org.xml.sax.ContentHandler handler)
145
        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
146
    {
147
        
148
        Marshaller.marshal(this, handler);
149
    } //-- void marshal(org.xml.sax.ContentHandler) 
150

  
151
    /**
152
     * Sets the value of field 'name'.
153
     * 
154
     * @param name the value of field 'name'.
155
     */
156
    public void setName(java.lang.String name)
157
    {
158
        this._name = name;
159
    } //-- void setName(java.lang.String) 
160

  
161
    /**
162
     * Sets the value of field 'value'.
163
     * 
164
     * @param value the value of field 'value'.
165
     */
166
    public void setValue(java.lang.String value)
167
    {
168
        this._value = value;
169
    } //-- void setValue(java.lang.String) 
170

  
171
    /**
172
     * Method unmarshal
173
     * 
174
     * @param reader
175
     */
176
    public static java.lang.Object unmarshal(java.io.Reader reader)
177
        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
178
    {
179
        return (org.gvsig.andami.persistence.generate.Property) Unmarshaller.unmarshal(org.gvsig.andami.persistence.generate.Property.class, reader);
180
    } //-- java.lang.Object unmarshal(java.io.Reader) 
181

  
182
    /**
183
     * Method validate
184
     */
185
    public void validate()
186
        throws org.exolab.castor.xml.ValidationException
187
    {
188
        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();
189
        validator.validate(this);
190
    } //-- void validate() 
191

  
192
}
0 193

  
tags/v2_0_0_Build_2061/frameworks/_fwAndami/src/org/gvsig/andami/persistence/generate/ToolBarsDescriptor.java
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$
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$ $Date$
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()
... This diff was truncated because it exceeds the maximum size that can be displayed.

Also available in: Unified diff