1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionLocationType; 15 import com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionOrderType; 16 import java.io.IOException ; 17 import java.io.Reader ; 18 import java.io.Serializable ; 19 import java.io.Writer ; 20 import org.exolab.castor.xml.MarshalException; 21 import org.exolab.castor.xml.Marshaller; 22 import org.exolab.castor.xml.Unmarshaller; 23 import org.exolab.castor.xml.ValidationException; 24 import org.xml.sax.ContentHandler ; 25 26 31 public class DimensionDefinition implements java.io.Serializable { 32 33 34 38 41 private java.lang.String _name; 42 43 46 private java.lang.String _description; 47 48 51 private com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionLocationType _location; 52 53 56 private boolean _groups; 57 58 61 private boolean _has_groups; 62 63 66 private java.lang.String _groupFooterCaption; 67 68 71 private com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionOrderType _order; 72 73 76 private java.lang.String _rankMetricName; 77 78 79 83 public DimensionDefinition() { 84 super(); 85 } 87 88 92 95 public void deleteGroups() 96 { 97 this._has_groups= false; 98 } 100 106 public java.lang.String getDescription() 107 { 108 return this._description; 109 } 111 117 public java.lang.String getGroupFooterCaption() 118 { 119 return this._groupFooterCaption; 120 } 122 127 public boolean getGroups() 128 { 129 return this._groups; 130 } 132 137 public com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionLocationType getLocation() 138 { 139 return this._location; 140 } 142 147 public java.lang.String getName() 148 { 149 return this._name; 150 } 152 157 public com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionOrderType getOrder() 158 { 159 return this._order; 160 } 162 168 public java.lang.String getRankMetricName() 169 { 170 return this._rankMetricName; 171 } 173 176 public boolean hasGroups() 177 { 178 return this._has_groups; 179 } 181 184 public boolean isValid() 185 { 186 try { 187 validate(); 188 } 189 catch (org.exolab.castor.xml.ValidationException vex) { 190 return false; 191 } 192 return true; 193 } 195 200 public void marshal(java.io.Writer out) 201 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 202 { 203 204 Marshaller.marshal(this, out); 205 } 207 212 public void marshal(org.xml.sax.ContentHandler handler) 213 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 214 { 215 216 Marshaller.marshal(this, handler); 217 } 219 224 public void setDescription(java.lang.String description) 225 { 226 this._description = description; 227 } 229 236 public void setGroupFooterCaption(java.lang.String groupFooterCaption) 237 { 238 this._groupFooterCaption = groupFooterCaption; 239 } 241 246 public void setGroups(boolean groups) 247 { 248 this._groups = groups; 249 this._has_groups = true; 250 } 252 257 public void setLocation(com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionLocationType location) 258 { 259 this._location = location; 260 } 262 267 public void setName(java.lang.String name) 268 { 269 this._name = name; 270 } 272 277 public void setOrder(com.calipso.reportgenerator.reportdefinitions.types.DimensionDefinitionOrderType order) 278 { 279 this._order = order; 280 } 282 288 public void setRankMetricName(java.lang.String rankMetricName) 289 { 290 this._rankMetricName = rankMetricName; 291 } 293 298 public static com.calipso.reportgenerator.reportdefinitions.DimensionDefinition unmarshal(java.io.Reader reader) 299 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 300 { 301 return (com.calipso.reportgenerator.reportdefinitions.DimensionDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.DimensionDefinition.class, reader); 302 } 304 307 public void validate() 308 throws org.exolab.castor.xml.ValidationException 309 { 310 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 311 validator.validate(this); 312 } 314 } 315 | Popular Tags |