Revision 19212
tags/tmp_build/frameworks/_fwAndami/.cvsignore | ||
---|---|---|
1 |
bin |
|
2 |
gvsig.log |
|
3 |
gvSIG |
|
4 |
web |
|
5 |
andami.jar |
|
6 |
keystore |
|
7 |
java.hprof.txt |
|
8 |
build-doc |
|
9 |
*.log |
|
10 |
cachedir |
|
0 | 11 |
tags/tmp_build/frameworks/_fwAndami/por hacer.txt | ||
---|---|---|
1 |
Las ventanas singleton no se comportan bien porque cuando se cierra y se abre |
|
2 |
no se recuerda la posici?n en la que estaba |
|
3 |
|
|
4 |
2.- Comprobar el correcto funcionamiento de los classloaders... ok |
|
5 |
6.- A?adir soporte para men?es contextuales... ok |
|
6 |
7.- A?adir soporte para traducciones... ok |
|
7 |
4.- Hacer que se muestre bien el texto de los men?es... ok |
|
8 |
8.- A?adir soporte a la barra de estado para procesos... ok |
|
9 |
10.- Comprobar el correcto funcionamiento de los group en las selectable |
|
10 |
tool's... ok |
|
11 |
11.- A?adir soporte para modificar popup menus y toolBars de otros plugins... ok |
|
12 |
20.- Comprobar el correcto orden de los men?es... ok |
|
13 |
22.- Ventana de inicio... ok |
|
14 |
18.- Extraer la interfaz del MDIFrame y corregir el acceso a traves |
|
15 |
del PluginServices... ok |
|
16 |
9.- Meter el tema del hour glass... ok |
|
17 |
1.- Dise?ar la barra de estado con el VE... ok |
|
18 |
14.- Persistencia... ok |
|
19 |
17.- Soporte para a?adir men?es din?micamente |
|
20 |
(y quitarlos) mediante la referencia... ok |
|
21 |
21.- Que Skin a?ada men?es din?micamente... ok |
|
22 |
25.- Pensar c?mo se produce el acceso a las extensiones... ok |
|
23 |
|
|
24 |
13.- Arreglar el tema de la ViewInfo para que le venga dada a la vista |
|
25 |
Programar cascada y mosaico |
|
26 |
Programar la colocaci?n de las nuevas ventanas |
|
27 |
12.- Meter el di?logo de configuraci?n |
|
28 |
23.- Pensar c?mo se actualizan los plugins |
|
29 |
De momento como en la 0.2 |
|
30 |
24.- Pensar c?mo compatibilizar los plugins |
|
31 |
26.- Programar el ctrl+tab |
|
32 |
27.- Cerrar los jars al cerrar la aplicaci?n |
|
33 |
15.- Como cambiar el idioma de los plugins |
|
34 |
- Se selecciona el de andami de entre los soportados. Ese ser? el idioma |
|
35 |
de todos los plugins |
|
36 |
- Para cada plugin se selecciona un idioma o no. Si no se selecciona se usa |
|
37 |
el de andami. Si se selecciona se usa ese. |
|
38 |
5.- A?adir soporte para actualizaciones de andami |
|
39 |
3.- Parametrizar el modificador del acelerador de men?s |
|
40 |
19.- Hacer una JProgressBar con texto |
|
41 |
|
|
42 |
borrar el StatusBar |
|
43 |
|
|
44 |
Documentaci?n |
|
45 |
Como crear un popup menu |
|
46 |
como marcar un progreso en la barra bloqueante pero con la interfaz respondiendo |
|
47 |
reserva del ant: |
|
48 |
<!--Mete en el directorio web todo lo necesario para publicar |
|
49 |
la aplicacion--> |
|
50 |
<target name="crea-web-dir" depends="sign-jar, extensiones" description="Mete todo lo que va al war en el directorio web"> |
|
51 |
</target> |
|
52 |
|
|
53 |
<!--Firma todos los jar de la aplicacion--> |
|
54 |
<target name="sign-jar" description="Firma todos los jar" depends="move-jars"> |
|
55 |
<signjar keystore="${keystore}" storepass="aquilina" keypass="aquilina" alias="mdikey" jar="${webdir}/gvSIG.jar" /> |
|
56 |
<signjar keystore="${keystore}" storepass="aquilina" keypass="aquilina" alias="mdikey" jar="${webdir}/javaws.jar" /> |
|
57 |
<signjar keystore="${keystore}" storepass="aquilina" keypass="aquilina" alias="mdikey" jar="${webdir}/log4j-1.2.8.jar" /> |
|
58 |
<signjar keystore="${keystore}" storepass="aquilina" keypass="aquilina" alias="mdikey" jar="${webdir}/castor-0.9.5.3-xml.jar" /> |
|
59 |
<signjar keystore="${keystore}" storepass="aquilina" keypass="aquilina" alias="mdikey" jar="${webdir}/iver-utiles.jar" /> |
|
60 |
<signjar keystore="${keystore}" storepass="aquilina" keypass="aquilina" alias="mdikey" jar="${webdir}/xercesImpl.jar" /> |
|
61 |
</target> |
|
0 | 62 |
tags/tmp_build/frameworks/_fwAndami/schemas/andami-config.xml | ||
---|---|---|
1 |
<andami-config locale-languaje="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-config> |
|
0 | 6 |
tags/tmp_build/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/tmp_build/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/tmp_build/frameworks/_fwAndami/.project | ||
---|---|---|
1 |
<?xml version="1.0" encoding="UTF-8"?> |
|
2 |
<projectDescription> |
|
3 |
<name>_fwAndami</name> |
|
4 |
<comment></comment> |
|
5 |
<projects> |
|
6 |
</projects> |
|
7 |
<buildSpec> |
|
8 |
<buildCommand> |
|
9 |
<name>org.eclipse.jdt.core.javabuilder</name> |
|
10 |
<arguments> |
|
11 |
</arguments> |
|
12 |
</buildCommand> |
|
13 |
<buildCommand> |
|
14 |
<name>org.eclipse.ui.externaltools.ExternalToolBuilder</name> |
|
15 |
<triggers>full,incremental,</triggers> |
|
16 |
<arguments> |
|
17 |
<dictionary> |
|
18 |
<key>LaunchConfigHandle</key> |
|
19 |
<value><project>/.externalToolBuilders/Ant.launch</value> |
|
20 |
</dictionary> |
|
21 |
</arguments> |
|
22 |
</buildCommand> |
|
23 |
</buildSpec> |
|
24 |
<natures> |
|
25 |
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature> |
|
26 |
<nature>org.eclipse.jdt.core.javanature</nature> |
|
27 |
<nature>org.eclipse.jem.beaninfo.BeanInfoNature</nature> |
|
28 |
</natures> |
|
29 |
</projectDescription> |
|
0 | 30 |
tags/tmp_build/frameworks/_fwAndami/gvSIG.bat | ||
---|---|---|
1 |
java -cp andami.jar;lib/beans.jar;./lib/castor-0.9.5.3-xml.jar;./lib/crimson.jar;./lib/gvsig-i18n.jar;./lib/iver-utiles.jar;./lib/javaws.jar;lib/JWizardComponent.jar;./lib/log4j-1.2.8.jar;lib/looks-2.0.2.jar;./lib/xerces_2_5_0.jar;./lib/xml-apis.jar -Xmx500M com.iver.andami.Launcher gvSIG gvSIG/extensiones %1 |
|
0 | 2 |
tags/tmp_build/frameworks/_fwAndami/castor.properties | ||
---|---|---|
1 |
org.exolab.castor.indent=true |
|
0 | 2 |
tags/tmp_build/frameworks/_fwAndami/src/com/iver/andami/config/generate/PluginDescriptor.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 |
package com.iver.andami.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import org.exolab.castor.xml.validators.BooleanValidator; |
|
15 |
import org.exolab.castor.xml.validators.NameValidator; |
|
16 |
|
|
17 |
/** |
|
18 |
* Class PluginDescriptor. |
|
19 |
* |
|
20 |
* @version $Revision$ $Date$ |
|
21 |
*/ |
|
22 |
public class PluginDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
|
23 |
|
|
24 |
|
|
25 |
//--------------------------/ |
|
26 |
//- Class/Member Variables -/ |
|
27 |
//--------------------------/ |
|
28 |
|
|
29 |
/** |
|
30 |
* Field nsPrefix |
|
31 |
*/ |
|
32 |
private java.lang.String nsPrefix; |
|
33 |
|
|
34 |
/** |
|
35 |
* Field nsURI |
|
36 |
*/ |
|
37 |
private java.lang.String nsURI; |
|
38 |
|
|
39 |
/** |
|
40 |
* Field xmlName |
|
41 |
*/ |
|
42 |
private java.lang.String xmlName; |
|
43 |
|
|
44 |
/** |
|
45 |
* Field identity |
|
46 |
*/ |
|
47 |
private org.exolab.castor.xml.XMLFieldDescriptor identity; |
|
48 |
|
|
49 |
|
|
50 |
//----------------/ |
|
51 |
//- Constructors -/ |
|
52 |
//----------------/ |
|
53 |
|
|
54 |
public PluginDescriptor() { |
|
55 |
super(); |
|
56 |
xmlName = "plugin"; |
|
57 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
|
58 |
org.exolab.castor.xml.XMLFieldHandler handler = null; |
|
59 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
|
60 |
//-- initialize attribute descriptors |
|
61 |
|
|
62 |
//-- _name |
|
63 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); |
|
64 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
65 |
public java.lang.Object getValue( java.lang.Object object ) |
|
66 |
throws IllegalStateException |
|
67 |
{ |
|
68 |
Plugin target = (Plugin) object; |
|
69 |
return target.getName(); |
|
70 |
} |
|
71 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
72 |
throws IllegalStateException, IllegalArgumentException |
|
73 |
{ |
|
74 |
try { |
|
75 |
Plugin target = (Plugin) object; |
|
76 |
target.setName( (java.lang.String) value); |
|
77 |
} |
|
78 |
catch (java.lang.Exception ex) { |
|
79 |
throw new IllegalStateException(ex.toString()); |
|
80 |
} |
|
81 |
} |
|
82 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
83 |
return new java.lang.String(); |
|
84 |
} |
|
85 |
} ); |
|
86 |
desc.setHandler(handler); |
|
87 |
desc.setRequired(true); |
|
88 |
addFieldDescriptor(desc); |
|
89 |
|
|
90 |
//-- validation code for: _name |
|
91 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
92 |
fieldValidator.setMinOccurs(1); |
|
93 |
{ //-- local scope |
|
94 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN); |
|
95 |
fieldValidator.setValidator(typeValidator); |
|
96 |
} |
|
97 |
desc.setValidator(fieldValidator); |
|
98 |
//-- _update |
|
99 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_update", "update", org.exolab.castor.xml.NodeType.Attribute); |
|
100 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
101 |
public java.lang.Object getValue( java.lang.Object object ) |
|
102 |
throws IllegalStateException |
|
103 |
{ |
|
104 |
Plugin target = (Plugin) object; |
|
105 |
if(!target.hasUpdate()) |
|
106 |
return null; |
|
107 |
return (target.getUpdate() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE); |
|
108 |
} |
|
109 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
110 |
throws IllegalStateException, IllegalArgumentException |
|
111 |
{ |
|
112 |
try { |
|
113 |
Plugin target = (Plugin) object; |
|
114 |
// ignore null values for non optional primitives |
|
115 |
if (value == null) return; |
|
116 |
|
|
117 |
target.setUpdate( ((java.lang.Boolean)value).booleanValue()); |
|
118 |
} |
|
119 |
catch (java.lang.Exception ex) { |
|
120 |
throw new IllegalStateException(ex.toString()); |
|
121 |
} |
|
122 |
} |
|
123 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
124 |
return null; |
|
125 |
} |
|
126 |
} ); |
|
127 |
desc.setHandler(handler); |
|
128 |
desc.setRequired(true); |
|
129 |
addFieldDescriptor(desc); |
|
130 |
|
|
131 |
//-- validation code for: _update |
|
132 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
133 |
fieldValidator.setMinOccurs(1); |
|
134 |
{ //-- local scope |
|
135 |
BooleanValidator typeValidator = new BooleanValidator(); |
|
136 |
fieldValidator.setValidator(typeValidator); |
|
137 |
} |
|
138 |
desc.setValidator(fieldValidator); |
|
139 |
//-- initialize element descriptors |
|
140 |
|
|
141 |
} //-- com.iver.andami.config.generate.PluginDescriptor() |
|
142 |
|
|
143 |
|
|
144 |
//-----------/ |
|
145 |
//- Methods -/ |
|
146 |
//-----------/ |
|
147 |
|
|
148 |
/** |
|
149 |
* Method getAccessMode |
|
150 |
*/ |
|
151 |
public org.exolab.castor.mapping.AccessMode getAccessMode() |
|
152 |
{ |
|
153 |
return null; |
|
154 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode() |
|
155 |
|
|
156 |
/** |
|
157 |
* Method getExtends |
|
158 |
*/ |
|
159 |
public org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
160 |
{ |
|
161 |
return null; |
|
162 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
163 |
|
|
164 |
/** |
|
165 |
* Method getIdentity |
|
166 |
*/ |
|
167 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
168 |
{ |
|
169 |
return identity; |
|
170 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
171 |
|
|
172 |
/** |
|
173 |
* Method getJavaClass |
|
174 |
*/ |
|
175 |
public java.lang.Class getJavaClass() |
|
176 |
{ |
|
177 |
return com.iver.andami.config.generate.Plugin.class; |
|
178 |
} //-- java.lang.Class getJavaClass() |
|
179 |
|
|
180 |
/** |
|
181 |
* Method getNameSpacePrefix |
|
182 |
*/ |
|
183 |
public java.lang.String getNameSpacePrefix() |
|
184 |
{ |
|
185 |
return nsPrefix; |
|
186 |
} //-- java.lang.String getNameSpacePrefix() |
|
187 |
|
|
188 |
/** |
|
189 |
* Method getNameSpaceURI |
|
190 |
*/ |
|
191 |
public java.lang.String getNameSpaceURI() |
|
192 |
{ |
|
193 |
return nsURI; |
|
194 |
} //-- java.lang.String getNameSpaceURI() |
|
195 |
|
|
196 |
/** |
|
197 |
* Method getValidator |
|
198 |
*/ |
|
199 |
public org.exolab.castor.xml.TypeValidator getValidator() |
|
200 |
{ |
|
201 |
return this; |
|
202 |
} //-- org.exolab.castor.xml.TypeValidator getValidator() |
|
203 |
|
|
204 |
/** |
|
205 |
* Method getXMLName |
|
206 |
*/ |
|
207 |
public java.lang.String getXMLName() |
|
208 |
{ |
|
209 |
return xmlName; |
|
210 |
} //-- java.lang.String getXMLName() |
|
211 |
|
|
212 |
} |
|
0 | 213 |
tags/tmp_build/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiConfigDescriptor.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 |
package com.iver.andami.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import org.exolab.castor.xml.validators.StringValidator; |
|
15 |
|
|
16 |
/** |
|
17 |
* Class AndamiConfigDescriptor. |
|
18 |
* |
|
19 |
* @version $Revision$ $Date$ |
|
20 |
*/ |
|
21 |
public class AndamiConfigDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
|
22 |
|
|
23 |
|
|
24 |
//--------------------------/ |
|
25 |
//- Class/Member Variables -/ |
|
26 |
//--------------------------/ |
|
27 |
|
|
28 |
/** |
|
29 |
* Field nsPrefix |
|
30 |
*/ |
|
31 |
private java.lang.String nsPrefix; |
|
32 |
|
|
33 |
/** |
|
34 |
* Field nsURI |
|
35 |
*/ |
|
36 |
private java.lang.String nsURI; |
|
37 |
|
|
38 |
/** |
|
39 |
* Field xmlName |
|
40 |
*/ |
|
41 |
private java.lang.String xmlName; |
|
42 |
|
|
43 |
/** |
|
44 |
* Field identity |
|
45 |
*/ |
|
46 |
private org.exolab.castor.xml.XMLFieldDescriptor identity; |
|
47 |
|
|
48 |
|
|
49 |
//----------------/ |
|
50 |
//- Constructors -/ |
|
51 |
//----------------/ |
|
52 |
|
|
53 |
public AndamiConfigDescriptor() { |
|
54 |
super(); |
|
55 |
xmlName = "andami-config"; |
|
56 |
|
|
57 |
//-- set grouping compositor |
|
58 |
setCompositorAsSequence(); |
|
59 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
|
60 |
org.exolab.castor.xml.XMLFieldHandler handler = null; |
|
61 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
|
62 |
//-- initialize attribute descriptors |
|
63 |
|
|
64 |
//-- _localeLanguage |
|
65 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_localeLanguage", "locale-language", org.exolab.castor.xml.NodeType.Attribute); |
|
66 |
desc.setImmutable(true); |
|
67 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
68 |
public java.lang.Object getValue( java.lang.Object object ) |
|
69 |
throws IllegalStateException |
|
70 |
{ |
|
71 |
AndamiConfig target = (AndamiConfig) object; |
|
72 |
return target.getLocaleLanguage(); |
|
73 |
} |
|
74 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
75 |
throws IllegalStateException, IllegalArgumentException |
|
76 |
{ |
|
77 |
try { |
|
78 |
AndamiConfig target = (AndamiConfig) object; |
|
79 |
target.setLocaleLanguage( (java.lang.String) value); |
|
80 |
} |
|
81 |
catch (java.lang.Exception ex) { |
|
82 |
throw new IllegalStateException(ex.toString()); |
|
83 |
} |
|
84 |
} |
|
85 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
86 |
return null; |
|
87 |
} |
|
88 |
} ); |
|
89 |
desc.setHandler(handler); |
|
90 |
addFieldDescriptor(desc); |
|
91 |
|
|
92 |
//-- validation code for: _localeLanguage |
|
93 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
94 |
{ //-- local scope |
|
95 |
StringValidator typeValidator = new StringValidator(); |
|
96 |
typeValidator.setWhiteSpace("preserve"); |
|
97 |
fieldValidator.setValidator(typeValidator); |
|
98 |
} |
|
99 |
desc.setValidator(fieldValidator); |
|
100 |
//-- _localeCountry |
|
101 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_localeCountry", "locale-country", org.exolab.castor.xml.NodeType.Attribute); |
|
102 |
desc.setImmutable(true); |
|
103 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
104 |
public java.lang.Object getValue( java.lang.Object object ) |
|
105 |
throws IllegalStateException |
|
106 |
{ |
|
107 |
AndamiConfig target = (AndamiConfig) object; |
|
108 |
return target.getLocaleCountry(); |
|
109 |
} |
|
110 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
111 |
throws IllegalStateException, IllegalArgumentException |
|
112 |
{ |
|
113 |
try { |
|
114 |
AndamiConfig target = (AndamiConfig) object; |
|
115 |
target.setLocaleCountry( (java.lang.String) value); |
|
116 |
} |
|
117 |
catch (java.lang.Exception ex) { |
|
118 |
throw new IllegalStateException(ex.toString()); |
|
119 |
} |
|
120 |
} |
|
121 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
122 |
return null; |
|
123 |
} |
|
124 |
} ); |
|
125 |
desc.setHandler(handler); |
|
126 |
addFieldDescriptor(desc); |
|
127 |
|
|
128 |
//-- validation code for: _localeCountry |
|
129 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
130 |
{ //-- local scope |
|
131 |
StringValidator typeValidator = new StringValidator(); |
|
132 |
typeValidator.setWhiteSpace("preserve"); |
|
133 |
fieldValidator.setValidator(typeValidator); |
|
134 |
} |
|
135 |
desc.setValidator(fieldValidator); |
|
136 |
//-- _localeVariant |
|
137 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_localeVariant", "locale-variant", org.exolab.castor.xml.NodeType.Attribute); |
|
138 |
desc.setImmutable(true); |
|
139 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
140 |
public java.lang.Object getValue( java.lang.Object object ) |
|
141 |
throws IllegalStateException |
|
142 |
{ |
|
143 |
AndamiConfig target = (AndamiConfig) object; |
|
144 |
return target.getLocaleVariant(); |
|
145 |
} |
|
146 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
147 |
throws IllegalStateException, IllegalArgumentException |
|
148 |
{ |
|
149 |
try { |
|
150 |
AndamiConfig target = (AndamiConfig) object; |
|
151 |
target.setLocaleVariant( (java.lang.String) value); |
|
152 |
} |
|
153 |
catch (java.lang.Exception ex) { |
|
154 |
throw new IllegalStateException(ex.toString()); |
|
155 |
} |
|
156 |
} |
|
157 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
158 |
return null; |
|
159 |
} |
|
160 |
} ); |
|
161 |
desc.setHandler(handler); |
|
162 |
addFieldDescriptor(desc); |
|
163 |
|
|
164 |
//-- validation code for: _localeVariant |
|
165 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
166 |
{ //-- local scope |
|
167 |
StringValidator typeValidator = new StringValidator(); |
|
168 |
typeValidator.setWhiteSpace("preserve"); |
|
169 |
fieldValidator.setValidator(typeValidator); |
|
170 |
} |
|
171 |
desc.setValidator(fieldValidator); |
|
172 |
//-- _lookAndFeel |
|
173 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_lookAndFeel", "lookAndFeel", org.exolab.castor.xml.NodeType.Attribute); |
|
174 |
desc.setImmutable(true); |
|
175 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
176 |
public java.lang.Object getValue( java.lang.Object object ) |
|
177 |
throws IllegalStateException |
|
178 |
{ |
|
179 |
AndamiConfig target = (AndamiConfig) object; |
|
180 |
return target.getLookAndFeel(); |
|
181 |
} |
|
182 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
183 |
throws IllegalStateException, IllegalArgumentException |
|
184 |
{ |
|
185 |
try { |
|
186 |
AndamiConfig target = (AndamiConfig) object; |
|
187 |
target.setLookAndFeel( (java.lang.String) value); |
|
188 |
} |
|
189 |
catch (java.lang.Exception ex) { |
|
190 |
throw new IllegalStateException(ex.toString()); |
|
191 |
} |
|
192 |
} |
|
193 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
194 |
return null; |
|
195 |
} |
|
196 |
} ); |
|
197 |
desc.setHandler(handler); |
|
198 |
addFieldDescriptor(desc); |
|
199 |
|
|
200 |
//-- validation code for: _lookAndFeel |
|
201 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
202 |
{ //-- local scope |
|
203 |
StringValidator typeValidator = new StringValidator(); |
|
204 |
typeValidator.setWhiteSpace("preserve"); |
|
205 |
fieldValidator.setValidator(typeValidator); |
|
206 |
} |
|
207 |
desc.setValidator(fieldValidator); |
|
208 |
//-- _pluginsDirectory |
|
209 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_pluginsDirectory", "pluginsDirectory", org.exolab.castor.xml.NodeType.Attribute); |
|
210 |
desc.setImmutable(true); |
|
211 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
212 |
public java.lang.Object getValue( java.lang.Object object ) |
|
213 |
throws IllegalStateException |
|
214 |
{ |
|
215 |
AndamiConfig target = (AndamiConfig) object; |
|
216 |
return target.getPluginsDirectory(); |
|
217 |
} |
|
218 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
219 |
throws IllegalStateException, IllegalArgumentException |
|
220 |
{ |
|
221 |
try { |
|
222 |
AndamiConfig target = (AndamiConfig) object; |
|
223 |
target.setPluginsDirectory( (java.lang.String) value); |
|
224 |
} |
|
225 |
catch (java.lang.Exception ex) { |
|
226 |
throw new IllegalStateException(ex.toString()); |
|
227 |
} |
|
228 |
} |
|
229 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
230 |
return null; |
|
231 |
} |
|
232 |
} ); |
|
233 |
desc.setHandler(handler); |
|
234 |
desc.setRequired(true); |
|
235 |
addFieldDescriptor(desc); |
|
236 |
|
|
237 |
//-- validation code for: _pluginsDirectory |
|
238 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
239 |
fieldValidator.setMinOccurs(1); |
|
240 |
{ //-- local scope |
|
241 |
StringValidator typeValidator = new StringValidator(); |
|
242 |
typeValidator.setWhiteSpace("preserve"); |
|
243 |
fieldValidator.setValidator(typeValidator); |
|
244 |
} |
|
245 |
desc.setValidator(fieldValidator); |
|
246 |
//-- initialize element descriptors |
|
247 |
|
|
248 |
//-- _andami |
|
249 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.Andami.class, "_andami", "andami", org.exolab.castor.xml.NodeType.Element); |
|
250 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
251 |
public java.lang.Object getValue( java.lang.Object object ) |
|
252 |
throws IllegalStateException |
|
253 |
{ |
|
254 |
AndamiConfig target = (AndamiConfig) object; |
|
255 |
return target.getAndami(); |
|
256 |
} |
|
257 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
258 |
throws IllegalStateException, IllegalArgumentException |
|
259 |
{ |
|
260 |
try { |
|
261 |
AndamiConfig target = (AndamiConfig) object; |
|
262 |
target.setAndami( (com.iver.andami.config.generate.Andami) value); |
|
263 |
} |
|
264 |
catch (java.lang.Exception ex) { |
|
265 |
throw new IllegalStateException(ex.toString()); |
|
266 |
} |
|
267 |
} |
|
268 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
269 |
return new com.iver.andami.config.generate.Andami(); |
|
270 |
} |
|
271 |
} ); |
|
272 |
desc.setHandler(handler); |
|
273 |
desc.setRequired(true); |
|
274 |
desc.setMultivalued(false); |
|
275 |
addFieldDescriptor(desc); |
|
276 |
|
|
277 |
//-- validation code for: _andami |
|
278 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
279 |
fieldValidator.setMinOccurs(1); |
|
280 |
{ //-- local scope |
|
281 |
} |
|
282 |
desc.setValidator(fieldValidator); |
|
283 |
//-- _pluginList |
|
284 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.config.generate.Plugin.class, "_pluginList", "plugin", org.exolab.castor.xml.NodeType.Element); |
|
285 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
286 |
public java.lang.Object getValue( java.lang.Object object ) |
|
287 |
throws IllegalStateException |
|
288 |
{ |
|
289 |
AndamiConfig target = (AndamiConfig) object; |
|
290 |
return target.getPlugin(); |
|
291 |
} |
|
292 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
293 |
throws IllegalStateException, IllegalArgumentException |
|
294 |
{ |
|
295 |
try { |
|
296 |
AndamiConfig target = (AndamiConfig) object; |
|
297 |
target.addPlugin( (com.iver.andami.config.generate.Plugin) value); |
|
298 |
} |
|
299 |
catch (java.lang.Exception ex) { |
|
300 |
throw new IllegalStateException(ex.toString()); |
|
301 |
} |
|
302 |
} |
|
303 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
304 |
return new com.iver.andami.config.generate.Plugin(); |
|
305 |
} |
|
306 |
} ); |
|
307 |
desc.setHandler(handler); |
|
308 |
desc.setRequired(true); |
|
309 |
desc.setMultivalued(true); |
|
310 |
addFieldDescriptor(desc); |
|
311 |
|
|
312 |
//-- validation code for: _pluginList |
|
313 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
314 |
fieldValidator.setMinOccurs(1); |
|
315 |
{ //-- local scope |
|
316 |
} |
|
317 |
desc.setValidator(fieldValidator); |
|
318 |
} //-- com.iver.andami.config.generate.AndamiConfigDescriptor() |
|
319 |
|
|
320 |
|
|
321 |
//-----------/ |
|
322 |
//- Methods -/ |
|
323 |
//-----------/ |
|
324 |
|
|
325 |
/** |
|
326 |
* Method getAccessMode |
|
327 |
*/ |
|
328 |
public org.exolab.castor.mapping.AccessMode getAccessMode() |
|
329 |
{ |
|
330 |
return null; |
|
331 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode() |
|
332 |
|
|
333 |
/** |
|
334 |
* Method getExtends |
|
335 |
*/ |
|
336 |
public org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
337 |
{ |
|
338 |
return null; |
|
339 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
340 |
|
|
341 |
/** |
|
342 |
* Method getIdentity |
|
343 |
*/ |
|
344 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
345 |
{ |
|
346 |
return identity; |
|
347 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
348 |
|
|
349 |
/** |
|
350 |
* Method getJavaClass |
|
351 |
*/ |
|
352 |
public java.lang.Class getJavaClass() |
|
353 |
{ |
|
354 |
return com.iver.andami.config.generate.AndamiConfig.class; |
|
355 |
} //-- java.lang.Class getJavaClass() |
|
356 |
|
|
357 |
/** |
|
358 |
* Method getNameSpacePrefix |
|
359 |
*/ |
|
360 |
public java.lang.String getNameSpacePrefix() |
|
361 |
{ |
|
362 |
return nsPrefix; |
|
363 |
} //-- java.lang.String getNameSpacePrefix() |
|
364 |
|
|
365 |
/** |
|
366 |
* Method getNameSpaceURI |
|
367 |
*/ |
|
368 |
public java.lang.String getNameSpaceURI() |
|
369 |
{ |
|
370 |
return nsURI; |
|
371 |
} //-- java.lang.String getNameSpaceURI() |
|
372 |
|
|
373 |
/** |
|
374 |
* Method getValidator |
|
375 |
*/ |
|
376 |
public org.exolab.castor.xml.TypeValidator getValidator() |
|
377 |
{ |
|
378 |
return this; |
|
379 |
} //-- org.exolab.castor.xml.TypeValidator getValidator() |
|
380 |
|
|
381 |
/** |
|
382 |
* Method getXMLName |
|
383 |
*/ |
|
384 |
public java.lang.String getXMLName() |
|
385 |
{ |
|
386 |
return xmlName; |
|
387 |
} //-- java.lang.String getXMLName() |
|
388 |
|
|
389 |
} |
|
0 | 390 |
tags/tmp_build/frameworks/_fwAndami/src/com/iver/andami/config/generate/Plugin.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 |
package com.iver.andami.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import org.exolab.castor.xml.Marshaller; |
|
15 |
import org.exolab.castor.xml.Unmarshaller; |
|
16 |
|
|
17 |
/** |
|
18 |
* Class Plugin. |
|
19 |
* |
|
20 |
* @version $Revision$ $Date$ |
|
21 |
*/ |
|
22 |
public class Plugin implements java.io.Serializable { |
|
23 |
|
|
24 |
|
|
25 |
//--------------------------/ |
|
26 |
//- Class/Member Variables -/ |
|
27 |
//--------------------------/ |
|
28 |
|
|
29 |
/** |
|
30 |
* Field _name |
|
31 |
*/ |
|
32 |
private java.lang.String _name; |
|
33 |
|
|
34 |
/** |
|
35 |
* Field _update |
|
36 |
*/ |
|
37 |
private boolean _update; |
|
38 |
|
|
39 |
/** |
|
40 |
* keeps track of state for field: _update |
|
41 |
*/ |
|
42 |
private boolean _has_update; |
|
43 |
|
|
44 |
|
|
45 |
//----------------/ |
|
46 |
//- Constructors -/ |
|
47 |
//----------------/ |
|
48 |
|
|
49 |
public Plugin() { |
|
50 |
super(); |
|
51 |
} //-- com.iver.andami.config.generate.Plugin() |
|
52 |
|
|
53 |
|
|
54 |
//-----------/ |
|
55 |
//- Methods -/ |
|
56 |
//-----------/ |
|
57 |
|
|
58 |
/** |
|
59 |
* Method deleteUpdate |
|
60 |
*/ |
|
61 |
public void deleteUpdate() |
|
62 |
{ |
|
63 |
this._has_update= false; |
|
64 |
} //-- void deleteUpdate() |
|
65 |
|
|
66 |
/** |
|
67 |
* Returns the value of field 'name'. |
|
68 |
* |
|
69 |
* @return the value of field 'name'. |
|
70 |
*/ |
|
71 |
public java.lang.String getName() |
|
72 |
{ |
|
73 |
return this._name; |
|
74 |
} //-- java.lang.String getName() |
|
75 |
|
|
76 |
/** |
|
77 |
* Returns the value of field 'update'. |
|
78 |
* |
|
79 |
* @return the value of field 'update'. |
|
80 |
*/ |
|
81 |
public boolean getUpdate() |
|
82 |
{ |
|
83 |
return this._update; |
|
84 |
} //-- boolean getUpdate() |
|
85 |
|
|
86 |
/** |
|
87 |
* Method hasUpdate |
|
88 |
*/ |
|
89 |
public boolean hasUpdate() |
|
90 |
{ |
|
91 |
return this._has_update; |
|
92 |
} //-- boolean hasUpdate() |
|
93 |
|
|
94 |
/** |
|
95 |
* Method isValid |
|
96 |
*/ |
|
97 |
public boolean isValid() |
|
98 |
{ |
|
99 |
try { |
|
100 |
validate(); |
|
101 |
} |
|
102 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
103 |
return false; |
|
104 |
} |
|
105 |
return true; |
|
106 |
} //-- boolean isValid() |
|
107 |
|
|
108 |
/** |
|
109 |
* Method marshal |
|
110 |
* |
|
111 |
* @param out |
|
112 |
*/ |
|
113 |
public void marshal(java.io.Writer out) |
|
114 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
115 |
{ |
|
116 |
|
|
117 |
Marshaller.marshal(this, out); |
|
118 |
} //-- void marshal(java.io.Writer) |
|
119 |
|
|
120 |
/** |
|
121 |
* Method marshal |
|
122 |
* |
|
123 |
* @param handler |
|
124 |
*/ |
|
125 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
126 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
127 |
{ |
|
128 |
|
|
129 |
Marshaller.marshal(this, handler); |
|
130 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
131 |
|
|
132 |
/** |
|
133 |
* Sets the value of field 'name'. |
|
134 |
* |
|
135 |
* @param name the value of field 'name'. |
|
136 |
*/ |
|
137 |
public void setName(java.lang.String name) |
|
138 |
{ |
|
139 |
this._name = name; |
|
140 |
} //-- void setName(java.lang.String) |
|
141 |
|
|
142 |
/** |
|
143 |
* Sets the value of field 'update'. |
|
144 |
* |
|
145 |
* @param update the value of field 'update'. |
|
146 |
*/ |
|
147 |
public void setUpdate(boolean update) |
|
148 |
{ |
|
149 |
this._update = update; |
|
150 |
this._has_update = true; |
|
151 |
} //-- void setUpdate(boolean) |
|
152 |
|
|
153 |
/** |
|
154 |
* Method unmarshal |
|
155 |
* |
|
156 |
* @param reader |
|
157 |
*/ |
|
158 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
|
159 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
160 |
{ |
|
161 |
return (com.iver.andami.config.generate.Plugin) Unmarshaller.unmarshal(com.iver.andami.config.generate.Plugin.class, reader); |
|
162 |
} //-- java.lang.Object unmarshal(java.io.Reader) |
|
163 |
|
|
164 |
/** |
|
165 |
* Method validate |
|
166 |
*/ |
|
167 |
public void validate() |
|
168 |
throws org.exolab.castor.xml.ValidationException |
|
169 |
{ |
|
170 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
|
171 |
validator.validate(this); |
|
172 |
} //-- void validate() |
|
173 |
|
|
174 |
} |
|
0 | 175 |
tags/tmp_build/frameworks/_fwAndami/src/com/iver/andami/config/generate/AndamiConfig.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 |
package com.iver.andami.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import java.util.Vector; |
|
15 |
|
|
16 |
import org.exolab.castor.xml.Marshaller; |
|
17 |
import org.exolab.castor.xml.Unmarshaller; |
|
18 |
|
|
19 |
/** |
|
20 |
* Class AndamiConfig. |
|
21 |
* |
|
22 |
* @version $Revision$ $Date$ |
|
23 |
*/ |
|
24 |
public class AndamiConfig implements java.io.Serializable { |
|
25 |
|
|
26 |
|
|
27 |
//--------------------------/ |
|
28 |
//- Class/Member Variables -/ |
|
29 |
//--------------------------/ |
|
30 |
|
|
31 |
/** |
|
32 |
* Field _localeLanguage |
|
33 |
*/ |
|
34 |
private java.lang.String _localeLanguage; |
|
35 |
|
|
36 |
/** |
|
37 |
* Field _localeCountry |
|
38 |
*/ |
|
39 |
private java.lang.String _localeCountry; |
|
40 |
|
|
41 |
/** |
|
42 |
* Field _localeVariant |
|
43 |
*/ |
|
44 |
private java.lang.String _localeVariant; |
|
45 |
|
|
46 |
/** |
|
47 |
* Field _lookAndFeel |
|
48 |
*/ |
|
49 |
private java.lang.String _lookAndFeel; |
|
50 |
|
|
51 |
/** |
|
52 |
* Field _pluginsDirectory |
|
53 |
*/ |
|
54 |
private java.lang.String _pluginsDirectory; |
|
55 |
|
|
56 |
/** |
|
57 |
* Field _andami |
|
58 |
*/ |
|
59 |
private com.iver.andami.config.generate.Andami _andami; |
|
60 |
|
|
61 |
/** |
|
62 |
* Field _pluginList |
|
63 |
*/ |
|
64 |
private java.util.Vector _pluginList; |
|
65 |
|
|
66 |
|
|
67 |
//----------------/ |
|
68 |
//- Constructors -/ |
|
69 |
//----------------/ |
|
70 |
|
|
71 |
public AndamiConfig() { |
|
72 |
super(); |
|
73 |
_pluginList = new Vector(); |
|
74 |
} //-- com.iver.andami.config.generate.AndamiConfig() |
|
75 |
|
|
76 |
|
|
77 |
//-----------/ |
|
78 |
//- Methods -/ |
|
79 |
//-----------/ |
|
80 |
|
|
81 |
/** |
|
82 |
* Method addPlugin |
|
83 |
* |
|
84 |
* @param vPlugin |
|
85 |
*/ |
|
86 |
public void addPlugin(com.iver.andami.config.generate.Plugin vPlugin) |
|
87 |
throws java.lang.IndexOutOfBoundsException |
|
88 |
{ |
|
89 |
_pluginList.addElement(vPlugin); |
|
90 |
} //-- void addPlugin(com.iver.andami.config.generate.Plugin) |
|
91 |
|
|
92 |
/** |
|
93 |
* Method addPlugin |
|
94 |
* |
|
95 |
* @param index |
|
96 |
* @param vPlugin |
|
97 |
*/ |
|
98 |
public void addPlugin(int index, com.iver.andami.config.generate.Plugin vPlugin) |
|
99 |
throws java.lang.IndexOutOfBoundsException |
|
100 |
{ |
|
101 |
_pluginList.insertElementAt(vPlugin, index); |
|
102 |
} //-- void addPlugin(int, com.iver.andami.config.generate.Plugin) |
|
103 |
|
|
104 |
/** |
|
105 |
* Method enumeratePlugin |
|
106 |
*/ |
|
107 |
public java.util.Enumeration enumeratePlugin() |
|
108 |
{ |
|
109 |
return _pluginList.elements(); |
|
110 |
} //-- java.util.Enumeration enumeratePlugin() |
|
111 |
|
|
112 |
/** |
|
113 |
* Returns the value of field 'andami'. |
|
114 |
* |
|
115 |
* @return the value of field 'andami'. |
|
116 |
*/ |
|
117 |
public com.iver.andami.config.generate.Andami getAndami() |
|
118 |
{ |
|
119 |
return this._andami; |
|
120 |
} //-- com.iver.andami.config.generate.Andami getAndami() |
|
121 |
|
|
122 |
/** |
|
123 |
* Returns the value of field 'localeCountry'. |
|
124 |
* |
|
125 |
* @return the value of field 'localeCountry'. |
|
126 |
*/ |
|
127 |
public java.lang.String getLocaleCountry() |
|
128 |
{ |
|
129 |
return this._localeCountry; |
|
130 |
} //-- java.lang.String getLocaleCountry() |
|
131 |
|
|
132 |
/** |
|
133 |
* Returns the value of field 'localeLanguage'. |
|
134 |
* |
|
135 |
* @return the value of field 'localeLanguage'. |
|
136 |
*/ |
|
137 |
public java.lang.String getLocaleLanguage() |
|
138 |
{ |
|
139 |
return this._localeLanguage; |
|
140 |
} //-- java.lang.String getLocaleLanguage() |
|
141 |
|
|
142 |
/** |
|
143 |
* Returns the value of field 'localeVariant'. |
|
144 |
* |
|
145 |
* @return the value of field 'localeVariant'. |
|
146 |
*/ |
|
147 |
public java.lang.String getLocaleVariant() |
|
148 |
{ |
|
149 |
return this._localeVariant; |
|
150 |
} //-- java.lang.String getLocaleVariant() |
|
151 |
|
|
152 |
/** |
|
153 |
* Returns the value of field 'lookAndFeel'. |
|
154 |
* |
|
155 |
* @return the value of field 'lookAndFeel'. |
|
156 |
*/ |
|
157 |
public java.lang.String getLookAndFeel() |
|
158 |
{ |
|
159 |
return this._lookAndFeel; |
|
160 |
} //-- java.lang.String getLookAndFeel() |
|
161 |
|
|
162 |
/** |
|
163 |
* Method getPlugin |
|
164 |
* |
|
165 |
* @param index |
|
166 |
*/ |
|
167 |
public com.iver.andami.config.generate.Plugin getPlugin(int index) |
|
168 |
throws java.lang.IndexOutOfBoundsException |
|
169 |
{ |
|
170 |
//-- check bounds for index |
|
171 |
if ((index < 0) || (index > _pluginList.size())) { |
|
172 |
throw new IndexOutOfBoundsException(); |
|
173 |
} |
|
174 |
|
|
175 |
return (com.iver.andami.config.generate.Plugin) _pluginList.elementAt(index); |
|
176 |
} //-- com.iver.andami.config.generate.Plugin getPlugin(int) |
|
177 |
|
|
178 |
/** |
|
179 |
* Method getPlugin |
|
180 |
*/ |
|
181 |
public com.iver.andami.config.generate.Plugin[] getPlugin() |
|
182 |
{ |
|
183 |
int size = _pluginList.size(); |
|
184 |
com.iver.andami.config.generate.Plugin[] mArray = new com.iver.andami.config.generate.Plugin[size]; |
|
185 |
for (int index = 0; index < size; index++) { |
|
186 |
mArray[index] = (com.iver.andami.config.generate.Plugin) _pluginList.elementAt(index); |
|
187 |
} |
|
188 |
return mArray; |
|
189 |
} //-- com.iver.andami.config.generate.Plugin[] getPlugin() |
|
190 |
|
|
191 |
/** |
|
192 |
* Method getPluginCount |
|
193 |
*/ |
|
194 |
public int getPluginCount() |
|
195 |
{ |
|
196 |
return _pluginList.size(); |
|
197 |
} //-- int getPluginCount() |
|
198 |
|
|
199 |
/** |
|
200 |
* Returns the value of field 'pluginsDirectory'. |
|
201 |
* |
|
202 |
* @return the value of field 'pluginsDirectory'. |
|
203 |
*/ |
|
204 |
public java.lang.String getPluginsDirectory() |
|
205 |
{ |
|
206 |
return this._pluginsDirectory; |
|
207 |
} //-- java.lang.String getPluginsDirectory() |
|
208 |
|
|
209 |
/** |
|
210 |
* Method isValid |
|
211 |
*/ |
|
212 |
public boolean isValid() |
|
213 |
{ |
|
214 |
try { |
|
215 |
validate(); |
|
216 |
} |
|
217 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
218 |
return false; |
|
219 |
} |
|
220 |
return true; |
|
221 |
} //-- boolean isValid() |
|
222 |
|
|
223 |
/** |
|
224 |
* Method marshal |
|
225 |
* |
|
226 |
* @param out |
|
227 |
*/ |
|
228 |
public void marshal(java.io.Writer out) |
|
229 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
230 |
{ |
|
231 |
|
|
232 |
Marshaller.marshal(this, out); |
|
233 |
} //-- void marshal(java.io.Writer) |
|
234 |
|
|
235 |
/** |
|
236 |
* Method marshal |
|
237 |
* |
|
238 |
* @param handler |
|
239 |
*/ |
|
240 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
241 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
242 |
{ |
|
243 |
|
|
244 |
Marshaller.marshal(this, handler); |
|
245 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
246 |
|
|
247 |
/** |
|
248 |
* Method removeAllPlugin |
|
249 |
*/ |
|
250 |
public void removeAllPlugin() |
|
251 |
{ |
|
252 |
_pluginList.removeAllElements(); |
|
253 |
} //-- void removeAllPlugin() |
|
254 |
|
|
255 |
/** |
|
256 |
* Method removePlugin |
|
257 |
* |
|
258 |
* @param index |
|
259 |
*/ |
|
260 |
public com.iver.andami.config.generate.Plugin removePlugin(int index) |
|
261 |
{ |
|
262 |
java.lang.Object obj = _pluginList.elementAt(index); |
|
263 |
_pluginList.removeElementAt(index); |
|
264 |
return (com.iver.andami.config.generate.Plugin) obj; |
|
265 |
} //-- com.iver.andami.config.generate.Plugin removePlugin(int) |
|
266 |
|
|
267 |
/** |
|
268 |
* Sets the value of field 'andami'. |
|
269 |
* |
|
270 |
* @param andami the value of field 'andami'. |
|
271 |
*/ |
|
272 |
public void setAndami(com.iver.andami.config.generate.Andami andami) |
|
273 |
{ |
|
274 |
this._andami = andami; |
|
275 |
} //-- void setAndami(com.iver.andami.config.generate.Andami) |
|
276 |
|
|
277 |
/** |
|
278 |
* Sets the value of field 'localeCountry'. |
|
279 |
* |
|
280 |
* @param localeCountry the value of field 'localeCountry'. |
|
281 |
*/ |
|
282 |
public void setLocaleCountry(java.lang.String localeCountry) |
|
283 |
{ |
|
284 |
this._localeCountry = localeCountry; |
|
285 |
} //-- void setLocaleCountry(java.lang.String) |
|
286 |
|
|
287 |
/** |
|
288 |
* Sets the value of field 'localeLanguage'. |
|
289 |
* |
|
290 |
* @param localeLanguage the value of field 'localeLanguage'. |
|
291 |
*/ |
|
292 |
public void setLocaleLanguage(java.lang.String localeLanguage) |
|
293 |
{ |
|
294 |
this._localeLanguage = localeLanguage; |
Also available in: Unified diff