1 /*
2 * This class was automatically generated with
3 * <a href="http://castor.exolab.org">Castor 0.9.4</a>, using an
4 * XML Schema.
5 * $Id$
6 */
7
8 package org.enableit.db.beans;
9
10 //---------------------------------/
11 //- Imported classes and packages -/
12 //---------------------------------/
13
14 import org.exolab.castor.mapping.AccessMode;
15 import org.exolab.castor.mapping.ClassDescriptor;
16 import org.exolab.castor.mapping.FieldDescriptor;
17 import org.exolab.castor.xml.*;
18 import org.exolab.castor.xml.FieldValidator;
19 import org.exolab.castor.xml.TypeValidator;
20 import org.exolab.castor.xml.XMLFieldDescriptor;
21 import org.exolab.castor.xml.handlers.*;
22 import org.exolab.castor.xml.util.XMLFieldDescriptorImpl;
23 import org.exolab.castor.xml.validators.*;
24
25 /***
26 *
27 *
28 * @version $Revision$ $Date$
29 **/
30 public class RowDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {
31
32
33 //--------------------------/
34 //- Class/Member Variables -/
35 //--------------------------/
36
37 private java.lang.String nsPrefix;
38
39 private java.lang.String nsURI;
40
41 private java.lang.String xmlName;
42
43 private org.exolab.castor.xml.XMLFieldDescriptor identity;
44
45
46 //----------------/
47 //- Constructors -/
48 //----------------/
49
50 public RowDescriptor() {
51 super();
52 xmlName = "row";
53
54 //-- set grouping compositor
55 setCompositorAsSequence();
56 XMLFieldDescriptorImpl desc = null;
57 XMLFieldHandler handler = null;
58 FieldValidator fieldValidator = null;
59 //-- initialize attribute descriptors
60
61 //-- initialize element descriptors
62
63 //-- _colList
64 desc = new XMLFieldDescriptorImpl(Col.class, "_colList", "col", NodeType.Element);
65 handler = (new XMLFieldHandler() {
66 public java.lang.Object getValue( java.lang.Object object )
67 throws IllegalStateException
68 {
69 Row target = (Row) object;
70 return target.getCol();
71 }
72 public void setValue( java.lang.Object object, java.lang.Object value)
73 throws IllegalStateException, IllegalArgumentException
74 {
75 try {
76 Row target = (Row) object;
77 target.addCol( (Col) value);
78 }
79 catch (Exception ex) {
80 throw new IllegalStateException(ex.toString());
81 }
82 }
83 public java.lang.Object newInstance( java.lang.Object parent ) {
84 return new Col();
85 }
86 } );
87 desc.setHandler(handler);
88 desc.setRequired(true);
89 desc.setMultivalued(true);
90 addFieldDescriptor(desc);
91
92 //-- validation code for: _colList
93 fieldValidator = new FieldValidator();
94 fieldValidator.setMinOccurs(1);
95 { //-- local scope
96 }
97 desc.setValidator(fieldValidator);
98 } //-- org.enableit.db.beans.RowDescriptor()
99
100
101 //-----------/
102 //- Methods -/
103 //-----------/
104
105 /***
106 **/
107 public org.exolab.castor.mapping.AccessMode getAccessMode()
108 {
109 return null;
110 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
111
112 /***
113 **/
114 public org.exolab.castor.mapping.ClassDescriptor getExtends()
115 {
116 return null;
117 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
118
119 /***
120 **/
121 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
122 {
123 return identity;
124 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
125
126 /***
127 **/
128 public java.lang.Class getJavaClass()
129 {
130 return org.enableit.db.beans.Row.class;
131 } //-- java.lang.Class getJavaClass()
132
133 /***
134 **/
135 public java.lang.String getNameSpacePrefix()
136 {
137 return nsPrefix;
138 } //-- java.lang.String getNameSpacePrefix()
139
140 /***
141 **/
142 public java.lang.String getNameSpaceURI()
143 {
144 return nsURI;
145 } //-- java.lang.String getNameSpaceURI()
146
147 /***
148 **/
149 public org.exolab.castor.xml.TypeValidator getValidator()
150 {
151 return this;
152 } //-- org.exolab.castor.xml.TypeValidator getValidator()
153
154 /***
155 **/
156 public java.lang.String getXMLName()
157 {
158 return xmlName;
159 } //-- java.lang.String getXMLName()
160
161 }
This page was automatically generated by Maven