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 DataColumn implements java.io.Serializable { 29 30 31 //--------------------------/ 32 //- Class/Member Variables -/ 33 //--------------------------/ 34 35 private java.lang.String _description; 36 37 private java.lang.String _colName; 38 39 40 //----------------/ 41 //- Constructors -/ 42 //----------------/ 43 44 public DataColumn() { 45 super(); 46 } //-- org.enableit.db.beans.DataColumn() 47 48 49 //-----------/ 50 //- Methods -/ 51 //-----------/ 52 53 /*** 54 * Returns the value of field 'colName'. 55 * 56 * @return the value of field 'colName'. 57 **/ 58 public java.lang.String getColName() 59 { 60 return this._colName; 61 } //-- java.lang.String getColName() 62 63 /*** 64 * Returns the value of field 'description'. 65 * 66 * @return the value of field 'description'. 67 **/ 68 public java.lang.String getDescription() 69 { 70 return this._description; 71 } //-- java.lang.String getDescription() 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 'colName'. 112 * 113 * @param colName the value of field 'colName'. 114 **/ 115 public void setColName(java.lang.String colName) 116 { 117 this._colName = colName; 118 } //-- void setColName(java.lang.String) 119 120 /*** 121 * Sets the value of field 'description'. 122 * 123 * @param description the value of field 'description'. 124 **/ 125 public void setDescription(java.lang.String description) 126 { 127 this._description = description; 128 } //-- void setDescription(java.lang.String) 129 130 /*** 131 * 132 * 133 * @param reader 134 **/ 135 public static org.enableit.db.beans.DataColumn unmarshal(java.io.Reader reader) 136 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 137 { 138 return (org.enableit.db.beans.DataColumn) Unmarshaller.unmarshal(org.enableit.db.beans.DataColumn.class, reader); 139 } //-- org.enableit.db.beans.DataColumn 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