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 DimensionBindDescriptor 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 DimensionBindDescriptor() { 57 super(); 58 xmlName = "DimensionBind"; 59 org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; 60 org.exolab.castor.xml.XMLFieldHandler handler = null; 61 org.exolab.castor.xml.FieldValidator fieldValidator = null; 62 64 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_sourceDimensionName", "SourceDimensionName", org.exolab.castor.xml.NodeType.Attribute); 66 desc.setImmutable(true); 67 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 68 public java.lang.Object getValue( java.lang.Object object ) 69 throws IllegalStateException 70 { 71 DimensionBind target = (DimensionBind) object; 72 return target.getSourceDimensionName(); 73 } 74 public void setValue( java.lang.Object object, java.lang.Object value) 75 throws IllegalStateException , IllegalArgumentException 76 { 77 try { 78 DimensionBind target = (DimensionBind) object; 79 target.setSourceDimensionName( (java.lang.String ) value); 80 } 81 catch (java.lang.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.setRequired(true); 91 addFieldDescriptor(desc); 92 93 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 95 fieldValidator.setMinOccurs(1); 96 { StringValidator typeValidator = new StringValidator(); 98 typeValidator.setWhiteSpace("preserve"); 99 fieldValidator.setValidator(typeValidator); 100 } 101 desc.setValidator(fieldValidator); 102 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_targetFilterName", "TargetFilterName", org.exolab.castor.xml.NodeType.Attribute); 104 desc.setImmutable(true); 105 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 106 public java.lang.Object getValue( java.lang.Object object ) 107 throws IllegalStateException 108 { 109 DimensionBind target = (DimensionBind) object; 110 return target.getTargetFilterName(); 111 } 112 public void setValue( java.lang.Object object, java.lang.Object value) 113 throws IllegalStateException , IllegalArgumentException 114 { 115 try { 116 DimensionBind target = (DimensionBind) object; 117 target.setTargetFilterName( (java.lang.String ) value); 118 } 119 catch (java.lang.Exception ex) { 120 throw new IllegalStateException (ex.toString()); 121 } 122 } 123 public java.lang.Object newInstance( java.lang.Object parent ) { 124 return null; 125 } 126 } ); 127 desc.setHandler(handler); 128 desc.setRequired(true); 129 addFieldDescriptor(desc); 130 131 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 133 fieldValidator.setMinOccurs(1); 134 { StringValidator typeValidator = new StringValidator(); 136 typeValidator.setWhiteSpace("preserve"); 137 fieldValidator.setValidator(typeValidator); 138 } 139 desc.setValidator(fieldValidator); 140 desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String .class, "_targetParameterName", "TargetParameterName", org.exolab.castor.xml.NodeType.Attribute); 142 desc.setImmutable(true); 143 handler = (new org.exolab.castor.xml.XMLFieldHandler() { 144 public java.lang.Object getValue( java.lang.Object object ) 145 throws IllegalStateException 146 { 147 DimensionBind target = (DimensionBind) object; 148 return target.getTargetParameterName(); 149 } 150 public void setValue( java.lang.Object object, java.lang.Object value) 151 throws IllegalStateException , IllegalArgumentException 152 { 153 try { 154 DimensionBind target = (DimensionBind) object; 155 target.setTargetParameterName( (java.lang.String ) value); 156 } 157 catch (java.lang.Exception ex) { 158 throw new IllegalStateException (ex.toString()); 159 } 160 } 161 public java.lang.Object newInstance( java.lang.Object parent ) { 162 return null; 163 } 164 } ); 165 desc.setHandler(handler); 166 desc.setRequired(true); 167 addFieldDescriptor(desc); 168 169 fieldValidator = new org.exolab.castor.xml.FieldValidator(); 171 fieldValidator.setMinOccurs(1); 172 { StringValidator typeValidator = new StringValidator(); 174 typeValidator.setWhiteSpace("preserve"); 175 fieldValidator.setValidator(typeValidator); 176 } 177 desc.setValidator(fieldValidator); 178 180 } 182 183 187 190 public org.exolab.castor.mapping.AccessMode getAccessMode() 191 { 192 return null; 193 } 195 198 public org.exolab.castor.mapping.ClassDescriptor getExtends() 199 { 200 return null; 201 } 203 206 public org.exolab.castor.mapping.FieldDescriptor getIdentity() 207 { 208 return identity; 209 } 211 214 public java.lang.Class getJavaClass() 215 { 216 return com.calipso.reportgenerator.reportdefinitions.DimensionBind.class; 217 } 219 222 public java.lang.String getNameSpacePrefix() 223 { 224 return nsPrefix; 225 } 227 230 public java.lang.String getNameSpaceURI() 231 { 232 return nsURI; 233 } 235 238 public org.exolab.castor.xml.TypeValidator getValidator() 239 { 240 return this; 241 } 243 246 public java.lang.String getXMLName() 247 { 248 return xmlName; 249 } 251 } 252 | Popular Tags |