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 Metadata implements java.io.Serializable { 29 30 31 //--------------------------/ 32 //- Class/Member Variables -/ 33 //--------------------------/ 34 35 private Catalogues _catalogues; 36 37 private TableTypes _tableTypes; 38 39 private java.lang.String _catalogueTerm; 40 41 private java.lang.String _schemaTerm; 42 43 44 //----------------/ 45 //- Constructors -/ 46 //----------------/ 47 48 public Metadata() { 49 super(); 50 } //-- org.enableit.db.beans.Metadata() 51 52 53 //-----------/ 54 //- Methods -/ 55 //-----------/ 56 57 /*** 58 * Returns the value of field 'catalogueTerm'. 59 * 60 * @return the value of field 'catalogueTerm'. 61 **/ 62 public java.lang.String getCatalogueTerm() 63 { 64 return this._catalogueTerm; 65 } //-- java.lang.String getCatalogueTerm() 66 67 /*** 68 * Returns the value of field 'catalogues'. 69 * 70 * @return the value of field 'catalogues'. 71 **/ 72 public Catalogues getCatalogues() 73 { 74 return this._catalogues; 75 } //-- Catalogues getCatalogues() 76 77 /*** 78 * Returns the value of field 'schemaTerm'. 79 * 80 * @return the value of field 'schemaTerm'. 81 **/ 82 public java.lang.String getSchemaTerm() 83 { 84 return this._schemaTerm; 85 } //-- java.lang.String getSchemaTerm() 86 87 /*** 88 * Returns the value of field 'tableTypes'. 89 * 90 * @return the value of field 'tableTypes'. 91 **/ 92 public TableTypes getTableTypes() 93 { 94 return this._tableTypes; 95 } //-- TableTypes getTableTypes() 96 97 /*** 98 **/ 99 public boolean isValid() 100 { 101 try { 102 validate(); 103 } 104 catch (org.exolab.castor.xml.ValidationException vex) { 105 return false; 106 } 107 return true; 108 } //-- boolean isValid() 109 110 /*** 111 * 112 * 113 * @param out 114 **/ 115 public void marshal(java.io.Writer out) 116 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 117 { 118 119 Marshaller.marshal(this, out); 120 } //-- void marshal(java.io.Writer) 121 122 /*** 123 * 124 * 125 * @param handler 126 **/ 127 public void marshal(org.xml.sax.ContentHandler handler) 128 throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 129 { 130 131 Marshaller.marshal(this, handler); 132 } //-- void marshal(org.xml.sax.ContentHandler) 133 134 /*** 135 * Sets the value of field 'catalogueTerm'. 136 * 137 * @param catalogueTerm the value of field 'catalogueTerm'. 138 **/ 139 public void setCatalogueTerm(java.lang.String catalogueTerm) 140 { 141 this._catalogueTerm = catalogueTerm; 142 } //-- void setCatalogueTerm(java.lang.String) 143 144 /*** 145 * Sets the value of field 'catalogues'. 146 * 147 * @param catalogues the value of field 'catalogues'. 148 **/ 149 public void setCatalogues(Catalogues catalogues) 150 { 151 this._catalogues = catalogues; 152 } //-- void setCatalogues(Catalogues) 153 154 /*** 155 * Sets the value of field 'schemaTerm'. 156 * 157 * @param schemaTerm the value of field 'schemaTerm'. 158 **/ 159 public void setSchemaTerm(java.lang.String schemaTerm) 160 { 161 this._schemaTerm = schemaTerm; 162 } //-- void setSchemaTerm(java.lang.String) 163 164 /*** 165 * Sets the value of field 'tableTypes'. 166 * 167 * @param tableTypes the value of field 'tableTypes'. 168 **/ 169 public void setTableTypes(TableTypes tableTypes) 170 { 171 this._tableTypes = tableTypes; 172 } //-- void setTableTypes(TableTypes) 173 174 /*** 175 * 176 * 177 * @param reader 178 **/ 179 public static org.enableit.db.beans.Metadata unmarshal(java.io.Reader reader) 180 throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException 181 { 182 return (org.enableit.db.beans.Metadata) Unmarshaller.unmarshal(org.enableit.db.beans.Metadata.class, reader); 183 } //-- org.enableit.db.beans.Metadata unmarshal(java.io.Reader) 184 185 /*** 186 **/ 187 public void validate() 188 throws org.exolab.castor.xml.ValidationException 189 { 190 org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); 191 validator.validate(this); 192 } //-- void validate() 193 194 }

This page was automatically generated by Maven