From c02b348d77c19c362e16d66526ccb7182e5da6bb Mon Sep 17 00:00:00 2001 From: jprocter Date: Fri, 20 Jan 2006 09:57:33 +0000 Subject: [PATCH] removed after schema modification, git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@152 be28352e-c001-0410-b1a7-c7978e42abec --- src/org/vamsas/objects/core/AppDataChoice.java | 212 ----------------- .../objects/core/AppDataChoiceDescriptor.java | 249 -------------------- 2 files changed, 461 deletions(-) delete mode 100644 src/org/vamsas/objects/core/AppDataChoice.java delete mode 100644 src/org/vamsas/objects/core/AppDataChoiceDescriptor.java diff --git a/src/org/vamsas/objects/core/AppDataChoice.java b/src/org/vamsas/objects/core/AppDataChoice.java deleted file mode 100644 index 599844a..0000000 --- a/src/org/vamsas/objects/core/AppDataChoice.java +++ /dev/null @@ -1,212 +0,0 @@ -/* - * This class was automatically generated with - * Castor 0.9.9M2, using an XML - * Schema. - * $Id$ - */ - -package org.vamsas.objects.core; - - //---------------------------------/ - //- Imported classes and packages -/ -//---------------------------------/ - -import java.io.IOException; -import java.io.Reader; -import java.io.Serializable; -import java.io.Writer; -import org.exolab.castor.xml.MarshalException; -import org.exolab.castor.xml.Marshaller; -import org.exolab.castor.xml.Unmarshaller; -import org.exolab.castor.xml.ValidationException; -import org.xml.sax.ContentHandler; - -/** - * Class AppDataChoice. - * - * @version $Revision$ $Date$ - */ -public class AppDataChoice extends org.vamsas.client.object -implements java.io.Serializable -{ - - - //--------------------------/ - //- Class/Member Variables -/ - //--------------------------/ - - /** - * Field _data - */ - private byte[] _data; - - /** - * Field _dataReference - */ - private java.lang.String _dataReference; - - - //----------------/ - //- Constructors -/ - //----------------/ - - public AppDataChoice() - { - super(); - } //-- org.vamsas.objects.core.AppDataChoice() - - - //-----------/ - //- Methods -/ - //-----------/ - - /** - * Note: hashCode() has not been overriden - * - * @param obj - * @return boolean - */ - public boolean equals(java.lang.Object obj) - { - if ( this == obj ) - return true; - - if (super.equals(obj)==false) - return false; - - if (obj instanceof AppDataChoice) { - - AppDataChoice temp = (AppDataChoice)obj; - if (this._data != null) { - if (temp._data == null) return false; - else if (!(this._data.equals(temp._data))) - return false; - } - else if (temp._data != null) - return false; - if (this._dataReference != null) { - if (temp._dataReference == null) return false; - else if (!(this._dataReference.equals(temp._dataReference))) - return false; - } - else if (temp._dataReference != null) - return false; - return true; - } - return false; - } //-- boolean equals(java.lang.Object) - - /** - * Returns the value of field 'data'. - * - * @return byte - * @return the value of field 'data'. - */ - public byte[] getData() - { - return this._data; - } //-- byte[] getData() - - /** - * Returns the value of field 'dataReference'. - * - * @return String - * @return the value of field 'dataReference'. - */ - public java.lang.String getDataReference() - { - return this._dataReference; - } //-- java.lang.String getDataReference() - - /** - * Method isValid - * - * - * - * @return boolean - */ - public boolean isValid() - { - try { - validate(); - } - catch (org.exolab.castor.xml.ValidationException vex) { - return false; - } - return true; - } //-- boolean isValid() - - /** - * Method marshal - * - * - * - * @param out - */ - public void marshal(java.io.Writer out) - throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException - { - - Marshaller.marshal(this, out); - } //-- void marshal(java.io.Writer) - - /** - * Method marshal - * - * - * - * @param handler - */ - public void marshal(org.xml.sax.ContentHandler handler) - throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException - { - - Marshaller.marshal(this, handler); - } //-- void marshal(org.xml.sax.ContentHandler) - - /** - * Sets the value of field 'data'. - * - * @param data the value of field 'data'. - */ - public void setData(byte[] data) - { - this._data = data; - } //-- void setData(byte) - - /** - * Sets the value of field 'dataReference'. - * - * @param dataReference the value of field 'dataReference'. - */ - public void setDataReference(java.lang.String dataReference) - { - this._dataReference = dataReference; - } //-- void setDataReference(java.lang.String) - - /** - * Method unmarshal - * - * - * - * @param reader - * @return AppDataChoice - */ - public static org.vamsas.objects.core.AppDataChoice unmarshal(java.io.Reader reader) - throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException - { - return (org.vamsas.objects.core.AppDataChoice) Unmarshaller.unmarshal(org.vamsas.objects.core.AppDataChoice.class, reader); - } //-- org.vamsas.objects.core.AppDataChoice unmarshal(java.io.Reader) - - /** - * Method validate - * - */ - public void validate() - throws org.exolab.castor.xml.ValidationException - { - org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator(); - validator.validate(this); - } //-- void validate() - -} diff --git a/src/org/vamsas/objects/core/AppDataChoiceDescriptor.java b/src/org/vamsas/objects/core/AppDataChoiceDescriptor.java deleted file mode 100644 index a158b8c..0000000 --- a/src/org/vamsas/objects/core/AppDataChoiceDescriptor.java +++ /dev/null @@ -1,249 +0,0 @@ -/* - * This class was automatically generated with - * Castor 0.9.9M2, using an XML - * Schema. - * $Id$ - */ - -package org.vamsas.objects.core; - - //---------------------------------/ - //- Imported classes and packages -/ -//---------------------------------/ - -import org.exolab.castor.mapping.AccessMode; -import org.exolab.castor.xml.TypeValidator; -import org.exolab.castor.xml.XMLFieldDescriptor; -import org.exolab.castor.xml.validators.*; - -/** - * Class AppDataChoiceDescriptor. - * - * @version $Revision$ $Date$ - */ -public class AppDataChoiceDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl { - - - //--------------------------/ - //- Class/Member Variables -/ - //--------------------------/ - - /** - * Field nsPrefix - */ - private java.lang.String nsPrefix; - - /** - * Field nsURI - */ - private java.lang.String nsURI; - - /** - * Field xmlName - */ - private java.lang.String xmlName; - - /** - * Field identity - */ - private org.exolab.castor.xml.XMLFieldDescriptor identity; - - - //----------------/ - //- Constructors -/ - //----------------/ - - public AppDataChoiceDescriptor() - { - super(); - nsURI = "http://www.vamsas.org"; - - //-- set grouping compositor - setCompositorAsChoice(); - org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null; - org.exolab.castor.mapping.FieldHandler handler = null; - org.exolab.castor.xml.FieldValidator fieldValidator = null; - //-- initialize attribute descriptors - - //-- initialize element descriptors - - //-- _data - desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(byte[].class, "_data", "data", org.exolab.castor.xml.NodeType.Element); - handler = new org.exolab.castor.xml.XMLFieldHandler() { - public java.lang.Object getValue( java.lang.Object object ) - throws IllegalStateException - { - AppDataChoice target = (AppDataChoice) object; - return target.getData(); - } - public void setValue( java.lang.Object object, java.lang.Object value) - throws IllegalStateException, IllegalArgumentException - { - try { - AppDataChoice target = (AppDataChoice) object; - target.setData( (byte[]) value); - } - catch (java.lang.Exception ex) { - throw new IllegalStateException(ex.toString()); - } - } - public java.lang.Object newInstance( java.lang.Object parent ) { - return null; - } - }; - desc.setHandler(handler); - desc.setNameSpaceURI("http://www.vamsas.org"); - desc.setRequired(true); - desc.setMultivalued(false); - addFieldDescriptor(desc); - - //-- validation code for: _data - fieldValidator = new org.exolab.castor.xml.FieldValidator(); - fieldValidator.setMinOccurs(1); - { //-- local scope - } - desc.setValidator(fieldValidator); - //-- _dataReference - desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dataReference", "dataReference", org.exolab.castor.xml.NodeType.Element); - desc.setImmutable(true); - handler = new org.exolab.castor.xml.XMLFieldHandler() { - public java.lang.Object getValue( java.lang.Object object ) - throws IllegalStateException - { - AppDataChoice target = (AppDataChoice) object; - return target.getDataReference(); - } - public void setValue( java.lang.Object object, java.lang.Object value) - throws IllegalStateException, IllegalArgumentException - { - try { - AppDataChoice target = (AppDataChoice) object; - target.setDataReference( (java.lang.String) value); - } - catch (java.lang.Exception ex) { - throw new IllegalStateException(ex.toString()); - } - } - public java.lang.Object newInstance( java.lang.Object parent ) { - return null; - } - }; - desc.setHandler(handler); - desc.setNameSpaceURI("http://www.vamsas.org"); - desc.setRequired(true); - desc.setMultivalued(false); - addFieldDescriptor(desc); - - //-- validation code for: _dataReference - fieldValidator = new org.exolab.castor.xml.FieldValidator(); - fieldValidator.setMinOccurs(1); - { //-- local scope - StringValidator typeValidator = new StringValidator(); - typeValidator.setWhiteSpace("preserve"); - fieldValidator.setValidator(typeValidator); - } - desc.setValidator(fieldValidator); - } //-- org.vamsas.objects.core.AppDataChoiceDescriptor() - - - //-----------/ - //- Methods -/ - //-----------/ - - /** - * Method getAccessMode - * - * - * - * @return AccessMode - */ - public org.exolab.castor.mapping.AccessMode getAccessMode() - { - return null; - } //-- org.exolab.castor.mapping.AccessMode getAccessMode() - - /** - * Method getExtends - * - * - * - * @return ClassDescriptor - */ - public org.exolab.castor.mapping.ClassDescriptor getExtends() - { - return null; - } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() - - /** - * Method getIdentity - * - * - * - * @return FieldDescriptor - */ - public org.exolab.castor.mapping.FieldDescriptor getIdentity() - { - return identity; - } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() - - /** - * Method getJavaClass - * - * - * - * @return Class - */ - public java.lang.Class getJavaClass() - { - return org.vamsas.objects.core.AppDataChoice.class; - } //-- java.lang.Class getJavaClass() - - /** - * Method getNameSpacePrefix - * - * - * - * @return String - */ - public java.lang.String getNameSpacePrefix() - { - return nsPrefix; - } //-- java.lang.String getNameSpacePrefix() - - /** - * Method getNameSpaceURI - * - * - * - * @return String - */ - public java.lang.String getNameSpaceURI() - { - return nsURI; - } //-- java.lang.String getNameSpaceURI() - - /** - * Method getValidator - * - * - * - * @return TypeValidator - */ - public org.exolab.castor.xml.TypeValidator getValidator() - { - return this; - } //-- org.exolab.castor.xml.TypeValidator getValidator() - - /** - * Method getXMLName - * - * - * - * @return String - */ - public java.lang.String getXMLName() - { - return xmlName; - } //-- java.lang.String getXMLName() - -} -- 1.7.10.2