Revision 6431
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/LabelDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.IntegerValidator; |
|
15 |
import org.exolab.castor.xml.validators.NameValidator; |
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
16 | 18 |
|
17 | 19 |
/** |
18 | 20 |
* Class LabelDescriptor. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ExtensionType.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
14 | 19 |
import org.exolab.castor.xml.Marshaller; |
15 | 20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
16 | 23 |
|
17 | 24 |
/** |
18 | 25 |
* Class ExtensionType. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/Label.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
14 | 19 |
import org.exolab.castor.xml.Marshaller; |
15 | 20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
16 | 23 |
|
17 | 24 |
/** |
18 | 25 |
* Class Label. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ResourceBundleDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.NameValidator; |
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
15 | 18 |
|
16 | 19 |
/** |
17 | 20 |
* Class ResourceBundleDescriptor. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/DependsDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.StringValidator; |
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
15 | 18 |
|
16 | 19 |
/** |
17 | 20 |
* Class DependsDescriptor. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ResourceBundle.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
14 | 19 |
import org.exolab.castor.xml.Marshaller; |
15 | 20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
16 | 23 |
|
17 | 24 |
/** |
18 | 25 |
* Class ResourceBundle. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/Depends.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
14 | 19 |
import org.exolab.castor.xml.Marshaller; |
15 | 20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
16 | 23 |
|
17 | 24 |
/** |
18 | 25 |
* Class Depends. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/PopupMenuDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.StringValidator; |
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
15 | 18 |
|
16 | 19 |
/** |
17 | 20 |
* Class PopupMenuDescriptor. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/PopupMenu.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import java.util.Enumeration; |
|
14 | 19 |
import java.util.Vector; |
15 |
|
|
20 |
import org.exolab.castor.xml.MarshalException; |
|
16 | 21 |
import org.exolab.castor.xml.Marshaller; |
17 | 22 |
import org.exolab.castor.xml.Unmarshaller; |
23 |
import org.exolab.castor.xml.ValidationException; |
|
24 |
import org.xml.sax.ContentHandler; |
|
18 | 25 |
|
19 | 26 |
/** |
20 | 27 |
* Class PopupMenu. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ComboButtonDescriptor.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.plugins.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
18 |
|
|
19 |
/** |
|
20 |
* Class ComboButtonDescriptor. |
|
21 |
* |
|
22 |
* @version $Revision$ $Date$ |
|
23 |
*/ |
|
24 |
public class ComboButtonDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
|
25 |
|
|
26 |
|
|
27 |
//--------------------------/ |
|
28 |
//- Class/Member Variables -/ |
|
29 |
//--------------------------/ |
|
30 |
|
|
31 |
/** |
|
32 |
* Field nsPrefix |
|
33 |
*/ |
|
34 |
private java.lang.String nsPrefix; |
|
35 |
|
|
36 |
/** |
|
37 |
* Field nsURI |
|
38 |
*/ |
|
39 |
private java.lang.String nsURI; |
|
40 |
|
|
41 |
/** |
|
42 |
* Field xmlName |
|
43 |
*/ |
|
44 |
private java.lang.String xmlName; |
|
45 |
|
|
46 |
/** |
|
47 |
* Field identity |
|
48 |
*/ |
|
49 |
private org.exolab.castor.xml.XMLFieldDescriptor identity; |
|
50 |
|
|
51 |
|
|
52 |
//----------------/ |
|
53 |
//- Constructors -/ |
|
54 |
//----------------/ |
|
55 |
|
|
56 |
public ComboButtonDescriptor() { |
|
57 |
super(); |
|
58 |
xmlName = "combo-button"; |
|
59 |
|
|
60 |
//-- set grouping compositor |
|
61 |
setCompositorAsSequence(); |
|
62 |
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; |
|
63 |
org.exolab.castor.xml.XMLFieldHandler handler = null; |
|
64 |
org.exolab.castor.xml.FieldValidator fieldValidator = null; |
|
65 |
//-- initialize attribute descriptors |
|
66 |
|
|
67 |
//-- _name |
|
68 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute); |
|
69 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
70 |
public java.lang.Object getValue( java.lang.Object object ) |
|
71 |
throws IllegalStateException |
|
72 |
{ |
|
73 |
ComboButton target = (ComboButton) object; |
|
74 |
return target.getName(); |
|
75 |
} |
|
76 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
77 |
throws IllegalStateException, IllegalArgumentException |
|
78 |
{ |
|
79 |
try { |
|
80 |
ComboButton target = (ComboButton) object; |
|
81 |
target.setName( (java.lang.Object) value); |
|
82 |
} |
|
83 |
catch (java.lang.Exception ex) { |
|
84 |
throw new IllegalStateException(ex.toString()); |
|
85 |
} |
|
86 |
} |
|
87 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
88 |
return new java.lang.Object(); |
|
89 |
} |
|
90 |
} ); |
|
91 |
desc.setHandler(handler); |
|
92 |
desc.setRequired(true); |
|
93 |
addFieldDescriptor(desc); |
|
94 |
|
|
95 |
//-- validation code for: _name |
|
96 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
97 |
fieldValidator.setMinOccurs(1); |
|
98 |
{ //-- local scope |
|
99 |
} |
|
100 |
desc.setValidator(fieldValidator); |
|
101 |
//-- initialize element descriptors |
|
102 |
|
|
103 |
//-- _comboButtonElementList |
|
104 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.ComboButtonElement.class, "_comboButtonElementList", "combo-button-element", org.exolab.castor.xml.NodeType.Element); |
|
105 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
106 |
public java.lang.Object getValue( java.lang.Object object ) |
|
107 |
throws IllegalStateException |
|
108 |
{ |
|
109 |
ComboButton target = (ComboButton) object; |
|
110 |
return target.getComboButtonElement(); |
|
111 |
} |
|
112 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
113 |
throws IllegalStateException, IllegalArgumentException |
|
114 |
{ |
|
115 |
try { |
|
116 |
ComboButton target = (ComboButton) object; |
|
117 |
target.addComboButtonElement( (com.iver.andami.plugins.config.generate.ComboButtonElement) value); |
|
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 new com.iver.andami.plugins.config.generate.ComboButtonElement(); |
|
125 |
} |
|
126 |
} ); |
|
127 |
desc.setHandler(handler); |
|
128 |
desc.setMultivalued(true); |
|
129 |
addFieldDescriptor(desc); |
|
130 |
|
|
131 |
//-- validation code for: _comboButtonElementList |
|
132 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
133 |
fieldValidator.setMinOccurs(0); |
|
134 |
{ //-- local scope |
|
135 |
} |
|
136 |
desc.setValidator(fieldValidator); |
|
137 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonDescriptor() |
|
138 |
|
|
139 |
|
|
140 |
//-----------/ |
|
141 |
//- Methods -/ |
|
142 |
//-----------/ |
|
143 |
|
|
144 |
/** |
|
145 |
* Method getAccessMode |
|
146 |
*/ |
|
147 |
public org.exolab.castor.mapping.AccessMode getAccessMode() |
|
148 |
{ |
|
149 |
return null; |
|
150 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode() |
|
151 |
|
|
152 |
/** |
|
153 |
* Method getExtends |
|
154 |
*/ |
|
155 |
public org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
156 |
{ |
|
157 |
return null; |
|
158 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
159 |
|
|
160 |
/** |
|
161 |
* Method getIdentity |
|
162 |
*/ |
|
163 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
164 |
{ |
|
165 |
return identity; |
|
166 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
167 |
|
|
168 |
/** |
|
169 |
* Method getJavaClass |
|
170 |
*/ |
|
171 |
public java.lang.Class getJavaClass() |
|
172 |
{ |
|
173 |
return com.iver.andami.plugins.config.generate.ComboButton.class; |
|
174 |
} //-- java.lang.Class getJavaClass() |
|
175 |
|
|
176 |
/** |
|
177 |
* Method getNameSpacePrefix |
|
178 |
*/ |
|
179 |
public java.lang.String getNameSpacePrefix() |
|
180 |
{ |
|
181 |
return nsPrefix; |
|
182 |
} //-- java.lang.String getNameSpacePrefix() |
|
183 |
|
|
184 |
/** |
|
185 |
* Method getNameSpaceURI |
|
186 |
*/ |
|
187 |
public java.lang.String getNameSpaceURI() |
|
188 |
{ |
|
189 |
return nsURI; |
|
190 |
} //-- java.lang.String getNameSpaceURI() |
|
191 |
|
|
192 |
/** |
|
193 |
* Method getValidator |
|
194 |
*/ |
|
195 |
public org.exolab.castor.xml.TypeValidator getValidator() |
|
196 |
{ |
|
197 |
return this; |
|
198 |
} //-- org.exolab.castor.xml.TypeValidator getValidator() |
|
199 |
|
|
200 |
/** |
|
201 |
* Method getXMLName |
|
202 |
*/ |
|
203 |
public java.lang.String getXMLName() |
|
204 |
{ |
|
205 |
return xmlName; |
|
206 |
} //-- java.lang.String getXMLName() |
|
207 |
|
|
208 |
} |
|
0 | 209 |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ComboButton.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.plugins.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import java.util.Enumeration; |
|
19 |
import java.util.Vector; |
|
20 |
import org.exolab.castor.xml.MarshalException; |
|
21 |
import org.exolab.castor.xml.Marshaller; |
|
22 |
import org.exolab.castor.xml.Unmarshaller; |
|
23 |
import org.exolab.castor.xml.ValidationException; |
|
24 |
import org.xml.sax.ContentHandler; |
|
25 |
|
|
26 |
/** |
|
27 |
* Class ComboButton. |
|
28 |
* |
|
29 |
* @version $Revision$ $Date$ |
|
30 |
*/ |
|
31 |
public class ComboButton implements java.io.Serializable { |
|
32 |
|
|
33 |
|
|
34 |
//--------------------------/ |
|
35 |
//- Class/Member Variables -/ |
|
36 |
//--------------------------/ |
|
37 |
|
|
38 |
/** |
|
39 |
* Field _name |
|
40 |
*/ |
|
41 |
private java.lang.Object _name; |
|
42 |
|
|
43 |
/** |
|
44 |
* Field _comboButtonElementList |
|
45 |
*/ |
|
46 |
private java.util.Vector _comboButtonElementList; |
|
47 |
|
|
48 |
|
|
49 |
//----------------/ |
|
50 |
//- Constructors -/ |
|
51 |
//----------------/ |
|
52 |
|
|
53 |
public ComboButton() { |
|
54 |
super(); |
|
55 |
_comboButtonElementList = new Vector(); |
|
56 |
} //-- com.iver.andami.plugins.config.generate.ComboButton() |
|
57 |
|
|
58 |
|
|
59 |
//-----------/ |
|
60 |
//- Methods -/ |
|
61 |
//-----------/ |
|
62 |
|
|
63 |
/** |
|
64 |
* Method addComboButtonElement |
|
65 |
* |
|
66 |
* @param vComboButtonElement |
|
67 |
*/ |
|
68 |
public void addComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement vComboButtonElement) |
|
69 |
throws java.lang.IndexOutOfBoundsException |
|
70 |
{ |
|
71 |
_comboButtonElementList.addElement(vComboButtonElement); |
|
72 |
} //-- void addComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement) |
|
73 |
|
|
74 |
/** |
|
75 |
* Method addComboButtonElement |
|
76 |
* |
|
77 |
* @param index |
|
78 |
* @param vComboButtonElement |
|
79 |
*/ |
|
80 |
public void addComboButtonElement(int index, com.iver.andami.plugins.config.generate.ComboButtonElement vComboButtonElement) |
|
81 |
throws java.lang.IndexOutOfBoundsException |
|
82 |
{ |
|
83 |
_comboButtonElementList.insertElementAt(vComboButtonElement, index); |
|
84 |
} //-- void addComboButtonElement(int, com.iver.andami.plugins.config.generate.ComboButtonElement) |
|
85 |
|
|
86 |
/** |
|
87 |
* Method enumerateComboButtonElement |
|
88 |
*/ |
|
89 |
public java.util.Enumeration enumerateComboButtonElement() |
|
90 |
{ |
|
91 |
return _comboButtonElementList.elements(); |
|
92 |
} //-- java.util.Enumeration enumerateComboButtonElement() |
|
93 |
|
|
94 |
/** |
|
95 |
* Method getComboButtonElement |
|
96 |
* |
|
97 |
* @param index |
|
98 |
*/ |
|
99 |
public com.iver.andami.plugins.config.generate.ComboButtonElement getComboButtonElement(int index) |
|
100 |
throws java.lang.IndexOutOfBoundsException |
|
101 |
{ |
|
102 |
//-- check bounds for index |
|
103 |
if ((index < 0) || (index > _comboButtonElementList.size())) { |
|
104 |
throw new IndexOutOfBoundsException(); |
|
105 |
} |
|
106 |
|
|
107 |
return (com.iver.andami.plugins.config.generate.ComboButtonElement) _comboButtonElementList.elementAt(index); |
|
108 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement getComboButtonElement(int) |
|
109 |
|
|
110 |
/** |
|
111 |
* Method getComboButtonElement |
|
112 |
*/ |
|
113 |
public com.iver.andami.plugins.config.generate.ComboButtonElement[] getComboButtonElement() |
|
114 |
{ |
|
115 |
int size = _comboButtonElementList.size(); |
|
116 |
com.iver.andami.plugins.config.generate.ComboButtonElement[] mArray = new com.iver.andami.plugins.config.generate.ComboButtonElement[size]; |
|
117 |
for (int index = 0; index < size; index++) { |
|
118 |
mArray[index] = (com.iver.andami.plugins.config.generate.ComboButtonElement) _comboButtonElementList.elementAt(index); |
|
119 |
} |
|
120 |
return mArray; |
|
121 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement[] getComboButtonElement() |
|
122 |
|
|
123 |
/** |
|
124 |
* Method getComboButtonElementCount |
|
125 |
*/ |
|
126 |
public int getComboButtonElementCount() |
|
127 |
{ |
|
128 |
return _comboButtonElementList.size(); |
|
129 |
} //-- int getComboButtonElementCount() |
|
130 |
|
|
131 |
/** |
|
132 |
* Returns the value of field 'name'. |
|
133 |
* |
|
134 |
* @return the value of field 'name'. |
|
135 |
*/ |
|
136 |
public java.lang.Object getName() |
|
137 |
{ |
|
138 |
return this._name; |
|
139 |
} //-- java.lang.Object getName() |
|
140 |
|
|
141 |
/** |
|
142 |
* Method isValid |
|
143 |
*/ |
|
144 |
public boolean isValid() |
|
145 |
{ |
|
146 |
try { |
|
147 |
validate(); |
|
148 |
} |
|
149 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
150 |
return false; |
|
151 |
} |
|
152 |
return true; |
|
153 |
} //-- boolean isValid() |
|
154 |
|
|
155 |
/** |
|
156 |
* Method marshal |
|
157 |
* |
|
158 |
* @param out |
|
159 |
*/ |
|
160 |
public void marshal(java.io.Writer out) |
|
161 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
162 |
{ |
|
163 |
|
|
164 |
Marshaller.marshal(this, out); |
|
165 |
} //-- void marshal(java.io.Writer) |
|
166 |
|
|
167 |
/** |
|
168 |
* Method marshal |
|
169 |
* |
|
170 |
* @param handler |
|
171 |
*/ |
|
172 |
public void marshal(org.xml.sax.ContentHandler handler) |
|
173 |
throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
174 |
{ |
|
175 |
|
|
176 |
Marshaller.marshal(this, handler); |
|
177 |
} //-- void marshal(org.xml.sax.ContentHandler) |
|
178 |
|
|
179 |
/** |
|
180 |
* Method removeAllComboButtonElement |
|
181 |
*/ |
|
182 |
public void removeAllComboButtonElement() |
|
183 |
{ |
|
184 |
_comboButtonElementList.removeAllElements(); |
|
185 |
} //-- void removeAllComboButtonElement() |
|
186 |
|
|
187 |
/** |
|
188 |
* Method removeComboButtonElement |
|
189 |
* |
|
190 |
* @param index |
|
191 |
*/ |
|
192 |
public com.iver.andami.plugins.config.generate.ComboButtonElement removeComboButtonElement(int index) |
|
193 |
{ |
|
194 |
java.lang.Object obj = _comboButtonElementList.elementAt(index); |
|
195 |
_comboButtonElementList.removeElementAt(index); |
|
196 |
return (com.iver.andami.plugins.config.generate.ComboButtonElement) obj; |
|
197 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement removeComboButtonElement(int) |
|
198 |
|
|
199 |
/** |
|
200 |
* Method setComboButtonElement |
|
201 |
* |
|
202 |
* @param index |
|
203 |
* @param vComboButtonElement |
|
204 |
*/ |
|
205 |
public void setComboButtonElement(int index, com.iver.andami.plugins.config.generate.ComboButtonElement vComboButtonElement) |
|
206 |
throws java.lang.IndexOutOfBoundsException |
|
207 |
{ |
|
208 |
//-- check bounds for index |
|
209 |
if ((index < 0) || (index > _comboButtonElementList.size())) { |
|
210 |
throw new IndexOutOfBoundsException(); |
|
211 |
} |
|
212 |
_comboButtonElementList.setElementAt(vComboButtonElement, index); |
|
213 |
} //-- void setComboButtonElement(int, com.iver.andami.plugins.config.generate.ComboButtonElement) |
|
214 |
|
|
215 |
/** |
|
216 |
* Method setComboButtonElement |
|
217 |
* |
|
218 |
* @param comboButtonElementArray |
|
219 |
*/ |
|
220 |
public void setComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement[] comboButtonElementArray) |
|
221 |
{ |
|
222 |
//-- copy array |
|
223 |
_comboButtonElementList.removeAllElements(); |
|
224 |
for (int i = 0; i < comboButtonElementArray.length; i++) { |
|
225 |
_comboButtonElementList.addElement(comboButtonElementArray[i]); |
|
226 |
} |
|
227 |
} //-- void setComboButtonElement(com.iver.andami.plugins.config.generate.ComboButtonElement) |
|
228 |
|
|
229 |
/** |
|
230 |
* Sets the value of field 'name'. |
|
231 |
* |
|
232 |
* @param name the value of field 'name'. |
|
233 |
*/ |
|
234 |
public void setName(java.lang.Object name) |
|
235 |
{ |
|
236 |
this._name = name; |
|
237 |
} //-- void setName(java.lang.Object) |
|
238 |
|
|
239 |
/** |
|
240 |
* Method unmarshal |
|
241 |
* |
|
242 |
* @param reader |
|
243 |
*/ |
|
244 |
public static java.lang.Object unmarshal(java.io.Reader reader) |
|
245 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
246 |
{ |
|
247 |
return (com.iver.andami.plugins.config.generate.ComboButton) Unmarshaller.unmarshal(com.iver.andami.plugins.config.generate.ComboButton.class, reader); |
|
248 |
} //-- java.lang.Object unmarshal(java.io.Reader) |
|
249 |
|
|
250 |
/** |
|
251 |
* Method validate |
|
252 |
*/ |
|
253 |
public void validate() |
|
254 |
throws org.exolab.castor.xml.ValidationException |
|
255 |
{ |
|
256 |
org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); |
|
257 |
validator.validate(this); |
|
258 |
} //-- void validate() |
|
259 |
|
|
260 |
} |
|
0 | 261 |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/SelectableToolDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.BooleanValidator; |
|
15 |
import org.exolab.castor.xml.validators.IntegerValidator; |
|
16 |
import org.exolab.castor.xml.validators.StringValidator; |
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
17 | 18 |
|
18 | 19 |
/** |
19 | 20 |
* Class SelectableToolDescriptor. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/SelectableTool.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
14 | 19 |
import org.exolab.castor.xml.Marshaller; |
15 | 20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
16 | 23 |
|
17 | 24 |
/** |
18 | 25 |
* Class SelectableTool. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/SkinExtensionTypeDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.NameValidator; |
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
15 | 18 |
|
16 | 19 |
/** |
17 | 20 |
* Class SkinExtensionTypeDescriptor. |
... | ... | |
167 | 170 |
{ //-- local scope |
168 | 171 |
} |
169 | 172 |
desc.setValidator(fieldValidator); |
173 |
//-- _comboButtonList |
|
174 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.ComboButton.class, "_comboButtonList", "combo-button", org.exolab.castor.xml.NodeType.Element); |
|
175 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
176 |
public java.lang.Object getValue( java.lang.Object object ) |
|
177 |
throws IllegalStateException |
|
178 |
{ |
|
179 |
SkinExtensionType target = (SkinExtensionType) object; |
|
180 |
return target.getComboButton(); |
|
181 |
} |
|
182 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
183 |
throws IllegalStateException, IllegalArgumentException |
|
184 |
{ |
|
185 |
try { |
|
186 |
SkinExtensionType target = (SkinExtensionType) object; |
|
187 |
target.addComboButton( (com.iver.andami.plugins.config.generate.ComboButton) 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 new com.iver.andami.plugins.config.generate.ComboButton(); |
|
195 |
} |
|
196 |
} ); |
|
197 |
desc.setHandler(handler); |
|
198 |
desc.setMultivalued(true); |
|
199 |
addFieldDescriptor(desc); |
|
200 |
|
|
201 |
//-- validation code for: _comboButtonList |
|
202 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
203 |
fieldValidator.setMinOccurs(0); |
|
204 |
{ //-- local scope |
|
205 |
} |
|
206 |
desc.setValidator(fieldValidator); |
|
207 |
//-- _comboScaleList |
|
208 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.plugins.config.generate.ComboScale.class, "_comboScaleList", "combo-scale", org.exolab.castor.xml.NodeType.Element); |
|
209 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
210 |
public java.lang.Object getValue( java.lang.Object object ) |
|
211 |
throws IllegalStateException |
|
212 |
{ |
|
213 |
SkinExtensionType target = (SkinExtensionType) object; |
|
214 |
return target.getComboScale(); |
|
215 |
} |
|
216 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
217 |
throws IllegalStateException, IllegalArgumentException |
|
218 |
{ |
|
219 |
try { |
|
220 |
SkinExtensionType target = (SkinExtensionType) object; |
|
221 |
target.addComboScale( (com.iver.andami.plugins.config.generate.ComboScale) value); |
|
222 |
} |
|
223 |
catch (java.lang.Exception ex) { |
|
224 |
throw new IllegalStateException(ex.toString()); |
|
225 |
} |
|
226 |
} |
|
227 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
228 |
return new com.iver.andami.plugins.config.generate.ComboScale(); |
|
229 |
} |
|
230 |
} ); |
|
231 |
desc.setHandler(handler); |
|
232 |
desc.setMultivalued(true); |
|
233 |
addFieldDescriptor(desc); |
|
234 |
|
|
235 |
//-- validation code for: _comboScaleList |
|
236 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
237 |
fieldValidator.setMinOccurs(0); |
|
238 |
{ //-- local scope |
|
239 |
} |
|
240 |
desc.setValidator(fieldValidator); |
|
170 | 241 |
} //-- com.iver.andami.plugins.config.generate.SkinExtensionTypeDescriptor() |
171 | 242 |
|
172 | 243 |
|
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/MenuDescriptor.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import org.exolab.castor.xml.validators.BooleanValidator;
|
|
15 |
import org.exolab.castor.xml.validators.IntegerValidator;
|
|
16 |
import org.exolab.castor.xml.validators.NameValidator;
|
|
17 |
import org.exolab.castor.xml.validators.StringValidator;
|
|
14 |
import org.exolab.castor.mapping.AccessMode;
|
|
15 |
import org.exolab.castor.xml.TypeValidator;
|
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor;
|
|
17 |
import org.exolab.castor.xml.validators.*;
|
|
18 | 18 |
|
19 | 19 |
/** |
20 | 20 |
* Class MenuDescriptor. |
... | ... | |
91 | 91 |
//-- validation code for: _actionCommand |
92 | 92 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
93 | 93 |
{ //-- local scope |
94 |
// JMVIVO |
|
95 |
//NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN); |
|
96 |
StringValidator typeValidator = new StringValidator(); |
|
97 |
typeValidator.setWhiteSpace("preserve"); |
|
98 |
// JMVIVO |
|
94 |
NameValidator typeValidator = new NameValidator(NameValidator.NMTOKEN); |
|
99 | 95 |
fieldValidator.setValidator(typeValidator); |
100 | 96 |
} |
101 | 97 |
desc.setValidator(fieldValidator); |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/SkinExtensionType.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import java.util.Enumeration; |
|
14 | 19 |
import java.util.Vector; |
15 |
|
|
20 |
import org.exolab.castor.xml.MarshalException; |
|
16 | 21 |
import org.exolab.castor.xml.Marshaller; |
17 | 22 |
import org.exolab.castor.xml.Unmarshaller; |
23 |
import org.exolab.castor.xml.ValidationException; |
|
24 |
import org.xml.sax.ContentHandler; |
|
18 | 25 |
|
19 | 26 |
/** |
20 | 27 |
* Class SkinExtensionType. |
... | ... | |
43 | 50 |
*/ |
44 | 51 |
private java.util.Vector _toolBarList; |
45 | 52 |
|
53 |
/** |
|
54 |
* Field _comboButtonList |
|
55 |
*/ |
|
56 |
private java.util.Vector _comboButtonList; |
|
46 | 57 |
|
58 |
/** |
|
59 |
* Field _comboScaleList |
|
60 |
*/ |
|
61 |
private java.util.Vector _comboScaleList; |
|
62 |
|
|
63 |
|
|
47 | 64 |
//----------------/ |
48 | 65 |
//- Constructors -/ |
49 | 66 |
//----------------/ |
... | ... | |
52 | 69 |
super(); |
53 | 70 |
_menuList = new Vector(); |
54 | 71 |
_toolBarList = new Vector(); |
72 |
_comboButtonList = new Vector(); |
|
73 |
_comboScaleList = new Vector(); |
|
55 | 74 |
} //-- com.iver.andami.plugins.config.generate.SkinExtensionType() |
56 | 75 |
|
57 | 76 |
|
... | ... | |
60 | 79 |
//-----------/ |
61 | 80 |
|
62 | 81 |
/** |
82 |
* Method addComboButton |
|
83 |
* |
|
84 |
* @param vComboButton |
|
85 |
*/ |
|
86 |
public void addComboButton(com.iver.andami.plugins.config.generate.ComboButton vComboButton) |
|
87 |
throws java.lang.IndexOutOfBoundsException |
|
88 |
{ |
|
89 |
_comboButtonList.addElement(vComboButton); |
|
90 |
} //-- void addComboButton(com.iver.andami.plugins.config.generate.ComboButton) |
|
91 |
|
|
92 |
/** |
|
93 |
* Method addComboButton |
|
94 |
* |
|
95 |
* @param index |
|
96 |
* @param vComboButton |
|
97 |
*/ |
|
98 |
public void addComboButton(int index, com.iver.andami.plugins.config.generate.ComboButton vComboButton) |
|
99 |
throws java.lang.IndexOutOfBoundsException |
|
100 |
{ |
|
101 |
_comboButtonList.insertElementAt(vComboButton, index); |
|
102 |
} //-- void addComboButton(int, com.iver.andami.plugins.config.generate.ComboButton) |
|
103 |
|
|
104 |
/** |
|
105 |
* Method addComboScale |
|
106 |
* |
|
107 |
* @param vComboScale |
|
108 |
*/ |
|
109 |
public void addComboScale(com.iver.andami.plugins.config.generate.ComboScale vComboScale) |
|
110 |
throws java.lang.IndexOutOfBoundsException |
|
111 |
{ |
|
112 |
_comboScaleList.addElement(vComboScale); |
|
113 |
} //-- void addComboScale(com.iver.andami.plugins.config.generate.ComboScale) |
|
114 |
|
|
115 |
/** |
|
116 |
* Method addComboScale |
|
117 |
* |
|
118 |
* @param index |
|
119 |
* @param vComboScale |
|
120 |
*/ |
|
121 |
public void addComboScale(int index, com.iver.andami.plugins.config.generate.ComboScale vComboScale) |
|
122 |
throws java.lang.IndexOutOfBoundsException |
|
123 |
{ |
|
124 |
_comboScaleList.insertElementAt(vComboScale, index); |
|
125 |
} //-- void addComboScale(int, com.iver.andami.plugins.config.generate.ComboScale) |
|
126 |
|
|
127 |
/** |
|
63 | 128 |
* Method addMenu |
64 | 129 |
* |
65 | 130 |
* @param vMenu |
... | ... | |
106 | 171 |
} //-- void addToolBar(int, com.iver.andami.plugins.config.generate.ToolBar) |
107 | 172 |
|
108 | 173 |
/** |
174 |
* Method enumerateComboButton |
|
175 |
*/ |
|
176 |
public java.util.Enumeration enumerateComboButton() |
|
177 |
{ |
|
178 |
return _comboButtonList.elements(); |
|
179 |
} //-- java.util.Enumeration enumerateComboButton() |
|
180 |
|
|
181 |
/** |
|
182 |
* Method enumerateComboScale |
|
183 |
*/ |
|
184 |
public java.util.Enumeration enumerateComboScale() |
|
185 |
{ |
|
186 |
return _comboScaleList.elements(); |
|
187 |
} //-- java.util.Enumeration enumerateComboScale() |
|
188 |
|
|
189 |
/** |
|
109 | 190 |
* Method enumerateMenu |
110 | 191 |
*/ |
111 | 192 |
public java.util.Enumeration enumerateMenu() |
... | ... | |
132 | 213 |
} //-- java.lang.String getClassName() |
133 | 214 |
|
134 | 215 |
/** |
216 |
* Method getComboButton |
|
217 |
* |
|
218 |
* @param index |
|
219 |
*/ |
|
220 |
public com.iver.andami.plugins.config.generate.ComboButton getComboButton(int index) |
|
221 |
throws java.lang.IndexOutOfBoundsException |
|
222 |
{ |
|
223 |
//-- check bounds for index |
|
224 |
if ((index < 0) || (index > _comboButtonList.size())) { |
|
225 |
throw new IndexOutOfBoundsException(); |
|
226 |
} |
|
227 |
|
|
228 |
return (com.iver.andami.plugins.config.generate.ComboButton) _comboButtonList.elementAt(index); |
|
229 |
} //-- com.iver.andami.plugins.config.generate.ComboButton getComboButton(int) |
|
230 |
|
|
231 |
/** |
|
232 |
* Method getComboButton |
|
233 |
*/ |
|
234 |
public com.iver.andami.plugins.config.generate.ComboButton[] getComboButton() |
|
235 |
{ |
|
236 |
int size = _comboButtonList.size(); |
|
237 |
com.iver.andami.plugins.config.generate.ComboButton[] mArray = new com.iver.andami.plugins.config.generate.ComboButton[size]; |
|
238 |
for (int index = 0; index < size; index++) { |
|
239 |
mArray[index] = (com.iver.andami.plugins.config.generate.ComboButton) _comboButtonList.elementAt(index); |
|
240 |
} |
|
241 |
return mArray; |
|
242 |
} //-- com.iver.andami.plugins.config.generate.ComboButton[] getComboButton() |
|
243 |
|
|
244 |
/** |
|
245 |
* Method getComboButtonCount |
|
246 |
*/ |
|
247 |
public int getComboButtonCount() |
|
248 |
{ |
|
249 |
return _comboButtonList.size(); |
|
250 |
} //-- int getComboButtonCount() |
|
251 |
|
|
252 |
/** |
|
253 |
* Method getComboScale |
|
254 |
* |
|
255 |
* @param index |
|
256 |
*/ |
|
257 |
public com.iver.andami.plugins.config.generate.ComboScale getComboScale(int index) |
|
258 |
throws java.lang.IndexOutOfBoundsException |
|
259 |
{ |
|
260 |
//-- check bounds for index |
|
261 |
if ((index < 0) || (index > _comboScaleList.size())) { |
|
262 |
throw new IndexOutOfBoundsException(); |
|
263 |
} |
|
264 |
|
|
265 |
return (com.iver.andami.plugins.config.generate.ComboScale) _comboScaleList.elementAt(index); |
|
266 |
} //-- com.iver.andami.plugins.config.generate.ComboScale getComboScale(int) |
|
267 |
|
|
268 |
/** |
|
269 |
* Method getComboScale |
|
270 |
*/ |
|
271 |
public com.iver.andami.plugins.config.generate.ComboScale[] getComboScale() |
|
272 |
{ |
|
273 |
int size = _comboScaleList.size(); |
|
274 |
com.iver.andami.plugins.config.generate.ComboScale[] mArray = new com.iver.andami.plugins.config.generate.ComboScale[size]; |
|
275 |
for (int index = 0; index < size; index++) { |
|
276 |
mArray[index] = (com.iver.andami.plugins.config.generate.ComboScale) _comboScaleList.elementAt(index); |
|
277 |
} |
|
278 |
return mArray; |
|
279 |
} //-- com.iver.andami.plugins.config.generate.ComboScale[] getComboScale() |
|
280 |
|
|
281 |
/** |
|
282 |
* Method getComboScaleCount |
|
283 |
*/ |
|
284 |
public int getComboScaleCount() |
|
285 |
{ |
|
286 |
return _comboScaleList.size(); |
|
287 |
} //-- int getComboScaleCount() |
|
288 |
|
|
289 |
/** |
|
135 | 290 |
* Method getMenu |
136 | 291 |
* |
137 | 292 |
* @param index |
... | ... | |
244 | 399 |
} //-- void marshal(org.xml.sax.ContentHandler) |
245 | 400 |
|
246 | 401 |
/** |
402 |
* Method removeAllComboButton |
|
403 |
*/ |
|
404 |
public void removeAllComboButton() |
|
405 |
{ |
|
406 |
_comboButtonList.removeAllElements(); |
|
407 |
} //-- void removeAllComboButton() |
|
408 |
|
|
409 |
/** |
|
410 |
* Method removeAllComboScale |
|
411 |
*/ |
|
412 |
public void removeAllComboScale() |
|
413 |
{ |
|
414 |
_comboScaleList.removeAllElements(); |
|
415 |
} //-- void removeAllComboScale() |
|
416 |
|
|
417 |
/** |
|
247 | 418 |
* Method removeAllMenu |
248 | 419 |
*/ |
249 | 420 |
public void removeAllMenu() |
... | ... | |
260 | 431 |
} //-- void removeAllToolBar() |
261 | 432 |
|
262 | 433 |
/** |
434 |
* Method removeComboButton |
|
435 |
* |
|
436 |
* @param index |
|
437 |
*/ |
|
438 |
public com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int index) |
|
439 |
{ |
|
440 |
java.lang.Object obj = _comboButtonList.elementAt(index); |
|
441 |
_comboButtonList.removeElementAt(index); |
|
442 |
return (com.iver.andami.plugins.config.generate.ComboButton) obj; |
|
443 |
} //-- com.iver.andami.plugins.config.generate.ComboButton removeComboButton(int) |
|
444 |
|
|
445 |
/** |
|
446 |
* Method removeComboScale |
|
447 |
* |
|
448 |
* @param index |
|
449 |
*/ |
|
450 |
public com.iver.andami.plugins.config.generate.ComboScale removeComboScale(int index) |
|
451 |
{ |
|
452 |
java.lang.Object obj = _comboScaleList.elementAt(index); |
|
453 |
_comboScaleList.removeElementAt(index); |
|
454 |
return (com.iver.andami.plugins.config.generate.ComboScale) obj; |
|
455 |
} //-- com.iver.andami.plugins.config.generate.ComboScale removeComboScale(int) |
|
456 |
|
|
457 |
/** |
|
263 | 458 |
* Method removeMenu |
264 | 459 |
* |
265 | 460 |
* @param index |
... | ... | |
294 | 489 |
} //-- void setClassName(java.lang.String) |
295 | 490 |
|
296 | 491 |
/** |
492 |
* Method setComboButton |
|
493 |
* |
|
494 |
* @param index |
|
495 |
* @param vComboButton |
|
496 |
*/ |
|
497 |
public void setComboButton(int index, com.iver.andami.plugins.config.generate.ComboButton vComboButton) |
|
498 |
throws java.lang.IndexOutOfBoundsException |
|
499 |
{ |
|
500 |
//-- check bounds for index |
|
501 |
if ((index < 0) || (index > _comboButtonList.size())) { |
|
502 |
throw new IndexOutOfBoundsException(); |
|
503 |
} |
|
504 |
_comboButtonList.setElementAt(vComboButton, index); |
|
505 |
} //-- void setComboButton(int, com.iver.andami.plugins.config.generate.ComboButton) |
|
506 |
|
|
507 |
/** |
|
508 |
* Method setComboButton |
|
509 |
* |
|
510 |
* @param comboButtonArray |
|
511 |
*/ |
|
512 |
public void setComboButton(com.iver.andami.plugins.config.generate.ComboButton[] comboButtonArray) |
|
513 |
{ |
|
514 |
//-- copy array |
|
515 |
_comboButtonList.removeAllElements(); |
|
516 |
for (int i = 0; i < comboButtonArray.length; i++) { |
|
517 |
_comboButtonList.addElement(comboButtonArray[i]); |
|
518 |
} |
|
519 |
} //-- void setComboButton(com.iver.andami.plugins.config.generate.ComboButton) |
|
520 |
|
|
521 |
/** |
|
522 |
* Method setComboScale |
|
523 |
* |
|
524 |
* @param index |
|
525 |
* @param vComboScale |
|
526 |
*/ |
|
527 |
public void setComboScale(int index, com.iver.andami.plugins.config.generate.ComboScale vComboScale) |
|
528 |
throws java.lang.IndexOutOfBoundsException |
|
529 |
{ |
|
530 |
//-- check bounds for index |
|
531 |
if ((index < 0) || (index > _comboScaleList.size())) { |
|
532 |
throw new IndexOutOfBoundsException(); |
|
533 |
} |
|
534 |
_comboScaleList.setElementAt(vComboScale, index); |
|
535 |
} //-- void setComboScale(int, com.iver.andami.plugins.config.generate.ComboScale) |
|
536 |
|
|
537 |
/** |
|
538 |
* Method setComboScale |
|
539 |
* |
|
540 |
* @param comboScaleArray |
|
541 |
*/ |
|
542 |
public void setComboScale(com.iver.andami.plugins.config.generate.ComboScale[] comboScaleArray) |
|
543 |
{ |
|
544 |
//-- copy array |
|
545 |
_comboScaleList.removeAllElements(); |
|
546 |
for (int i = 0; i < comboScaleArray.length; i++) { |
|
547 |
_comboScaleList.addElement(comboScaleArray[i]); |
|
548 |
} |
|
549 |
} //-- void setComboScale(com.iver.andami.plugins.config.generate.ComboScale) |
|
550 |
|
|
551 |
/** |
|
297 | 552 |
* Method setMenu |
298 | 553 |
* |
299 | 554 |
* @param index |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/Menu.java | ||
---|---|---|
11 | 11 |
//- Imported classes and packages -/ |
12 | 12 |
//---------------------------------/ |
13 | 13 |
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
14 | 19 |
import org.exolab.castor.xml.Marshaller; |
15 | 20 |
import org.exolab.castor.xml.Unmarshaller; |
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
16 | 23 |
|
17 | 24 |
/** |
18 | 25 |
* Class Menu. |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ComboButtonElementDescriptor.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.plugins.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import org.exolab.castor.mapping.AccessMode; |
|
15 |
import org.exolab.castor.xml.TypeValidator; |
|
16 |
import org.exolab.castor.xml.XMLFieldDescriptor; |
|
17 |
import org.exolab.castor.xml.validators.*; |
|
18 |
|
|
19 |
/** |
|
20 |
* Class ComboButtonElementDescriptor. |
|
21 |
* |
|
22 |
* @version $Revision$ $Date$ |
|
23 |
*/ |
|
24 |
public class ComboButtonElementDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { |
|
25 |
|
|
26 |
|
|
27 |
//--------------------------/ |
|
28 |
//- Class/Member Variables -/ |
|
29 |
//--------------------------/ |
|
30 |
|
|
31 |
/** |
|
32 |
* Field nsPrefix |
|
33 |
*/ |
|
34 |
private java.lang.String nsPrefix; |
|
35 |
|
|
36 |
/** |
|
37 |
* Field nsURI |
|
38 |
*/ |
|
39 |
private java.lang.String nsURI; |
|
40 |
|
|
41 |
/** |
|
42 |
* Field xmlName |
|
43 |
*/ |
|
44 |
private java.lang.String xmlName; |
|
45 |
|
|
46 |
/** |
|
47 |
* Field identity |
|
48 |
*/ |
|
49 |
private org.exolab.castor.xml.XMLFieldDescriptor identity; |
|
50 |
|
|
51 |
|
|
52 |
//----------------/ |
|
53 |
//- Constructors -/ |
|
54 |
//----------------/ |
|
55 |
|
|
56 |
public ComboButtonElementDescriptor() { |
|
57 |
super(); |
|
58 |
xmlName = "combo-button-element"; |
|
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 |
//-- _icon |
|
65 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_icon", "icon", org.exolab.castor.xml.NodeType.Attribute); |
|
66 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() { |
|
67 |
public java.lang.Object getValue( java.lang.Object object ) |
|
68 |
throws IllegalStateException |
|
69 |
{ |
|
70 |
ComboButtonElement target = (ComboButtonElement) object; |
|
71 |
return target.getIcon(); |
|
72 |
} |
|
73 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
74 |
throws IllegalStateException, IllegalArgumentException |
|
75 |
{ |
|
76 |
try { |
|
77 |
ComboButtonElement target = (ComboButtonElement) object; |
|
78 |
target.setIcon( (java.lang.Object) value); |
|
79 |
} |
|
80 |
catch (java.lang.Exception ex) { |
|
81 |
throw new IllegalStateException(ex.toString()); |
|
82 |
} |
|
83 |
} |
|
84 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
85 |
return new java.lang.Object(); |
|
86 |
} |
|
87 |
} ); |
|
88 |
desc.setHandler(handler); |
|
89 |
desc.setRequired(true); |
|
90 |
addFieldDescriptor(desc); |
|
91 |
|
|
92 |
//-- validation code for: _icon |
|
93 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
94 |
fieldValidator.setMinOccurs(1); |
|
95 |
{ //-- local scope |
|
96 |
} |
|
97 |
desc.setValidator(fieldValidator); |
|
98 |
//-- _actionCommand |
|
99 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_actionCommand", "action-command", 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 |
ComboButtonElement target = (ComboButtonElement) object; |
|
105 |
return target.getActionCommand(); |
|
106 |
} |
|
107 |
public void setValue( java.lang.Object object, java.lang.Object value) |
|
108 |
throws IllegalStateException, IllegalArgumentException |
|
109 |
{ |
|
110 |
try { |
|
111 |
ComboButtonElement target = (ComboButtonElement) object; |
|
112 |
target.setActionCommand( (java.lang.Object) value); |
|
113 |
} |
|
114 |
catch (java.lang.Exception ex) { |
|
115 |
throw new IllegalStateException(ex.toString()); |
|
116 |
} |
|
117 |
} |
|
118 |
public java.lang.Object newInstance( java.lang.Object parent ) { |
|
119 |
return new java.lang.Object(); |
|
120 |
} |
|
121 |
} ); |
|
122 |
desc.setHandler(handler); |
|
123 |
desc.setRequired(true); |
|
124 |
addFieldDescriptor(desc); |
|
125 |
|
|
126 |
//-- validation code for: _actionCommand |
|
127 |
fieldValidator = new org.exolab.castor.xml.FieldValidator(); |
|
128 |
fieldValidator.setMinOccurs(1); |
|
129 |
{ //-- local scope |
|
130 |
} |
|
131 |
desc.setValidator(fieldValidator); |
|
132 |
//-- initialize element descriptors |
|
133 |
|
|
134 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElementDescriptor() |
|
135 |
|
|
136 |
|
|
137 |
//-----------/ |
|
138 |
//- Methods -/ |
|
139 |
//-----------/ |
|
140 |
|
|
141 |
/** |
|
142 |
* Method getAccessMode |
|
143 |
*/ |
|
144 |
public org.exolab.castor.mapping.AccessMode getAccessMode() |
|
145 |
{ |
|
146 |
return null; |
|
147 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode() |
|
148 |
|
|
149 |
/** |
|
150 |
* Method getExtends |
|
151 |
*/ |
|
152 |
public org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
153 |
{ |
|
154 |
return null; |
|
155 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends() |
|
156 |
|
|
157 |
/** |
|
158 |
* Method getIdentity |
|
159 |
*/ |
|
160 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
161 |
{ |
|
162 |
return identity; |
|
163 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() |
|
164 |
|
|
165 |
/** |
|
166 |
* Method getJavaClass |
|
167 |
*/ |
|
168 |
public java.lang.Class getJavaClass() |
|
169 |
{ |
|
170 |
return com.iver.andami.plugins.config.generate.ComboButtonElement.class; |
|
171 |
} //-- java.lang.Class getJavaClass() |
|
172 |
|
|
173 |
/** |
|
174 |
* Method getNameSpacePrefix |
|
175 |
*/ |
|
176 |
public java.lang.String getNameSpacePrefix() |
|
177 |
{ |
|
178 |
return nsPrefix; |
|
179 |
} //-- java.lang.String getNameSpacePrefix() |
|
180 |
|
|
181 |
/** |
|
182 |
* Method getNameSpaceURI |
|
183 |
*/ |
|
184 |
public java.lang.String getNameSpaceURI() |
|
185 |
{ |
|
186 |
return nsURI; |
|
187 |
} //-- java.lang.String getNameSpaceURI() |
|
188 |
|
|
189 |
/** |
|
190 |
* Method getValidator |
|
191 |
*/ |
|
192 |
public org.exolab.castor.xml.TypeValidator getValidator() |
|
193 |
{ |
|
194 |
return this; |
|
195 |
} //-- org.exolab.castor.xml.TypeValidator getValidator() |
|
196 |
|
|
197 |
/** |
|
198 |
* Method getXMLName |
|
199 |
*/ |
|
200 |
public java.lang.String getXMLName() |
|
201 |
{ |
|
202 |
return xmlName; |
|
203 |
} //-- java.lang.String getXMLName() |
|
204 |
|
|
205 |
} |
|
0 | 206 |
trunk/frameworks/_fwAndami/src/com/iver/andami/plugins/config/generate/ComboButtonElement.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.plugins.config.generate; |
|
9 |
|
|
10 |
//---------------------------------/ |
|
11 |
//- Imported classes and packages -/ |
|
12 |
//---------------------------------/ |
|
13 |
|
|
14 |
import java.io.IOException; |
|
15 |
import java.io.Reader; |
|
16 |
import java.io.Serializable; |
|
17 |
import java.io.Writer; |
|
18 |
import org.exolab.castor.xml.MarshalException; |
|
19 |
import org.exolab.castor.xml.Marshaller; |
|
20 |
import org.exolab.castor.xml.Unmarshaller; |
|
21 |
import org.exolab.castor.xml.ValidationException; |
|
22 |
import org.xml.sax.ContentHandler; |
|
23 |
|
|
24 |
/** |
|
25 |
* Class ComboButtonElement. |
|
26 |
* |
|
27 |
* @version $Revision$ $Date$ |
|
28 |
*/ |
|
29 |
public class ComboButtonElement implements java.io.Serializable { |
|
30 |
|
|
31 |
|
|
32 |
//--------------------------/ |
|
33 |
//- Class/Member Variables -/ |
|
34 |
//--------------------------/ |
|
35 |
|
|
36 |
/** |
|
37 |
* Field _icon |
|
38 |
*/ |
|
39 |
private java.lang.Object _icon; |
|
40 |
|
|
41 |
/** |
|
42 |
* Field _actionCommand |
|
43 |
*/ |
|
44 |
private java.lang.Object _actionCommand; |
|
45 |
|
|
46 |
|
|
47 |
//----------------/ |
|
48 |
//- Constructors -/ |
|
49 |
//----------------/ |
|
50 |
|
|
51 |
public ComboButtonElement() { |
|
52 |
super(); |
|
53 |
} //-- com.iver.andami.plugins.config.generate.ComboButtonElement() |
|
54 |
|
|
55 |
|
|
56 |
//-----------/ |
|
57 |
//- Methods -/ |
|
58 |
//-----------/ |
|
59 |
|
|
60 |
/** |
|
61 |
* Returns the value of field 'actionCommand'. |
|
62 |
* |
|
63 |
* @return the value of field 'actionCommand'. |
|
64 |
*/ |
|
65 |
public java.lang.Object getActionCommand() |
|
66 |
{ |
|
67 |
return this._actionCommand; |
|
68 |
} //-- java.lang.Object getActionCommand() |
|
69 |
|
|
70 |
/** |
|
71 |
* Returns the value of field 'icon'. |
|
72 |
* |
|
73 |
* @return the value of field 'icon'. |
|
74 |
*/ |
|
75 |
public java.lang.Object getIcon() |
|
76 |
{ |
|
77 |
return this._icon; |
|
78 |
} //-- java.lang.Object getIcon() |
|
79 |
|
|
80 |
/** |
|
81 |
* Method isValid |
|
82 |
*/ |
|
83 |
public boolean isValid() |
|
84 |
{ |
|
85 |
try { |
|
86 |
validate(); |
|
87 |
} |
|
88 |
catch (org.exolab.castor.xml.ValidationException vex) { |
|
89 |
return false; |
|
90 |
} |
|
91 |
return true; |
|
92 |
} //-- boolean isValid() |
|
93 |
|
|
94 |
/** |
|
95 |
* Method marshal |
|
96 |
* |
|
97 |
* @param out |
|
98 |
*/ |
|
99 |
public void marshal(java.io.Writer out) |
|
100 |
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException |
|
101 |
{ |
|
102 |
|
|
103 |
Marshaller.marshal(this, out); |
Also available in: Unified diff