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 Rol implements java.io.Serializable { 30 31 32 36 39 private java.lang.String _name; 40 41 42 46 public Rol() { 47 super(); 48 } 50 51 55 60 public java.lang.String getName() 61 { 62 return this._name; 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 setName(java.lang.String name) 109 { 110 this._name = name; 111 } 113 118 public static com.calipso.reportgenerator.reportdefinitions.Rol unmarshal(java.io.Reader reader) 119 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 120 { 121 return (com.calipso.reportgenerator.reportdefinitions.Rol) Unmarshaller.unmarshal(com.calipso.reportgenerator.reportdefinitions.Rol.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 |