1 7 8 package com.calipso.reportgenerator.reportdefinitions; 9 10 14 import java.io.IOException ; 15 import java.io.Reader ; 16 import java.io.Serializable ; 17 import java.io.Writer ; 18 import org.exolab.castor.xml.MarshalException; 19 import org.exolab.castor.xml.Marshaller; 20 import org.exolab.castor.xml.Unmarshaller; 21 import org.exolab.castor.xml.ValidationException; 22 import org.xml.sax.ContentHandler ; 23 24 29 public class ViewParameterValue implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _viewParamName; 40 41 44 private java.lang.String _viewParamValue; 45 46 47 51 public ViewParameterValue() { 52 super(); 53 } 55 56 60 66 public java.lang.String getViewParamName() 67 { 68 return this._viewParamName; 69 } 71 77 public java.lang.String getViewParamValue() 78 { 79 return this._viewParamValue; 80 } 82 85 public boolean isValid() 86 { 87 try { 88 validate(); 89 } 90 catch (org.exolab.castor.xml.ValidationException vex) { 91 return false; 92 } 93 return true; 94 } 96 101 public void marshal(java.io.Writer out) 102 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 103 { 104 105 Marshaller.marshal(this, out); 106 } 108 113 public void marshal(org.xml.sax.ContentHandler handler) 114 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 115 { 116 117 Marshaller.marshal(this, handler); 118 } 120 126 public void setViewParamName(java.lang.String viewParamName) 127 { 128 this._viewParamName = viewParamName; 129 } 131 137 public void setViewParamValue(java.lang.String viewParamValue) 138 { 139 this._viewParamValue = viewParamValue; 140 } 142 147 public static com.calipso.reportgenerator.reportdefinitions.ViewParameterValue unmarshal(java.io.Reader reader) 148 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 149 { 150 return (com.calipso.reportgenerator.reportdefinitions.ViewParameterValue) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ViewParameterValue.class, reader); 151 } 153 156 public void validate() 157 throws org.exolab.castor.xml.ValidationException 158 { 159 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 160 validator.validate(this); 161 } 163 } 164 | Popular Tags |