1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 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 24 public class DrillDownDefinitionDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { 25 26 27 31 34 private java.lang.String nsPrefix; 35 36 39 private java.lang.String nsURI; 40 41 44 private java.lang.String xmlName; 45 46 49 private org.exolab.castor.xml.XMLFieldDescriptor identity; 50 51 52 56 public DrillDownDefinitionDescriptor() { 57 super(); 58 xmlName = "DrillDownDefinition"; 59 60 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 67 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_name", "Name", org.exolab.castor.xml.NodeType.Attribute); 69 desc.setImmutable(true); 70 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 71 public java.lang.Object getValue( java.lang.Object object ) 72 throws IllegalStateException 73 { 74 DrillDownDefinition target = (DrillDownDefinition) object; 75 return target.getName(); 76 } 77 public void setValue( java.lang.Object object, java.lang.Object value) 78 throws IllegalStateException , IllegalArgumentException 79 { 80 try { 81 DrillDownDefinition target = (DrillDownDefinition) object; 82 target.setName( (java.lang.String ) value); 83 } 84 catch (java.lang.Exception ex) { 85 throw new IllegalStateException (ex.toString()); 86 } 87 } 88 public java.lang.Object newInstance( java.lang.Object parent ) { 89 return null; 90 } 91 } ); 92 desc.setHandler(handler); 93 desc.setRequired(true); 94 addFieldDescriptor(desc); 95 96 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 98 fieldValidator.setMinOccurs(1); 99 { StringValidator typeValidator = new StringValidator(); 101 typeValidator.setWhiteSpace("preserve"); 102 fieldValidator.setValidator(typeValidator); 103 } 104 desc.setValidator(fieldValidator); 105 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_description", "Description", org.exolab.castor.xml.NodeType.Attribute); 107 desc.setImmutable(true); 108 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 109 public java.lang.Object getValue( java.lang.Object object ) 110 throws IllegalStateException 111 { 112 DrillDownDefinition target = (DrillDownDefinition) object; 113 return target.getDescription(); 114 } 115 public void setValue( java.lang.Object object, java.lang.Object value) 116 throws IllegalStateException , IllegalArgumentException 117 { 118 try { 119 DrillDownDefinition target = (DrillDownDefinition) object; 120 target.setDescription( (java.lang.String ) value); 121 } 122 catch (java.lang.Exception ex) { 123 throw new IllegalStateException (ex.toString()); 124 } 125 } 126 public java.lang.Object newInstance( java.lang.Object parent ) { 127 return null; 128 } 129 } ); 130 desc.setHandler(handler); 131 desc.setRequired(true); 132 addFieldDescriptor(desc); 133 134 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 136 fieldValidator.setMinOccurs(1); 137 { StringValidator typeValidator = new StringValidator(); 139 typeValidator.setWhiteSpace("preserve"); 140 fieldValidator.setValidator(typeValidator); 141 } 142 desc.setValidator(fieldValidator); 143 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_targetReportDefinitionID", "TargetReportDefinitionID", org.exolab.castor.xml.NodeType.Attribute); 145 desc.setImmutable(true); 146 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 147 public java.lang.Object getValue( java.lang.Object object ) 148 throws IllegalStateException 149 { 150 DrillDownDefinition target = (DrillDownDefinition) object; 151 return target.getTargetReportDefinitionID(); 152 } 153 public void setValue( java.lang.Object object, java.lang.Object value) 154 throws IllegalStateException , IllegalArgumentException 155 { 156 try { 157 DrillDownDefinition target = (DrillDownDefinition) object; 158 target.setTargetReportDefinitionID( (java.lang.String ) value); 159 } 160 catch (java.lang.Exception ex) { 161 throw new IllegalStateException (ex.toString()); 162 } 163 } 164 public java.lang.Object newInstance( java.lang.Object parent ) { 165 return null; 166 } 167 } ); 168 desc.setHandler(handler); 169 desc.setRequired(true); 170 addFieldDescriptor(desc); 171 172 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 174 fieldValidator.setMinOccurs(1); 175 { StringValidator typeValidator = new StringValidator(); 177 typeValidator.setWhiteSpace("preserve"); 178 fieldValidator.setValidator(typeValidator); 179 } 180 desc.setValidator(fieldValidator); 181 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType.class, "_type", "Type", org.exolab.castor.xml.NodeType.Attribute); 183 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 184 public java.lang.Object getValue( java.lang.Object object ) 185 throws IllegalStateException 186 { 187 DrillDownDefinition target = (DrillDownDefinition) object; 188 return target.getType(); 189 } 190 public void setValue( java.lang.Object object, java.lang.Object value) 191 throws IllegalStateException , IllegalArgumentException 192 { 193 try { 194 DrillDownDefinition target = (DrillDownDefinition) object; 195 target.setType( (com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType) value); 196 } 197 catch (java.lang.Exception ex) { 198 throw new IllegalStateException (ex.toString()); 199 } 200 } 201 public java.lang.Object newInstance( java.lang.Object parent ) { 202 return null; 203 } 204 } ); 205 desc.setHandler( new org.exolab.castor.xml.handlers.EnumFieldHandler(com.calipso.reportgenerator.reportdefinitions.types.DrillDownDefinitionTypeType.class, handler)); 206 desc.setImmutable(true); 207 addFieldDescriptor(desc); 208 209 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 211 { } 213 desc.setValidator(fieldValidator); 214 216 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.ParameterBind.class, "_parameterBindList", "ParameterBind", org.exolab.castor.xml.NodeType.Element); 218 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 219 public java.lang.Object getValue( java.lang.Object object ) 220 throws IllegalStateException 221 { 222 DrillDownDefinition target = (DrillDownDefinition) object; 223 return target.getParameterBind(); 224 } 225 public void setValue( java.lang.Object object, java.lang.Object value) 226 throws IllegalStateException , IllegalArgumentException 227 { 228 try { 229 DrillDownDefinition target = (DrillDownDefinition) object; 230 target.addParameterBind( (com.calipso.reportgenerator.reportdefinitions.ParameterBind) value); 231 } 232 catch (java.lang.Exception ex) { 233 throw new IllegalStateException (ex.toString()); 234 } 235 } 236 public java.lang.Object newInstance( java.lang.Object parent ) { 237 return new com.calipso.reportgenerator.reportdefinitions.ParameterBind(); 238 } 239 } ); 240 desc.setHandler(handler); 241 desc.setMultivalued(true); 242 addFieldDescriptor(desc); 243 244 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 246 fieldValidator.setMinOccurs(0); 247 { } 249 desc.setValidator(fieldValidator); 250 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(com.calipso.reportgenerator.reportdefinitions.DimensionBind.class, "_dimensionBindList", "DimensionBind", org.exolab.castor.xml.NodeType.Element); 252 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 253 public java.lang.Object getValue( java.lang.Object object ) 254 throws IllegalStateException 255 { 256 DrillDownDefinition target = (DrillDownDefinition) object; 257 return target.getDimensionBind(); 258 } 259 public void setValue( java.lang.Object object, java.lang.Object value) 260 throws IllegalStateException , IllegalArgumentException 261 { 262 try { 263 DrillDownDefinition target = (DrillDownDefinition) object; 264 target.addDimensionBind( (com.calipso.reportgenerator.reportdefinitions.DimensionBind) value); 265 } 266 catch (java.lang.Exception ex) { 267 throw new IllegalStateException (ex.toString()); 268 } 269 } 270 public java.lang.Object newInstance( java.lang.Object parent ) { 271 return new com.calipso.reportgenerator.reportdefinitions.DimensionBind(); 272 } 273 } ); 274 desc.setHandler(handler); 275 desc.setMultivalued(true); 276 addFieldDescriptor(desc); 277 278 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 280 fieldValidator.setMinOccurs(0); 281 { } 283 desc.setValidator(fieldValidator); 284 } 286 287 291 294 public org.exolab.castor.mapping.AccessMode getAccessMode() 295 { 296 return null; 297 } 299 302 public org.exolab.castor.mapping.ClassDescriptor getExtends() 303 { 304 return null; 305 } 307 310 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 311 { 312 return identity; 313 } 315 318 public java.lang.Class getJavaClass() 319 { 320 return com.calipso.reportgenerator.reportdefinitions.DrillDownDefinition.class; 321 } 323 326 public java.lang.String getNameSpacePrefix() 327 { 328 return nsPrefix; 329 } 331 334 public java.lang.String getNameSpaceURI() 335 { 336 return nsURI; 337 } 339 342 public org.exolab.castor.xml.TypeValidator getValidator() 343 { 344 return this; 345 } 347 350 public java.lang.String getXMLName() 351 { 352 return xmlName; 353 } 355 } 356 | Popular Tags |