1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType; 15 import com.calipso.reportgenerator.reportdefinitions.types.ReportDataType; 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 FilterDefinition implements java.io.Serializable { 32 33 34 38 41 private java.lang.String _name; 42 43 46 private java.lang.String _dimensionName; 47 48 51 private com.calipso.reportgenerator.reportdefinitions.types.ReportDataType _dataType; 52 53 56 private com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType _filterType; 57 58 61 private boolean _visual; 62 63 66 private boolean _has_visual; 67 68 69 73 public FilterDefinition() { 74 super(); 75 } 77 78 82 87 public com.calipso.reportgenerator.reportdefinitions.types.ReportDataType getDataType() 88 { 89 return this._dataType; 90 } 92 98 public java.lang.String getDimensionName() 99 { 100 return this._dimensionName; 101 } 103 108 public com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType getFilterType() 109 { 110 return this._filterType; 111 } 113 118 public java.lang.String getName() 119 { 120 return this._name; 121 } 123 128 public boolean getVisual() 129 { 130 return this._visual; 131 } 133 136 public boolean hasVisual() 137 { 138 return this._has_visual; 139 } 141 144 public boolean isValid() 145 { 146 try { 147 validate(); 148 } 149 catch (org.exolab.castor.xml.ValidationException vex) { 150 return false; 151 } 152 return true; 153 } 155 160 public void marshal(java.io.Writer out) 161 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 162 { 163 164 Marshaller.marshal(this, out); 165 } 167 172 public void marshal(org.xml.sax.ContentHandler handler) 173 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 174 { 175 176 Marshaller.marshal(this, handler); 177 } 179 184 public void setDataType(com.calipso.reportgenerator.reportdefinitions.types.ReportDataType dataType) 185 { 186 this._dataType = dataType; 187 } 189 195 public void setDimensionName(java.lang.String dimensionName) 196 { 197 this._dimensionName = dimensionName; 198 } 200 205 public void setFilterType(com.calipso.reportgenerator.reportdefinitions.types.FilterDefinitionFilterTypeType filterType) 206 { 207 this._filterType = filterType; 208 } 210 215 public void setName(java.lang.String name) 216 { 217 this._name = name; 218 } 220 225 public void setVisual(boolean visual) 226 { 227 this._visual = visual; 228 this._has_visual = true; 229 } 231 236 public static com.calipso.reportgenerator.reportdefinitions.FilterDefinition unmarshal(java.io.Reader reader) 237 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 238 { 239 return (com.calipso.reportgenerator.reportdefinitions.FilterDefinition) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.FilterDefinition.class, reader); 240 } 242 245 public void validate() 246 throws org.exolab.castor.xml.ValidationException 247 { 248 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 249 validator.validate(this); 250 } 252 } 253 | Popular Tags |