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 ExcludeValue implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _value; 40 41 42 46 public ExcludeValue() { 47 super(); 48 } 50 51 55 60 public java.lang.String getValue() 61 { 62 return this._value; 63 } 65 68 public boolean isValid() 69 { 70 try { 71 validate(); 72 } 73 catch (org.exolab.castor.xml.ValidationException vex) { 74 return false; 75 } 76 return true; 77 } 79 84 public void marshal(java.io.Writer out) 85 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 86 { 87 88 Marshaller.marshal(this, out); 89 } 91 96 public void marshal(org.xml.sax.ContentHandler handler) 97 throws java.io.IOException , org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 98 { 99 100 Marshaller.marshal(this, handler); 101 } 103 108 public void setValue(java.lang.String value) 109 { 110 this._value = value; 111 } 113 118 public static com.calipso.reportgenerator.reportdefinitions.ExcludeValue unmarshal(java.io.Reader reader) 119 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 120 { 121 return (com.calipso.reportgenerator.reportdefinitions.ExcludeValue) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.ExcludeValue.class, reader); 122 } 124 127 public void validate() 128 throws org.exolab.castor.xml.ValidationException 129 { 130 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 131 validator.validate(this); 132 } 134 } 135 | Popular Tags |