X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fvamsas%2Fobjects%2Fcore%2FInput.java;fp=src%2Forg%2Fvamsas%2Fobjects%2Fcore%2FInput.java;h=9b737dda66149b53a407392449974577fec15623;hb=127eed38a79f4e1b56457a3cd5c5de12c9c7d4a2;hp=0000000000000000000000000000000000000000;hpb=b0e8ba054e5c3d3cd256f78d3a7310e6e263630e;p=vamsas.git diff --git a/src/org/vamsas/objects/core/Input.java b/src/org/vamsas/objects/core/Input.java new file mode 100644 index 0000000..9b737dd --- /dev/null +++ b/src/org/vamsas/objects/core/Input.java @@ -0,0 +1,220 @@ +/* + * 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 Input. + * + * @version $Revision$ $Date$ + */ +public class Input extends org.vamsas.objects.core.RangeType +implements java.io.Serializable +{ + + + //--------------------------/ + //- Class/Member Variables -/ + //--------------------------/ + + /** + * Field _name + */ + private java.lang.String _name; + + /** + * Reference Frame for rangeType + * specfication + * + */ + private java.lang.Object _objRef; + + + //----------------/ + //- Constructors -/ + //----------------/ + + public Input() + { + super(); + } //-- org.vamsas.objects.core.Input() + + + //-----------/ + //- 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 Input) { + + Input temp = (Input)obj; + if (this._name != null) { + if (temp._name == null) return false; + else if (!(this._name.equals(temp._name))) + return false; + } + else if (temp._name != null) + return false; + if (this._objRef != null) { + if (temp._objRef == null) return false; + else if (!(this._objRef.equals(temp._objRef))) + return false; + } + else if (temp._objRef != null) + return false; + return true; + } + return false; + } //-- boolean equals(java.lang.Object) + + /** + * Returns the value of field 'name'. + * + * @return String + * @return the value of field 'name'. + */ + public java.lang.String getName() + { + return this._name; + } //-- java.lang.String getName() + + /** + * Returns the value of field 'objRef'. The field 'objRef' has + * the following description: Reference Frame for rangeType + * specfication + * + * + * @return Object + * @return the value of field 'objRef'. + */ + public java.lang.Object getObjRef() + { + return this._objRef; + } //-- java.lang.Object getObjRef() + + /** + * 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 'name'. + * + * @param name the value of field 'name'. + */ + public void setName(java.lang.String name) + { + this._name = name; + } //-- void setName(java.lang.String) + + /** + * Sets the value of field 'objRef'. The field 'objRef' has the + * following description: Reference Frame for rangeType + * specfication + * + * + * @param objRef the value of field 'objRef'. + */ + public void setObjRef(java.lang.Object objRef) + { + this._objRef = objRef; + } //-- void setObjRef(java.lang.Object) + + /** + * Method unmarshal + * + * + * + * @param reader + * @return RangeType + */ + public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader) + throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException + { + return (org.vamsas.objects.core.Input) Unmarshaller.unmarshal(org.vamsas.objects.core.Input.class, reader); + } //-- org.vamsas.objects.core.RangeType 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() + +}