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 DimensionBindDescriptor.
021: *
022: * @version $Revision$ $Date$
023: */
024: public class DimensionBindDescriptor 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 DimensionBindDescriptor() {
056: super ();
057: xmlName = "DimensionBind";
058: org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;
059: org.exolab.castor.xml.XMLFieldHandler handler = null;
060: org.exolab.castor.xml.FieldValidator fieldValidator = null;
061: //-- initialize attribute descriptors
062:
063: //-- _sourceDimensionName
064: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
065: java.lang.String.class, "_sourceDimensionName",
066: "SourceDimensionName",
067: org.exolab.castor.xml.NodeType.Attribute);
068: desc.setImmutable(true);
069: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
070: public java.lang.Object getValue(java.lang.Object object)
071: throws IllegalStateException {
072: DimensionBind target = (DimensionBind) object;
073: return target.getSourceDimensionName();
074: }
075:
076: public void setValue(java.lang.Object object,
077: java.lang.Object value)
078: throws IllegalStateException,
079: IllegalArgumentException {
080: try {
081: DimensionBind target = (DimensionBind) object;
082: target
083: .setSourceDimensionName((java.lang.String) value);
084: } catch (java.lang.Exception ex) {
085: throw new IllegalStateException(ex.toString());
086: }
087: }
088:
089: public java.lang.Object newInstance(java.lang.Object parent) {
090: return null;
091: }
092: });
093: desc.setHandler(handler);
094: desc.setRequired(true);
095: addFieldDescriptor(desc);
096:
097: //-- validation code for: _sourceDimensionName
098: fieldValidator = new org.exolab.castor.xml.FieldValidator();
099: fieldValidator.setMinOccurs(1);
100: { //-- local scope
101: StringValidator typeValidator = new StringValidator();
102: typeValidator.setWhiteSpace("preserve");
103: fieldValidator.setValidator(typeValidator);
104: }
105: desc.setValidator(fieldValidator);
106: //-- _targetFilterName
107: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
108: java.lang.String.class, "_targetFilterName",
109: "TargetFilterName",
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: DimensionBind target = (DimensionBind) object;
116: return target.getTargetFilterName();
117: }
118:
119: public void setValue(java.lang.Object object,
120: java.lang.Object value)
121: throws IllegalStateException,
122: IllegalArgumentException {
123: try {
124: DimensionBind target = (DimensionBind) object;
125: target
126: .setTargetFilterName((java.lang.String) value);
127: } catch (java.lang.Exception ex) {
128: throw new IllegalStateException(ex.toString());
129: }
130: }
131:
132: public java.lang.Object newInstance(java.lang.Object parent) {
133: return null;
134: }
135: });
136: desc.setHandler(handler);
137: desc.setRequired(true);
138: addFieldDescriptor(desc);
139:
140: //-- validation code for: _targetFilterName
141: fieldValidator = new org.exolab.castor.xml.FieldValidator();
142: fieldValidator.setMinOccurs(1);
143: { //-- local scope
144: StringValidator typeValidator = new StringValidator();
145: typeValidator.setWhiteSpace("preserve");
146: fieldValidator.setValidator(typeValidator);
147: }
148: desc.setValidator(fieldValidator);
149: //-- _targetParameterName
150: desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(
151: java.lang.String.class, "_targetParameterName",
152: "TargetParameterName",
153: org.exolab.castor.xml.NodeType.Attribute);
154: desc.setImmutable(true);
155: handler = (new org.exolab.castor.xml.XMLFieldHandler() {
156: public java.lang.Object getValue(java.lang.Object object)
157: throws IllegalStateException {
158: DimensionBind target = (DimensionBind) object;
159: return target.getTargetParameterName();
160: }
161:
162: public void setValue(java.lang.Object object,
163: java.lang.Object value)
164: throws IllegalStateException,
165: IllegalArgumentException {
166: try {
167: DimensionBind target = (DimensionBind) object;
168: target
169: .setTargetParameterName((java.lang.String) value);
170: } catch (java.lang.Exception ex) {
171: throw new IllegalStateException(ex.toString());
172: }
173: }
174:
175: public java.lang.Object newInstance(java.lang.Object parent) {
176: return null;
177: }
178: });
179: desc.setHandler(handler);
180: desc.setRequired(true);
181: addFieldDescriptor(desc);
182:
183: //-- validation code for: _targetParameterName
184: fieldValidator = new org.exolab.castor.xml.FieldValidator();
185: fieldValidator.setMinOccurs(1);
186: { //-- local scope
187: StringValidator typeValidator = new StringValidator();
188: typeValidator.setWhiteSpace("preserve");
189: fieldValidator.setValidator(typeValidator);
190: }
191: desc.setValidator(fieldValidator);
192: //-- initialize element descriptors
193:
194: } //-- com.calipso.reportgenerator.reportdefinitions.DimensionBindDescriptor()
195:
196: //-----------/
197: //- Methods -/
198: //-----------/
199:
200: /**
201: * Method getAccessMode
202: */
203: public org.exolab.castor.mapping.AccessMode getAccessMode() {
204: return null;
205: } //-- org.exolab.castor.mapping.AccessMode getAccessMode()
206:
207: /**
208: * Method getExtends
209: */
210: public org.exolab.castor.mapping.ClassDescriptor getExtends() {
211: return null;
212: } //-- org.exolab.castor.mapping.ClassDescriptor getExtends()
213:
214: /**
215: * Method getIdentity
216: */
217: public org.exolab.castor.mapping.FieldDescriptor getIdentity() {
218: return identity;
219: } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity()
220:
221: /**
222: * Method getJavaClass
223: */
224: public java.lang.Class getJavaClass() {
225: return com.calipso.reportgenerator.reportdefinitions.DimensionBind.class;
226: } //-- java.lang.Class getJavaClass()
227:
228: /**
229: * Method getNameSpacePrefix
230: */
231: public java.lang.String getNameSpacePrefix() {
232: return nsPrefix;
233: } //-- java.lang.String getNameSpacePrefix()
234:
235: /**
236: * Method getNameSpaceURI
237: */
238: public java.lang.String getNameSpaceURI() {
239: return nsURI;
240: } //-- java.lang.String getNameSpaceURI()
241:
242: /**
243: * Method getValidator
244: */
245: public org.exolab.castor.xml.TypeValidator getValidator() {
246: return this ;
247: } //-- org.exolab.castor.xml.TypeValidator getValidator()
248:
249: /**
250: * Method getXMLName
251: */
252: public java.lang.String getXMLName() {
253: return xmlName;
254: } //-- java.lang.String getXMLName()
255:
256: }
|