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 Col 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 _type; 38 39 private java.lang.String _value; 40 41 42 //----------------/ 43 //- Constructors -/ 44 //----------------/ 45 46 public Col() { 47 super(); 48 } //-- org.enableit.db.beans.Col() 49 50 51 //-----------/ 52 //- Methods -/ 53 //-----------/ 54 55 /*** 56 * Returns the value of field 'name'. 57 * 58 * @return the value of field 'name'. 59 **/ 60 public java.lang.String getName() 61 { 62 return this._name; 63 } //-- java.lang.String getName() 64 65 /*** 66 * Returns the value of field 'type'. 67 * 68 * @return the value of field 'type'. 69 **/ 70 public java.lang.String getType() 71 { 72 return this._type; 73 } //-- java.lang.String getType() 74 75 /*** 76 * Returns the value of field 'value'. 77 * 78 * @return the value of field 'value'. 79 **/ 80 public java.lang.String getValue() 81 { 82 return this._value; 83 } //-- java.lang.String getValue() 84 85 /*** 86 **/ 87 public boolean isValid() 88 { 89 try { 90 validate(); 91 } 92 catch (org.exolab.castor.xml.ValidationException vex) { 93 return false; 94 } 95 return true; 96 } //-- boolean isValid() 97 98 /*** 99 * 100 * 101 * @param out 102 **/ 103 public void marshal(java.io.Writer out) 104 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 105 { 106 107 Marshaller.marshal(this, out); 108 } //-- void marshal(java.io.Writer) 109 110 /*** 111 * 112 * 113 * @param handler 114 **/ 115 public void marshal(org.xml.sax.ContentHandler handler) 116 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 117 { 118 119 Marshaller.marshal(this, handler); 120 } //-- void marshal(org.xml.sax.ContentHandler) 121 122 /*** 123 * Sets the value of field 'name'. 124 * 125 * @param name the value of field 'name'. 126 **/ 127 public void setName(java.lang.String name) 128 { 129 this._name = name; 130 } //-- void setName(java.lang.String) 131 132 /*** 133 * Sets the value of field 'type'. 134 * 135 * @param type the value of field 'type'. 136 **/ 137 public void setType(java.lang.String type) 138 { 139 this._type = type; 140 } //-- void setType(java.lang.String) 141 142 /*** 143 * Sets the value of field 'value'. 144 * 145 * @param value the value of field 'value'. 146 **/ 147 public void setValue(java.lang.String value) 148 { 149 this._value = value; 150 } //-- void setValue(java.lang.String) 151 152 /*** 153 * 154 * 155 * @param reader 156 **/ 157 public static org.enableit.db.beans.Col unmarshal(java.io.Reader reader) 158 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 159 { 160 return (org.enableit.db.beans.Col) Unmarshaller.unmarshal(org.enableit.db.beans.Col.class, reader); 161 } //-- org.enableit.db.beans.Col unmarshal(java.io.Reader) 162 163 /*** 164 **/ 165 public void validate() 166 throws org.exolab.castor.xml.ValidationException 167 { 168 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 169 validator.validate(this); 170 } //-- void validate() 171 172 }

This page was automatically generated by Maven