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 Provider extends AbstractProvider 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 _productName; 38 39 private java.lang.String _version; 40 41 private ProviderChoice _providerChoice; 42 43 private java.lang.String _schemaName; 44 45 private java.lang.String _creationDate; 46 47 48 //----------------/ 49 //- Constructors -/ 50 //----------------/ 51 52 public Provider() { 53 super(); 54 } //-- org.enableit.db.beans.Provider() 55 56 57 //-----------/ 58 //- Methods -/ 59 //-----------/ 60 61 /*** 62 * Returns the value of field 'creationDate'. 63 * 64 * @return the value of field 'creationDate'. 65 **/ 66 public java.lang.String getCreationDate() 67 { 68 return this._creationDate; 69 } //-- java.lang.String getCreationDate() 70 71 /*** 72 * Returns the value of field 'name'. 73 * 74 * @return the value of field 'name'. 75 **/ 76 public java.lang.String getName() 77 { 78 return this._name; 79 } //-- java.lang.String getName() 80 81 /*** 82 * Returns the value of field 'productName'. 83 * 84 * @return the value of field 'productName'. 85 **/ 86 public java.lang.String getProductName() 87 { 88 return this._productName; 89 } //-- java.lang.String getProductName() 90 91 /*** 92 * Returns the value of field 'providerChoice'. 93 * 94 * @return the value of field 'providerChoice'. 95 **/ 96 public ProviderChoice getProviderChoice() 97 { 98 return this._providerChoice; 99 } //-- ProviderChoice getProviderChoice() 100 101 /*** 102 * Returns the value of field 'schemaName'. 103 * 104 * @return the value of field 'schemaName'. 105 **/ 106 public java.lang.String getSchemaName() 107 { 108 return this._schemaName; 109 } //-- java.lang.String getSchemaName() 110 111 /*** 112 * Returns the value of field 'version'. 113 * 114 * @return the value of field 'version'. 115 **/ 116 public java.lang.String getVersion() 117 { 118 return this._version; 119 } //-- java.lang.String getVersion() 120 121 /*** 122 **/ 123 public boolean isValid() 124 { 125 try { 126 validate(); 127 } 128 catch (org.exolab.castor.xml.ValidationException vex) { 129 return false; 130 } 131 return true; 132 } //-- boolean isValid() 133 134 /*** 135 * 136 * 137 * @param out 138 **/ 139 public void marshal(java.io.Writer out) 140 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 141 { 142 143 Marshaller.marshal(this, out); 144 } //-- void marshal(java.io.Writer) 145 146 /*** 147 * 148 * 149 * @param handler 150 **/ 151 public void marshal(org.xml.sax.ContentHandler handler) 152 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 153 { 154 155 Marshaller.marshal(this, handler); 156 } //-- void marshal(org.xml.sax.ContentHandler) 157 158 /*** 159 * Sets the value of field 'creationDate'. 160 * 161 * @param creationDate the value of field 'creationDate'. 162 **/ 163 public void setCreationDate(java.lang.String creationDate) 164 { 165 this._creationDate = creationDate; 166 } //-- void setCreationDate(java.lang.String) 167 168 /*** 169 * Sets the value of field 'name'. 170 * 171 * @param name the value of field 'name'. 172 **/ 173 public void setName(java.lang.String name) 174 { 175 this._name = name; 176 } //-- void setName(java.lang.String) 177 178 /*** 179 * Sets the value of field 'productName'. 180 * 181 * @param productName the value of field 'productName'. 182 **/ 183 public void setProductName(java.lang.String productName) 184 { 185 this._productName = productName; 186 } //-- void setProductName(java.lang.String) 187 188 /*** 189 * Sets the value of field 'providerChoice'. 190 * 191 * @param providerChoice the value of field 'providerChoice'. 192 **/ 193 public void setProviderChoice(ProviderChoice providerChoice) 194 { 195 this._providerChoice = providerChoice; 196 } //-- void setProviderChoice(ProviderChoice) 197 198 /*** 199 * Sets the value of field 'schemaName'. 200 * 201 * @param schemaName the value of field 'schemaName'. 202 **/ 203 public void setSchemaName(java.lang.String schemaName) 204 { 205 this._schemaName = schemaName; 206 } //-- void setSchemaName(java.lang.String) 207 208 /*** 209 * Sets the value of field 'version'. 210 * 211 * @param version the value of field 'version'. 212 **/ 213 public void setVersion(java.lang.String version) 214 { 215 this._version = version; 216 } //-- void setVersion(java.lang.String) 217 218 /*** 219 * 220 * 221 * @param reader 222 **/ 223 public static org.enableit.db.beans.Provider unmarshal(java.io.Reader reader) 224 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 225 { 226 return (org.enableit.db.beans.Provider) Unmarshaller.unmarshal(org.enableit.db.beans.Provider.class, reader); 227 } //-- org.enableit.db.beans.Provider unmarshal(java.io.Reader) 228 229 /*** 230 **/ 231 public void validate() 232 throws org.exolab.castor.xml.ValidationException 233 { 234 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 235 validator.validate(this); 236 } //-- void validate() 237 238 }

This page was automatically generated by Maven