svn-gvsig-desktop / trunk / frameworks / _fwAndami / src / com / iver / andami / persistence / generate / ToolBarsDescriptor.java @ 598
History | View | Annotate | Download (4.8 KB)
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: ToolBarsDescriptor.java 598 2004-12-22 10:11:38Z fernando $
|
6 |
*/
|
7 |
|
8 |
package com.iver.andami.persistence.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 ToolBarsDescriptor.
|
21 |
*
|
22 |
* @version $Revision: 598 $ $Date: 2004-12-22 11:11:38 +0100 (Wed, 22 Dec 2004) $
|
23 |
*/
|
24 |
public class ToolBarsDescriptor 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 ToolBarsDescriptor() {
|
57 |
super();
|
58 |
xmlName = "tool-bars";
|
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 |
//-- initialize element descriptors
|
68 |
|
69 |
//-- _toolBarList
|
70 |
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.iver.andami.persistence.generate.ToolBar.class, "_toolBarList", "tool-bar", org.exolab.castor.xml.NodeType.Element); |
71 |
handler = (new org.exolab.castor.xml.XMLFieldHandler() {
|
72 |
public java.lang.Object getValue( java.lang.Object object )
|
73 |
throws IllegalStateException |
74 |
{ |
75 |
ToolBars target = (ToolBars) object; |
76 |
return target.getToolBar();
|
77 |
} |
78 |
public void setValue( java.lang.Object object, java.lang.Object value) |
79 |
throws IllegalStateException, IllegalArgumentException |
80 |
{ |
81 |
try {
|
82 |
ToolBars target = (ToolBars) object; |
83 |
target.addToolBar( (com.iver.andami.persistence.generate.ToolBar) value); |
84 |
} |
85 |
catch (java.lang.Exception ex) {
|
86 |
throw new IllegalStateException(ex.toString()); |
87 |
} |
88 |
} |
89 |
public java.lang.Object newInstance( java.lang.Object parent ) {
|
90 |
return new com.iver.andami.persistence.generate.ToolBar(); |
91 |
} |
92 |
} ); |
93 |
desc.setHandler(handler); |
94 |
desc.setRequired(true);
|
95 |
desc.setMultivalued(true);
|
96 |
addFieldDescriptor(desc); |
97 |
|
98 |
//-- validation code for: _toolBarList
|
99 |
fieldValidator = new org.exolab.castor.xml.FieldValidator();
|
100 |
fieldValidator.setMinOccurs(1);
|
101 |
{ //-- local scope
|
102 |
} |
103 |
desc.setValidator(fieldValidator); |
104 |
} //-- com.iver.andami.persistence.generate.ToolBarsDescriptor()
|
105 |
|
106 |
|
107 |
//-----------/
|
108 |
//- Methods -/
|
109 |
//-----------/
|
110 |
|
111 |
/**
|
112 |
* Method getAccessMode
|
113 |
*/
|
114 |
public org.exolab.castor.mapping.AccessMode getAccessMode()
|
115 |
{ |
116 |
return null; |
117 |
} //-- org.exolab.castor.mapping.AccessMode getAccessMode()
|
118 |
|
119 |
/**
|
120 |
* Method getExtends
|
121 |
*/
|
122 |
public org.exolab.castor.mapping.ClassDescriptor getExtends()
|
123 |
{ |
124 |
return null; |
125 |
} //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
|
126 |
|
127 |
/**
|
128 |
* Method getIdentity
|
129 |
*/
|
130 |
public org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
131 |
{ |
132 |
return identity;
|
133 |
} //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
|
134 |
|
135 |
/**
|
136 |
* Method getJavaClass
|
137 |
*/
|
138 |
public java.lang.Class getJavaClass()
|
139 |
{ |
140 |
return com.iver.andami.persistence.generate.ToolBars.class;
|
141 |
} //-- java.lang.Class getJavaClass()
|
142 |
|
143 |
/**
|
144 |
* Method getNameSpacePrefix
|
145 |
*/
|
146 |
public java.lang.String getNameSpacePrefix()
|
147 |
{ |
148 |
return nsPrefix;
|
149 |
} //-- java.lang.String getNameSpacePrefix()
|
150 |
|
151 |
/**
|
152 |
* Method getNameSpaceURI
|
153 |
*/
|
154 |
public java.lang.String getNameSpaceURI()
|
155 |
{ |
156 |
return nsURI;
|
157 |
} //-- java.lang.String getNameSpaceURI()
|
158 |
|
159 |
/**
|
160 |
* Method getValidator
|
161 |
*/
|
162 |
public org.exolab.castor.xml.TypeValidator getValidator()
|
163 |
{ |
164 |
return this; |
165 |
} //-- org.exolab.castor.xml.TypeValidator getValidator()
|
166 |
|
167 |
/**
|
168 |
* Method getXMLName
|
169 |
*/
|
170 |
public java.lang.String getXMLName()
|
171 |
{ |
172 |
return xmlName;
|
173 |
} //-- java.lang.String getXMLName()
|
174 |
|
175 |
} |