View Javadoc
1 /* 2 * This class was automatically generated with 3 * <a href="http://castor.exolab.org">Castor 0.9.4</a>, using an 4 * XML Schema. 5 * $Id$ 6 */ 7 8 package org.enableit.db.beans; 9 10 //---------------------------------/ 11 //- Imported classes and packages -/ 12 //---------------------------------/ 13 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.*; 19 import org.exolab.castor.xml.MarshalException; 20 import org.exolab.castor.xml.ValidationException; 21 import org.xml.sax.ContentHandler; 22 23 /*** 24 * 25 * 26 * @version $Revision$ $Date$ 27 **/ 28 public class Function implements java.io.Serializable { 29 30 31 //--------------------------/ 32 //- Class/Member Variables -/ 33 //--------------------------/ 34 35 private java.lang.String _name; 36 37 private java.lang.String _pattern; 38 39 40 //----------------/ 41 //- Constructors -/ 42 //----------------/ 43 44 public Function() { 45 super(); 46 } //-- org.enableit.db.beans.Function() 47 48 49 //-----------/ 50 //- Methods -/ 51 //-----------/ 52 53 /*** 54 * Returns the value of field 'name'. 55 * 56 * @return the value of field 'name'. 57 **/ 58 public java.lang.String getName() 59 { 60 return this._name; 61 } //-- java.lang.String getName() 62 63 /*** 64 * Returns the value of field 'pattern'. 65 * 66 * @return the value of field 'pattern'. 67 **/ 68 public java.lang.String getPattern() 69 { 70 return this._pattern; 71 } //-- java.lang.String getPattern() 72 73 /*** 74 **/ 75 public boolean isValid() 76 { 77 try { 78 validate(); 79 } 80 catch (org.exolab.castor.xml.ValidationException vex) { 81 return false; 82 } 83 return true; 84 } //-- boolean isValid() 85 86 /*** 87 * 88 * 89 * @param out 90 **/ 91 public void marshal(java.io.Writer out) 92 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 93 { 94 95 Marshaller.marshal(this, out); 96 } //-- void marshal(java.io.Writer) 97 98 /*** 99 * 100 * 101 * @param handler 102 **/ 103 public void marshal(org.xml.sax.ContentHandler handler) 104 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 105 { 106 107 Marshaller.marshal(this, handler); 108 } //-- void marshal(org.xml.sax.ContentHandler) 109 110 /*** 111 * Sets the value of field 'name'. 112 * 113 * @param name the value of field 'name'. 114 **/ 115 public void setName(java.lang.String name) 116 { 117 this._name = name; 118 } //-- void setName(java.lang.String) 119 120 /*** 121 * Sets the value of field 'pattern'. 122 * 123 * @param pattern the value of field 'pattern'. 124 **/ 125 public void setPattern(java.lang.String pattern) 126 { 127 this._pattern = pattern; 128 } //-- void setPattern(java.lang.String) 129 130 /*** 131 * 132 * 133 * @param reader 134 **/ 135 public static org.enableit.db.beans.Function unmarshal(java.io.Reader reader) 136 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 137 { 138 return (org.enableit.db.beans.Function) Unmarshaller.unmarshal(org.enableit.db.beans.Function.class, reader); 139 } //-- org.enableit.db.beans.Function unmarshal(java.io.Reader) 140 141 /*** 142 **/ 143 public void validate() 144 throws org.exolab.castor.xml.ValidationException 145 { 146 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 147 validator.validate(this); 148 } //-- void validate() 149 150 }

This page was automatically generated by Maven