X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Forg%2Fvamsas%2Fobjects%2Fcore%2FProperty.java;h=261a52babeac6734712f83591a2bc57b4e078271;hb=8102c1325cac1288977f498c87924264d3037151;hp=1b528663d0213d413edb39faf99a2bd903e0c424;hpb=d4199f5cfea3a90baeb956c4beaa2f3e8c0597c6;p=vamsas.git
diff --git a/src/org/vamsas/objects/core/Property.java b/src/org/vamsas/objects/core/Property.java
index 1b52866..261a52b 100644
--- a/src/org/vamsas/objects/core/Property.java
+++ b/src/org/vamsas/objects/core/Property.java
@@ -1,267 +1,267 @@
-/*
- * 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 Property.
- *
- * @version $Revision$ $Date$
- */
-public class Property extends org.vamsas.client.Vobject
-implements java.io.Serializable
-{
-
-
- //--------------------------/
- //- Class/Member Variables -/
- //--------------------------/
-
- /**
- * internal content storage
- */
- private java.lang.String _content = "";
-
- /**
- * Field _name
- */
- private java.lang.String _name;
-
- /**
- * The type specifies how the property will
- * be parsed. Empty property strings are
- * allowed, and can be used to prototype
- * the input to a document. TODO: specify
- * allowed types
- *
- */
- private java.lang.String _type;
-
-
- //----------------/
- //- Constructors -/
- //----------------/
-
- public Property()
- {
- super();
- setContent("");
- } //-- org.vamsas.objects.core.Property()
-
-
- //-----------/
- //- 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 Property) {
-
- Property temp = (Property)obj;
- if (this._content != null) {
- if (temp._content == null) return false;
- else if (!(this._content.equals(temp._content)))
- return false;
- }
- else if (temp._content != null)
- return false;
- 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._type != null) {
- if (temp._type == null) return false;
- else if (!(this._type.equals(temp._type)))
- return false;
- }
- else if (temp._type != null)
- return false;
- return true;
- }
- return false;
- } //-- boolean equals(java.lang.Object)
-
- /**
- * Returns the value of field 'content'. The field 'content'
- * has the following description: internal content storage
- *
- * @return String
- * @return the value of field 'content'.
- */
- public java.lang.String getContent()
- {
- return this._content;
- } //-- java.lang.String getContent()
-
- /**
- * 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 'type'. The field 'type' has the
- * following description: The type specifies how the property
- * will
- * be parsed. Empty property strings are
- * allowed, and can be used to prototype
- * the input to a document. TODO: specify
- * allowed types
- *
- *
- * @return String
- * @return the value of field 'type'.
- */
- public java.lang.String getType()
- {
- return this._type;
- } //-- java.lang.String getType()
-
- /**
- * 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 'content'. The field 'content' has
- * the following description: internal content storage
- *
- * @param content the value of field 'content'.
- */
- public void setContent(java.lang.String content)
- {
- this._content = content;
- } //-- void setContent(java.lang.String)
-
- /**
- * 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 'type'. The field 'type' has the
- * following description: The type specifies how the property
- * will
- * be parsed. Empty property strings are
- * allowed, and can be used to prototype
- * the input to a document. TODO: specify
- * allowed types
- *
- *
- * @param type the value of field 'type'.
- */
- public void setType(java.lang.String type)
- {
- this._type = type;
- } //-- void setType(java.lang.String)
-
- /**
- * Method unmarshal
- *
- *
- *
- * @param reader
- * @return Property
- */
- public static org.vamsas.objects.core.Property unmarshal(java.io.Reader reader)
- throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
- {
- return (org.vamsas.objects.core.Property) Unmarshaller.unmarshal(org.vamsas.objects.core.Property.class, reader);
- } //-- org.vamsas.objects.core.Property 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()
-
-}
+/*
+ * 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 Property.
+ *
+ * @version $Revision$ $Date$
+ */
+public class Property extends org.vamsas.client.Vobject
+implements java.io.Serializable
+{
+
+
+ //--------------------------/
+ //- Class/Member Variables -/
+ //--------------------------/
+
+ /**
+ * internal content storage
+ */
+ private java.lang.String _content = "";
+
+ /**
+ * Field _name
+ */
+ private java.lang.String _name;
+
+ /**
+ * The type specifies how the property will
+ * be parsed. Empty property strings are
+ * allowed, and can be used to prototype
+ * the input to a document. TODO: specify
+ * allowed types
+ *
+ */
+ private java.lang.String _type;
+
+
+ //----------------/
+ //- Constructors -/
+ //----------------/
+
+ public Property()
+ {
+ super();
+ setContent("");
+ } //-- org.vamsas.objects.core.Property()
+
+
+ //-----------/
+ //- 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 Property) {
+
+ Property temp = (Property)obj;
+ if (this._content != null) {
+ if (temp._content == null) return false;
+ else if (!(this._content.equals(temp._content)))
+ return false;
+ }
+ else if (temp._content != null)
+ return false;
+ 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._type != null) {
+ if (temp._type == null) return false;
+ else if (!(this._type.equals(temp._type)))
+ return false;
+ }
+ else if (temp._type != null)
+ return false;
+ return true;
+ }
+ return false;
+ } //-- boolean equals(java.lang.Object)
+
+ /**
+ * Returns the value of field 'content'. The field 'content'
+ * has the following description: internal content storage
+ *
+ * @return String
+ * @return the value of field 'content'.
+ */
+ public java.lang.String getContent()
+ {
+ return this._content;
+ } //-- java.lang.String getContent()
+
+ /**
+ * 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 'type'. The field 'type' has the
+ * following description: The type specifies how the property
+ * will
+ * be parsed. Empty property strings are
+ * allowed, and can be used to prototype
+ * the input to a document. TODO: specify
+ * allowed types
+ *
+ *
+ * @return String
+ * @return the value of field 'type'.
+ */
+ public java.lang.String getType()
+ {
+ return this._type;
+ } //-- java.lang.String getType()
+
+ /**
+ * 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 'content'. The field 'content' has
+ * the following description: internal content storage
+ *
+ * @param content the value of field 'content'.
+ */
+ public void setContent(java.lang.String content)
+ {
+ this._content = content;
+ } //-- void setContent(java.lang.String)
+
+ /**
+ * 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 'type'. The field 'type' has the
+ * following description: The type specifies how the property
+ * will
+ * be parsed. Empty property strings are
+ * allowed, and can be used to prototype
+ * the input to a document. TODO: specify
+ * allowed types
+ *
+ *
+ * @param type the value of field 'type'.
+ */
+ public void setType(java.lang.String type)
+ {
+ this._type = type;
+ } //-- void setType(java.lang.String)
+
+ /**
+ * Method unmarshal
+ *
+ *
+ *
+ * @param reader
+ * @return Property
+ */
+ public static org.vamsas.objects.core.Property unmarshal(java.io.Reader reader)
+ throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
+ {
+ return (org.vamsas.objects.core.Property) Unmarshaller.unmarshal(org.vamsas.objects.core.Property.class, reader);
+ } //-- org.vamsas.objects.core.Property 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()
+
+}