001: /*
002: * This class was automatically generated with
003: * <a href="http://www.castor.org">Castor 0.9.4.3</a>, using an XML
004: * Schema.
005: * $Id$
006: */
007:
008: package com.calipso.reportgenerator.reportdefinitions;
009:
010: //---------------------------------/
011: //- Imported classes and packages -/
012: //---------------------------------/
013:
014: import org.exolab.castor.mapping.AccessMode;
015: import org.exolab.castor.xml.TypeValidator;
016: import org.exolab.castor.xml.XMLFieldDescriptor;
017: import org.exolab.castor.xml.validators.*;
018:
019: /**
020: * Class DrillDownDefinitionDescriptor.
021: *
022: * @version $Revision$ $Date$
023: */
024: public class DrillDownDefinitionDescriptor extends
025: org.exolab.castor.xml.util.XMLClassDescriptorImpl {
026:
027: //--------------------------/
028: //- Class/Member Variables -/
029: //--------------------------/
030:
031: /**
032: * Field nsPrefix
033: */
034: private java.lang.String nsPrefix;
035:
036: /**
037: * Field nsURI
038: */
039: private java.lang.String nsURI;
040:
041: /**
042: * Field xmlName
043: */
044: private java.lang.String xmlName;
045:
046: /**
047: * Field identity
048: */
049: private org.exolab.castor.xml.XMLFieldDescriptor identity;
050:
051: //----------------/
052: //- Constructors -/
053: //----------------/
054:
055: public DrillDownDefinitionDescriptor() {
056: super ();
057: xmlName = "DrillDownDefinition";
058:
059: //-- set grouping compositor
060: setCompositorAsSequence();
061: org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
062: org.exolab.castor.xml.XMLFieldHandler handler = null;
063: org.exolab.castor.xml.FieldValidator fieldValidator = null;
064: //-- initialize attribute descriptors
065:
066: //-- _name
067: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
068: java.lang.String.class, "_name", "Name",
069: org.exolab.castor.xml.NodeType.Attribute);
070: desc.setImmutable(true);
071: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
072: public java.lang.Object getValue(java.lang.Object object)
073: throws IllegalStateException {
074: DrillDownDefinition target = (DrillDownDefinition) object;
075: return target.getName();
076: }
077:
078: public void setValue(java.lang.Object object,
079: java.lang.Object value)
080: throws IllegalStateException,
081: IllegalArgumentException {
082: try {
083: DrillDownDefinition target = (DrillDownDefinition) object;
084: target.setName((java.lang.String) value);
085: } catch (java.lang.Exception ex) {
086: throw new IllegalStateException(ex.toString());
087: }
088: }
089:
090: public java.lang.Object newInstance(java.lang.Object parent) {
091: return null;
092: }
093: });
094: desc.setHandler(handler);
095: desc.setRequired(true);
096: addFieldDescriptor(desc);
097:
098: //-- validation code for: _name
099: fieldValidator = new org.exolab.castor.xml.FieldValidator();
100: fieldValidator.setMinOccurs(1);
101: { //-- local scope
102: StringValidator typeValidator = new StringValidator();
103: typeValidator.setWhiteSpace("preserve");
104: fieldValidator.setValidator(typeValidator);
105: }
106: desc.setValidator(fieldValidator);
107: //-- _description
108: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
109: java.lang.String.class, "_description", "Description",
110: org.exolab.castor.xml.NodeType.Attribute);
111: desc.setImmutable(true);
112: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
113: public java.lang.Object getValue(java.lang.Object object)
114: throws IllegalStateException {
115: DrillDownDefinition target = (DrillDownDefinition) object;
116: return target.getDescription();
117: }
118:
119: public void setValue(java.lang.Object object,
120: java.lang.Object value)
121: throws IllegalStateException,
122: IllegalArgumentException {
123: try {
124: DrillDownDefinition target = (DrillDownDefinition) object;
125: target.setDescription((java.lang.String) value);
126: } catch (java.lang.Exception ex) {
127: throw new IllegalStateException(ex.toString());
128: }
129: }
130:
131: public java.lang.Object newInstance(java.lang.Object parent) {
132: return null;
133: }
134: });
135: desc.setHandler(handler);
136: desc.setRequired(true);
137: addFieldDescriptor(desc);
138:
139: //-- validation code for: _description
140: fieldValidator = new org.exolab.castor.xml.FieldValidator();
141: fieldValidator.setMinOccurs(1);
142: { //-- local scope
143: StringValidator typeValidator = new StringValidator();
144: typeValidator.setWhiteSpace("preserve");
145: fieldValidator.setValidator(typeValidator);
146: }
147: desc.setValidator(fieldValidator);
148: //-- _targetReportDefinitionID
149: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
150: java.lang.String.class, "_targetReportDefinitionID",
151: "TargetReportDefinitionID",
152: org.exolab.castor.xml.NodeType.Attribute);
153: desc.setImmutable(true);
154: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
155: public java.lang.Object getValue(java.lang.Object object)
156: throws IllegalStateException {
157: DrillDownDefinition target = (DrillDownDefinition) object;
158: return target.getTargetReportDefinitionID();
159: }
160:
161: public void setValue(java.lang.Object object,
162: java.lang.Object value)
163: throws IllegalStateException,
164: IllegalArgumentException {
165: try {
166: DrillDownDefinition target = (DrillDownDefinition) object;
167: target
168: .setTargetReportDefinitionID((java.lang.String) value);
169: } catch (java.lang.Exception ex) {
170: throw new IllegalStateException(ex.toString());
171: }
172: }
173:
174: public java.lang.Object newInstance(java.lang.Object parent) {
175: return null;
176: }
177: });
178: desc.setHandler(handler);
179: desc.setRequired(true);
180: addFieldDescriptor(desc);
181:
182: //-- validation code for: _targetReportDefinitionID
183: fieldValidator = new org.exolab.castor.xml.FieldValidator();
184: fieldValidator.setMinOccurs(1);
185: { //-- local scope
186: StringValidator typeValidator = new StringValidator();
187: typeValidator.setWhiteSpace("preserve");
188: fieldValidator.setValidator(typeValidator);
189: }
190: desc.setValidator(fieldValidator);
191: //-- _type
192: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
193: com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType.class,
194: "_type", "Type",
195: org.exolab.castor.xml.NodeType.Attribute);
196: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
197: public java.lang.Object getValue(java.lang.Object object)
198: throws IllegalStateException {
199: DrillDownDefinition target = (DrillDownDefinition) object;
200: return target.getType();
201: }
202:
203: public void setValue(java.lang.Object object,
204: java.lang.Object value)
205: throws IllegalStateException,
206: IllegalArgumentException {
207: try {
208: DrillDownDefinition target = (DrillDownDefinition) object;
209: target
210: .setType((com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType) value);
211: } catch (java.lang.Exception ex) {
212: throw new IllegalStateException(ex.toString());
213: }
214: }
215:
216: public java.lang.Object newInstance(java.lang.Object parent) {
217: return null;
218: }
219: });
220: desc
221: .setHandler(new org.exolab.castor.xml.handlers.EnumFieldHandler(
222: com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType.class,
223: handler));
224: desc.setImmutable(true);
225: addFieldDescriptor(desc);
226:
227: //-- validation code for: _type
228: fieldValidator = new org.exolab.castor.xml.FieldValidator();
229: { //-- local scope
230: }
231: desc.setValidator(fieldValidator);
232: //-- initialize element descriptors
233:
234: //-- _parameterBindList
235: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
236: com.calipso.reportgenerator.reportdefinitions.ParameterBind.class,
237: "_parameterBindList", "ParameterBind",
238: org.exolab.castor.xml.NodeType.Element);
239: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
240: public java.lang.Object getValue(java.lang.Object object)
241: throws IllegalStateException {
242: DrillDownDefinition target = (DrillDownDefinition) object;
243: return target.getParameterBind();
244: }
245:
246: public void setValue(java.lang.Object object,
247: java.lang.Object value)
248: throws IllegalStateException,
249: IllegalArgumentException {
250: try {
251: DrillDownDefinition target = (DrillDownDefinition) object;
252: target
253: .addParameterBind((com.calipso.reportgenerator.reportdefinitions.ParameterBind) value);
254: } catch (java.lang.Exception ex) {
255: throw new IllegalStateException(ex.toString());
256: }
257: }
258:
259: public java.lang.Object newInstance(java.lang.Object parent) {
260: return new com.calipso.reportgenerator.reportdefinitions.ParameterBind();
261: }
262: });
263: desc.setHandler(handler);
264: desc.setMultivalued(true);
265: addFieldDescriptor(desc);
266:
267: //-- validation code for: _parameterBindList
268: fieldValidator = new org.exolab.castor.xml.FieldValidator();
269: fieldValidator.setMinOccurs(0);
270: { //-- local scope
271: }
272: desc.setValidator(fieldValidator);
273: //-- _dimensionBindList
274: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
275: com.calipso.reportgenerator.reportdefinitions.DimensionBind.class,
276: "_dimensionBindList", "DimensionBind",
277: org.exolab.castor.xml.NodeType.Element);
278: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
279: public java.lang.Object getValue(java.lang.Object object)
280: throws IllegalStateException {
281: DrillDownDefinition target = (DrillDownDefinition) object;
282: return target.getDimensionBind();
283: }
284:
285: public void setValue(java.lang.Object object,
286: java.lang.Object value)
287: throws IllegalStateException,
288: IllegalArgumentException {
289: try {
290: DrillDownDefinition target = (DrillDownDefinition) object;
291: target
292: .addDimensionBind((com.calipso.reportgenerator.reportdefinitions.DimensionBind) value);
293: } catch (java.lang.Exception ex) {
294: throw new IllegalStateException(ex.toString());
295: }
296: }
297:
298: public java.lang.Object newInstance(java.lang.Object parent) {
299: return new com.calipso.reportgenerator.reportdefinitions.DimensionBind();
300: }
301: });
302: desc.setHandler(handler);
303: desc.setMultivalued(true);
304: addFieldDescriptor(desc);
305:
306: //-- validation code for: _dimensionBindList
307: fieldValidator = new org.exolab.castor.xml.FieldValidator();
308: fieldValidator.setMinOccurs(0);
309: { //-- local scope
310: }
311: desc.setValidator(fieldValidator);
312: } //-- com.calipso.reportgenerator.reportdefinitions.DrillDownDefinitionDescriptor()
313:
314: //-----------/
315: //- Methods -/
316: //-----------/
317:
318: /**
319: * Method getAccessMode
320: */
321: public org.exolab.castor.mapping.AccessMode getAccessMode() {
322: return null;
323: } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
324:
325: /**
326: * Method getExtends
327: */
328: public org.exolab.castor.mapping.ClassDescriptor getExtends() {
329: return null;
330: } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
331:
332: /**
333: * Method getIdentity
334: */
335: public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
336: return identity;
337: } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
338:
339: /**
340: * Method getJavaClass
341: */
342: public java.lang.Class getJavaClass() {
343: return com.calipso.reportgenerator.reportdefinitions.DrillDownDefinition.class;
344: } //-- java.lang.Class getJavaClass()
345:
346: /**
347: * Method getNameSpacePrefix
348: */
349: public java.lang.String getNameSpacePrefix() {
350: return nsPrefix;
351: } //-- java.lang.String getNameSpacePrefix()
352:
353: /**
354: * Method getNameSpaceURI
355: */
356: public java.lang.String getNameSpaceURI() {
357: return nsURI;
358: } //-- java.lang.String getNameSpaceURI()
359:
360: /**
361: * Method getValidator
362: */
363: public org.exolab.castor.xml.TypeValidator getValidator() {
364: return this ;
365: } //-- org.exolab.castor.xml.TypeValidator getValidator()
366:
367: /**
368: * Method getXMLName
369: */
370: public java.lang.String getXMLName() {
371: return xmlName;
372: } //-- java.lang.String getXMLName()
373:
374: }
|