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 CataloguesDescriptor 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 CataloguesDescriptor() {
51 super();
52 nsURI = "http://darrt.sourceforge.net/schemas/darrt";
53 xmlName = "catalogues";
54
55 //-- set grouping compositor
56 setCompositorAsSequence();
57 XMLFieldDescriptorImpl desc = null;
58 XMLFieldHandler handler = null;
59 FieldValidator fieldValidator = null;
60 //-- initialize attribute descriptors
61
62 //-- initialize element descriptors
63
64 //-- _nameList
65 desc = new XMLFieldDescriptorImpl(java.lang.String.class, "_nameList", "name", NodeType.Element);
66 desc.setImmutable(true);
67 handler = (new XMLFieldHandler() {
68 public java.lang.Object getValue( java.lang.Object object )
69 throws IllegalStateException
70 {
71 Catalogues target = (Catalogues) object;
72 return target.getName();
73 }
74 public void setValue( java.lang.Object object, java.lang.Object value)
75 throws IllegalStateException, IllegalArgumentException
76 {
77 try {
78 Catalogues target = (Catalogues) object;
79 target.addName( (java.lang.String) value);
80 }
81 catch (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 desc.setNameSpaceURI("http://darrt.sourceforge.net/schemas/darrt");
91 desc.setMultivalued(true);
92 addFieldDescriptor(desc);
93
94 //-- validation code for: _nameList
95 fieldValidator = new FieldValidator();
96 fieldValidator.setMinOccurs(0);
97 { //-- local scope
98 StringValidator typeValidator = new StringValidator();
99 typeValidator.setWhiteSpace("preserve");
100 fieldValidator.setValidator(typeValidator);
101 }
102 desc.setValidator(fieldValidator);
103 } //-- org.enableit.db.beans.CataloguesDescriptor()
104
105
106 //-----------/
107 //- Methods -/
108 //-----------/
109
110 /***
111 **/
112 public org.exolab.castor.mapping.AccessMode getAccessMode()
113 {
114 return null;
115 } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
116
117 /***
118 **/
119 public org.exolab.castor.mapping.ClassDescriptor getExtends()
120 {
121 return null;
122 } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
123
124 /***
125 **/
126 public org.exolab.castor.mapping.FieldDescriptor getIdentity()
127 {
128 return identity;
129 } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
130
131 /***
132 **/
133 public java.lang.Class getJavaClass()
134 {
135 return org.enableit.db.beans.Catalogues.class;
136 } //-- java.lang.Class getJavaClass()
137
138 /***
139 **/
140 public java.lang.String getNameSpacePrefix()
141 {
142 return nsPrefix;
143 } //-- java.lang.String getNameSpacePrefix()
144
145 /***
146 **/
147 public java.lang.String getNameSpaceURI()
148 {
149 return nsURI;
150 } //-- java.lang.String getNameSpaceURI()
151
152 /***
153 **/
154 public org.exolab.castor.xml.TypeValidator getValidator()
155 {
156 return this;
157 } //-- org.exolab.castor.xml.TypeValidator getValidator()
158
159 /***
160 **/
161 public java.lang.String getXMLName()
162 {
163 return xmlName;
164 } //-- java.lang.String getXMLName()
165
166 }
This page was automatically generated by Maven