Java binding for new document schema (from 1st hinxton vamsas Meeting)
authorjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 1 Sep 2006 16:57:38 +0000 (16:57 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Fri, 1 Sep 2006 16:57:38 +0000 (16:57 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@231 be28352e-c001-0410-b1a7-c7978e42abec

37 files changed:
src/org/vamsas/objects/core/.castor.cdr
src/org/vamsas/objects/core/AlignmentAnnotation.java
src/org/vamsas/objects/core/AlignmentAnnotationDescriptor.java
src/org/vamsas/objects/core/AlignmentSequenceAnnotation.java
src/org/vamsas/objects/core/AlignmentSequenceAnnotationDescriptor.java
src/org/vamsas/objects/core/AppData.java
src/org/vamsas/objects/core/AppDataDescriptor.java
src/org/vamsas/objects/core/Attachment.java
src/org/vamsas/objects/core/AttachmentDescriptor.java
src/org/vamsas/objects/core/Common.java
src/org/vamsas/objects/core/CommonDescriptor.java
src/org/vamsas/objects/core/Glyph.java
src/org/vamsas/objects/core/GlyphDescriptor.java
src/org/vamsas/objects/core/Input.java
src/org/vamsas/objects/core/InputDescriptor.java
src/org/vamsas/objects/core/Instance.java
src/org/vamsas/objects/core/InstanceDescriptor.java
src/org/vamsas/objects/core/Link.java
src/org/vamsas/objects/core/LinkDescriptor.java
src/org/vamsas/objects/core/Map.java
src/org/vamsas/objects/core/MapDescriptor.java
src/org/vamsas/objects/core/Param.java
src/org/vamsas/objects/core/ParamDescriptor.java
src/org/vamsas/objects/core/Pos.java
src/org/vamsas/objects/core/PosDescriptor.java
src/org/vamsas/objects/core/Property.java
src/org/vamsas/objects/core/PropertyDescriptor.java
src/org/vamsas/objects/core/RangeAnnotation.java
src/org/vamsas/objects/core/RangeAnnotationDescriptor.java
src/org/vamsas/objects/core/RangeType.java
src/org/vamsas/objects/core/RangeTypeDescriptor.java
src/org/vamsas/objects/core/Score.java
src/org/vamsas/objects/core/ScoreDescriptor.java
src/org/vamsas/objects/core/Seg.java
src/org/vamsas/objects/core/SegDescriptor.java
test/archivestore.zip [new file with mode: 0644]
test/vamsas.zip

index 8c7d2cf..8ec2cf3 100644 (file)
@@ -1,3 +1,3 @@
--- listing properties --
-org.vamsas.objects.core.LockFile=org.vamsas.objects.core.LockFileDescr...
-org.vamsas.objects.core.VamsasDocument=org.vamsas.objects.core.VamsasDocumen...
+-- listing properties --\r
+org.vamsas.objects.core.LockFile=org.vamsas.objects.core.LockFileDescr...\r
+org.vamsas.objects.core.VamsasDocument=org.vamsas.objects.core.VamsasDocumen...\r
index 0bfc7f0..884c390 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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;
-
-/**
- * This is annotation over the
- *  coordinate frame defined by all
- *  the columns in the alignment.
- *  
- * 
- * @version $Revision$ $Date$
- */
-public class AlignmentAnnotation extends org.vamsas.objects.core.RangeAnnotation 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * TODO: decide if
-     *  this flag is
-     *  redundant - when
-     *  true it would
-     *  suggest that the
-     *  annotationElement
-     *  values together
-     *  form a graph
-     *  
-     */
-    private boolean _graph;
-
-    /**
-     * keeps track of state for field: _graph
-     */
-    private boolean _has_graph;
-
-    /**
-     * Field _provenance
-     */
-    private org.vamsas.objects.core.Provenance _provenance;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public AlignmentAnnotation() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.AlignmentAnnotation()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteGraph
-     * 
-     */
-    public void deleteGraph()
-    {
-        this._has_graph= false;
-    } //-- void deleteGraph() 
-
-    /**
-     * 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 AlignmentAnnotation) {
-        
-            AlignmentAnnotation temp = (AlignmentAnnotation)obj;
-            if (this._graph != temp._graph)
-                return false;
-            if (this._has_graph != temp._has_graph)
-                return false;
-            if (this._provenance != null) {
-                if (temp._provenance == null) return false;
-                else if (!(this._provenance.equals(temp._provenance))) 
-                    return false;
-            }
-            else if (temp._provenance != null)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'graph'. The field 'graph' has
-     * the following description: TODO: decide if
-     *  this flag is
-     *  redundant - when
-     *  true it would
-     *  suggest that the
-     *  annotationElement
-     *  values together
-     *  form a graph
-     *  
-     * 
-     * @return boolean
-     * @return the value of field 'graph'.
-     */
-    public boolean getGraph()
-    {
-        return this._graph;
-    } //-- boolean getGraph() 
-
-    /**
-     * Returns the value of field 'provenance'.
-     * 
-     * @return Provenance
-     * @return the value of field 'provenance'.
-     */
-    public org.vamsas.objects.core.Provenance getProvenance()
-    {
-        return this._provenance;
-    } //-- org.vamsas.objects.core.Provenance getProvenance() 
-
-    /**
-     * Method hasGraph
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasGraph()
-    {
-        return this._has_graph;
-    } //-- boolean hasGraph() 
-
-    /**
-     * 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 'graph'. The field 'graph' has the
-     * following description: TODO: decide if
-     *  this flag is
-     *  redundant - when
-     *  true it would
-     *  suggest that the
-     *  annotationElement
-     *  values together
-     *  form a graph
-     *  
-     * 
-     * @param graph the value of field 'graph'.
-     */
-    public void setGraph(boolean graph)
-    {
-        this._graph = graph;
-        this._has_graph = true;
-    } //-- void setGraph(boolean) 
-
-    /**
-     * Sets the value of field 'provenance'.
-     * 
-     * @param provenance the value of field 'provenance'.
-     */
-    public void setProvenance(org.vamsas.objects.core.Provenance provenance)
-    {
-        this._provenance = provenance;
-    } //-- void setProvenance(org.vamsas.objects.core.Provenance) 
-
-    /**
-     * 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.AlignmentAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentAnnotation.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * This is annotation over the\r
+ *  coordinate frame defined by all\r
+ *  the columns in the alignment.\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AlignmentAnnotation extends org.vamsas.objects.core.RangeAnnotation \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * TODO: decide if\r
+     *  this flag is\r
+     *  redundant - when\r
+     *  true it would\r
+     *  suggest that the\r
+     *  annotationElement\r
+     *  values together\r
+     *  form a graph\r
+     *  \r
+     */\r
+    private boolean _graph;\r
+\r
+    /**\r
+     * keeps track of state for field: _graph\r
+     */\r
+    private boolean _has_graph;\r
+\r
+    /**\r
+     * Field _provenance\r
+     */\r
+    private org.vamsas.objects.core.Provenance _provenance;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AlignmentAnnotation() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.AlignmentAnnotation()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteGraph\r
+     * \r
+     */\r
+    public void deleteGraph()\r
+    {\r
+        this._has_graph= false;\r
+    } //-- void deleteGraph() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof AlignmentAnnotation) {\r
+        \r
+            AlignmentAnnotation temp = (AlignmentAnnotation)obj;\r
+            if (this._graph != temp._graph)\r
+                return false;\r
+            if (this._has_graph != temp._has_graph)\r
+                return false;\r
+            if (this._provenance != null) {\r
+                if (temp._provenance == null) return false;\r
+                else if (!(this._provenance.equals(temp._provenance))) \r
+                    return false;\r
+            }\r
+            else if (temp._provenance != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'graph'. The field 'graph' has\r
+     * the following description: TODO: decide if\r
+     *  this flag is\r
+     *  redundant - when\r
+     *  true it would\r
+     *  suggest that the\r
+     *  annotationElement\r
+     *  values together\r
+     *  form a graph\r
+     *  \r
+     * \r
+     * @return boolean\r
+     * @return the value of field 'graph'.\r
+     */\r
+    public boolean getGraph()\r
+    {\r
+        return this._graph;\r
+    } //-- boolean getGraph() \r
+\r
+    /**\r
+     * Returns the value of field 'provenance'.\r
+     * \r
+     * @return Provenance\r
+     * @return the value of field 'provenance'.\r
+     */\r
+    public org.vamsas.objects.core.Provenance getProvenance()\r
+    {\r
+        return this._provenance;\r
+    } //-- org.vamsas.objects.core.Provenance getProvenance() \r
+\r
+    /**\r
+     * Method hasGraph\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasGraph()\r
+    {\r
+        return this._has_graph;\r
+    } //-- boolean hasGraph() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'graph'. The field 'graph' has the\r
+     * following description: TODO: decide if\r
+     *  this flag is\r
+     *  redundant - when\r
+     *  true it would\r
+     *  suggest that the\r
+     *  annotationElement\r
+     *  values together\r
+     *  form a graph\r
+     *  \r
+     * \r
+     * @param graph the value of field 'graph'.\r
+     */\r
+    public void setGraph(boolean graph)\r
+    {\r
+        this._graph = graph;\r
+        this._has_graph = true;\r
+    } //-- void setGraph(boolean) \r
+\r
+    /**\r
+     * Sets the value of field 'provenance'.\r
+     * \r
+     * @param provenance the value of field 'provenance'.\r
+     */\r
+    public void setProvenance(org.vamsas.objects.core.Provenance provenance)\r
+    {\r
+        this._provenance = provenance;\r
+    } //-- void setProvenance(org.vamsas.objects.core.Provenance) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return RangeType\r
+     */\r
+    public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.AlignmentAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentAnnotation.class, reader);\r
+    } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index da72105..fb81a9a 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 AlignmentAnnotationDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class AlignmentAnnotationDescriptor extends org.vamsas.objects.core.RangeAnnotationDescriptor {
-
-
-      //--------------------------/
-     //- 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 AlignmentAnnotationDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeAnnotationDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "AlignmentAnnotation";
-        
-        //-- set grouping compositor
-        setCompositorAsSequence();
-        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
-        
-        //-- _graph
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_graph", "graph", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                AlignmentAnnotation target = (AlignmentAnnotation) object;
-                if(!target.hasGraph())
-                    return null;
-                return (target.getGraph() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    AlignmentAnnotation target = (AlignmentAnnotation) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setGraph( ((java.lang.Boolean)value).booleanValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _graph
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            BooleanValidator typeValidator = new BooleanValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-        //-- _provenance
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenance", "Provenance", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                AlignmentAnnotation target = (AlignmentAnnotation) object;
-                return target.getProvenance();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    AlignmentAnnotation target = (AlignmentAnnotation) object;
-                    target.setProvenance( (org.vamsas.objects.core.Provenance) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new org.vamsas.objects.core.Provenance();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setNameSpaceURI("http://www.vamsas.org");
-        desc.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _provenance
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-    } //-- org.vamsas.objects.core.AlignmentAnnotationDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.AlignmentAnnotation.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class AlignmentAnnotationDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AlignmentAnnotationDescriptor extends org.vamsas.objects.core.RangeAnnotationDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AlignmentAnnotationDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeAnnotationDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "AlignmentAnnotation";\r
+        \r
+        //-- set grouping compositor\r
+        setCompositorAsSequence();\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _graph\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_graph", "graph", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                AlignmentAnnotation target = (AlignmentAnnotation) object;\r
+                if(!target.hasGraph())\r
+                    return null;\r
+                return (target.getGraph() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    AlignmentAnnotation target = (AlignmentAnnotation) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setGraph( ((java.lang.Boolean)value).booleanValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _graph\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            BooleanValidator typeValidator = new BooleanValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+        //-- _provenance\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenance", "Provenance", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                AlignmentAnnotation target = (AlignmentAnnotation) object;\r
+                return target.getProvenance();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    AlignmentAnnotation target = (AlignmentAnnotation) object;\r
+                    target.setProvenance( (org.vamsas.objects.core.Provenance) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new org.vamsas.objects.core.Provenance();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _provenance\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+    } //-- org.vamsas.objects.core.AlignmentAnnotationDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.AlignmentAnnotation.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 7c747d1..fe4deda 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 AlignmentSequenceAnnotation.
- * 
- * @version $Revision$ $Date$
- */
-public class AlignmentSequenceAnnotation extends org.vamsas.objects.core.RangeAnnotation 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * TODO:
-     *  decide
-     *  if
-     *  this
-     *  flag
-     *  is
-     *  redundant
-     *  -
-     *  when
-     *  true
-     *  it
-     *  would
-     *  suggest
-     *  that
-     *  the
-     *  annotationElement
-     *  values
-     *  together
-     *  form
-     *  a
-     *  graph
-     *  
-     */
-    private boolean _graph;
-
-    /**
-     * keeps track of state for field: _graph
-     */
-    private boolean _has_graph;
-
-    /**
-     * Field _provenance
-     */
-    private org.vamsas.objects.core.Provenance _provenance;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public AlignmentSequenceAnnotation() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.AlignmentSequenceAnnotation()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteGraph
-     * 
-     */
-    public void deleteGraph()
-    {
-        this._has_graph= false;
-    } //-- void deleteGraph() 
-
-    /**
-     * 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 AlignmentSequenceAnnotation) {
-        
-            AlignmentSequenceAnnotation temp = (AlignmentSequenceAnnotation)obj;
-            if (this._graph != temp._graph)
-                return false;
-            if (this._has_graph != temp._has_graph)
-                return false;
-            if (this._provenance != null) {
-                if (temp._provenance == null) return false;
-                else if (!(this._provenance.equals(temp._provenance))) 
-                    return false;
-            }
-            else if (temp._provenance != null)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'graph'. The field 'graph' has
-     * the following description: TODO:
-     *  decide
-     *  if
-     *  this
-     *  flag
-     *  is
-     *  redundant
-     *  -
-     *  when
-     *  true
-     *  it
-     *  would
-     *  suggest
-     *  that
-     *  the
-     *  annotationElement
-     *  values
-     *  together
-     *  form
-     *  a
-     *  graph
-     *  
-     * 
-     * @return boolean
-     * @return the value of field 'graph'.
-     */
-    public boolean getGraph()
-    {
-        return this._graph;
-    } //-- boolean getGraph() 
-
-    /**
-     * Returns the value of field 'provenance'.
-     * 
-     * @return Provenance
-     * @return the value of field 'provenance'.
-     */
-    public org.vamsas.objects.core.Provenance getProvenance()
-    {
-        return this._provenance;
-    } //-- org.vamsas.objects.core.Provenance getProvenance() 
-
-    /**
-     * Method hasGraph
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasGraph()
-    {
-        return this._has_graph;
-    } //-- boolean hasGraph() 
-
-    /**
-     * 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 'graph'. The field 'graph' has the
-     * following description: TODO:
-     *  decide
-     *  if
-     *  this
-     *  flag
-     *  is
-     *  redundant
-     *  -
-     *  when
-     *  true
-     *  it
-     *  would
-     *  suggest
-     *  that
-     *  the
-     *  annotationElement
-     *  values
-     *  together
-     *  form
-     *  a
-     *  graph
-     *  
-     * 
-     * @param graph the value of field 'graph'.
-     */
-    public void setGraph(boolean graph)
-    {
-        this._graph = graph;
-        this._has_graph = true;
-    } //-- void setGraph(boolean) 
-
-    /**
-     * Sets the value of field 'provenance'.
-     * 
-     * @param provenance the value of field 'provenance'.
-     */
-    public void setProvenance(org.vamsas.objects.core.Provenance provenance)
-    {
-        this._provenance = provenance;
-    } //-- void setProvenance(org.vamsas.objects.core.Provenance) 
-
-    /**
-     * 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.AlignmentSequenceAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentSequenceAnnotation.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class AlignmentSequenceAnnotation.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AlignmentSequenceAnnotation extends org.vamsas.objects.core.RangeAnnotation \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * TODO:\r
+     *  decide\r
+     *  if\r
+     *  this\r
+     *  flag\r
+     *  is\r
+     *  redundant\r
+     *  -\r
+     *  when\r
+     *  true\r
+     *  it\r
+     *  would\r
+     *  suggest\r
+     *  that\r
+     *  the\r
+     *  annotationElement\r
+     *  values\r
+     *  together\r
+     *  form\r
+     *  a\r
+     *  graph\r
+     *  \r
+     */\r
+    private boolean _graph;\r
+\r
+    /**\r
+     * keeps track of state for field: _graph\r
+     */\r
+    private boolean _has_graph;\r
+\r
+    /**\r
+     * Field _provenance\r
+     */\r
+    private org.vamsas.objects.core.Provenance _provenance;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AlignmentSequenceAnnotation() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.AlignmentSequenceAnnotation()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteGraph\r
+     * \r
+     */\r
+    public void deleteGraph()\r
+    {\r
+        this._has_graph= false;\r
+    } //-- void deleteGraph() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof AlignmentSequenceAnnotation) {\r
+        \r
+            AlignmentSequenceAnnotation temp = (AlignmentSequenceAnnotation)obj;\r
+            if (this._graph != temp._graph)\r
+                return false;\r
+            if (this._has_graph != temp._has_graph)\r
+                return false;\r
+            if (this._provenance != null) {\r
+                if (temp._provenance == null) return false;\r
+                else if (!(this._provenance.equals(temp._provenance))) \r
+                    return false;\r
+            }\r
+            else if (temp._provenance != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'graph'. The field 'graph' has\r
+     * the following description: TODO:\r
+     *  decide\r
+     *  if\r
+     *  this\r
+     *  flag\r
+     *  is\r
+     *  redundant\r
+     *  -\r
+     *  when\r
+     *  true\r
+     *  it\r
+     *  would\r
+     *  suggest\r
+     *  that\r
+     *  the\r
+     *  annotationElement\r
+     *  values\r
+     *  together\r
+     *  form\r
+     *  a\r
+     *  graph\r
+     *  \r
+     * \r
+     * @return boolean\r
+     * @return the value of field 'graph'.\r
+     */\r
+    public boolean getGraph()\r
+    {\r
+        return this._graph;\r
+    } //-- boolean getGraph() \r
+\r
+    /**\r
+     * Returns the value of field 'provenance'.\r
+     * \r
+     * @return Provenance\r
+     * @return the value of field 'provenance'.\r
+     */\r
+    public org.vamsas.objects.core.Provenance getProvenance()\r
+    {\r
+        return this._provenance;\r
+    } //-- org.vamsas.objects.core.Provenance getProvenance() \r
+\r
+    /**\r
+     * Method hasGraph\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasGraph()\r
+    {\r
+        return this._has_graph;\r
+    } //-- boolean hasGraph() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'graph'. The field 'graph' has the\r
+     * following description: TODO:\r
+     *  decide\r
+     *  if\r
+     *  this\r
+     *  flag\r
+     *  is\r
+     *  redundant\r
+     *  -\r
+     *  when\r
+     *  true\r
+     *  it\r
+     *  would\r
+     *  suggest\r
+     *  that\r
+     *  the\r
+     *  annotationElement\r
+     *  values\r
+     *  together\r
+     *  form\r
+     *  a\r
+     *  graph\r
+     *  \r
+     * \r
+     * @param graph the value of field 'graph'.\r
+     */\r
+    public void setGraph(boolean graph)\r
+    {\r
+        this._graph = graph;\r
+        this._has_graph = true;\r
+    } //-- void setGraph(boolean) \r
+\r
+    /**\r
+     * Sets the value of field 'provenance'.\r
+     * \r
+     * @param provenance the value of field 'provenance'.\r
+     */\r
+    public void setProvenance(org.vamsas.objects.core.Provenance provenance)\r
+    {\r
+        this._provenance = provenance;\r
+    } //-- void setProvenance(org.vamsas.objects.core.Provenance) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return RangeType\r
+     */\r
+    public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.AlignmentSequenceAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentSequenceAnnotation.class, reader);\r
+    } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 722269d..a4aa126 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 AlignmentSequenceAnnotationDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class AlignmentSequenceAnnotationDescriptor extends org.vamsas.objects.core.RangeAnnotationDescriptor {
-
-
-      //--------------------------/
-     //- 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 AlignmentSequenceAnnotationDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeAnnotationDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "AlignmentSequenceAnnotation";
-        
-        //-- set grouping compositor
-        setCompositorAsSequence();
-        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
-        
-        //-- _graph
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_graph", "graph", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;
-                if(!target.hasGraph())
-                    return null;
-                return (target.getGraph() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setGraph( ((java.lang.Boolean)value).booleanValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _graph
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            BooleanValidator typeValidator = new BooleanValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-        //-- _provenance
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenance", "Provenance", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;
-                return target.getProvenance();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;
-                    target.setProvenance( (org.vamsas.objects.core.Provenance) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new org.vamsas.objects.core.Provenance();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setNameSpaceURI("http://www.vamsas.org");
-        desc.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _provenance
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-    } //-- org.vamsas.objects.core.AlignmentSequenceAnnotationDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.AlignmentSequenceAnnotation.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class AlignmentSequenceAnnotationDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AlignmentSequenceAnnotationDescriptor extends org.vamsas.objects.core.RangeAnnotationDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AlignmentSequenceAnnotationDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeAnnotationDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "AlignmentSequenceAnnotation";\r
+        \r
+        //-- set grouping compositor\r
+        setCompositorAsSequence();\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _graph\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_graph", "graph", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;\r
+                if(!target.hasGraph())\r
+                    return null;\r
+                return (target.getGraph() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setGraph( ((java.lang.Boolean)value).booleanValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _graph\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            BooleanValidator typeValidator = new BooleanValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+        //-- _provenance\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenance", "Provenance", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;\r
+                return target.getProvenance();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    AlignmentSequenceAnnotation target = (AlignmentSequenceAnnotation) object;\r
+                    target.setProvenance( (org.vamsas.objects.core.Provenance) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new org.vamsas.objects.core.Provenance();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _provenance\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+    } //-- org.vamsas.objects.core.AlignmentSequenceAnnotationDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.AlignmentSequenceAnnotation.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 95a51d6..168bc6b 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 AppData.
- * 
- * @version $Revision$ $Date$
- */
-public class AppData extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Internal choice value storage
-     */
-    private java.lang.Object _choiceValue;
-
-    /**
-     * Field _data
-     */
-    private byte[] _data;
-
-    /**
-     * Field _dataReference
-     */
-    private java.lang.String _dataReference;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public AppData() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.AppData()
-
-
-      //-----------/
-     //- 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 AppData) {
-        
-            AppData temp = (AppData)obj;
-            if (this._choiceValue != null) {
-                if (temp._choiceValue == null) return false;
-                else if (!(this._choiceValue.equals(temp._choiceValue))) 
-                    return false;
-            }
-            else if (temp._choiceValue != null)
-                return false;
-            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 'choiceValue'. The field
-     * 'choiceValue' has the following description: Internal choice
-     * value storage
-     * 
-     * @return Object
-     * @return the value of field 'choiceValue'.
-     */
-    public java.lang.Object getChoiceValue()
-    {
-        return this._choiceValue;
-    } //-- java.lang.Object getChoiceValue() 
-
-    /**
-     * 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;
-        this._choiceValue = 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;
-        this._choiceValue = dataReference;
-    } //-- void setDataReference(java.lang.String) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return AppData
-     */
-    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.AppData) Unmarshaller.unmarshal(org.vamsas.objects.core.AppData.class, reader);
-    } //-- org.vamsas.objects.core.AppData 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class AppData.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AppData extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Internal choice value storage\r
+     */\r
+    private java.lang.Object _choiceValue;\r
+\r
+    /**\r
+     * Field _data\r
+     */\r
+    private byte[] _data;\r
+\r
+    /**\r
+     * Field _dataReference\r
+     */\r
+    private java.lang.String _dataReference;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AppData() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.AppData()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof AppData) {\r
+        \r
+            AppData temp = (AppData)obj;\r
+            if (this._choiceValue != null) {\r
+                if (temp._choiceValue == null) return false;\r
+                else if (!(this._choiceValue.equals(temp._choiceValue))) \r
+                    return false;\r
+            }\r
+            else if (temp._choiceValue != null)\r
+                return false;\r
+            if (this._data != null) {\r
+                if (temp._data == null) return false;\r
+                else if (!(this._data.equals(temp._data))) \r
+                    return false;\r
+            }\r
+            else if (temp._data != null)\r
+                return false;\r
+            if (this._dataReference != null) {\r
+                if (temp._dataReference == null) return false;\r
+                else if (!(this._dataReference.equals(temp._dataReference))) \r
+                    return false;\r
+            }\r
+            else if (temp._dataReference != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'choiceValue'. The field\r
+     * 'choiceValue' has the following description: Internal choice\r
+     * value storage\r
+     * \r
+     * @return Object\r
+     * @return the value of field 'choiceValue'.\r
+     */\r
+    public java.lang.Object getChoiceValue()\r
+    {\r
+        return this._choiceValue;\r
+    } //-- java.lang.Object getChoiceValue() \r
+\r
+    /**\r
+     * Returns the value of field 'data'.\r
+     * \r
+     * @return byte\r
+     * @return the value of field 'data'.\r
+     */\r
+    public byte[] getData()\r
+    {\r
+        return this._data;\r
+    } //-- byte[] getData() \r
+\r
+    /**\r
+     * Returns the value of field 'dataReference'.\r
+     * \r
+     * @return String\r
+     * @return the value of field 'dataReference'.\r
+     */\r
+    public java.lang.String getDataReference()\r
+    {\r
+        return this._dataReference;\r
+    } //-- java.lang.String getDataReference() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'data'.\r
+     * \r
+     * @param data the value of field 'data'.\r
+     */\r
+    public void setData(byte[] data)\r
+    {\r
+        this._data = data;\r
+        this._choiceValue = data;\r
+    } //-- void setData(byte) \r
+\r
+    /**\r
+     * Sets the value of field 'dataReference'.\r
+     * \r
+     * @param dataReference the value of field 'dataReference'.\r
+     */\r
+    public void setDataReference(java.lang.String dataReference)\r
+    {\r
+        this._dataReference = dataReference;\r
+        this._choiceValue = dataReference;\r
+    } //-- void setDataReference(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return AppData\r
+     */\r
+    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.AppData) Unmarshaller.unmarshal(org.vamsas.objects.core.AppData.class, reader);\r
+    } //-- org.vamsas.objects.core.AppData unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 50377d3..d0eeab9 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 AppDataDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class AppDataDescriptor 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 AppDataDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "appData";
-        
-        //-- 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
-            {
-                AppData target = (AppData) object;
-                return target.getData();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    AppData target = (AppData) 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
-            {
-                AppData target = (AppData) object;
-                return target.getDataReference();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    AppData target = (AppData) 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.AppDataDescriptor()
-
-
-      //-----------/
-     //- 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.AppData.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class AppDataDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AppDataDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AppDataDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "appData";\r
+        \r
+        //-- set grouping compositor\r
+        setCompositorAsChoice();\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- initialize element descriptors\r
+        \r
+        //-- _data\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(byte[].class, "_data", "data", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                AppData target = (AppData) object;\r
+                return target.getData();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    AppData target = (AppData) object;\r
+                    target.setData( (byte[]) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _data\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _dataReference\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dataReference", "dataReference", org.exolab.castor.xml.NodeType.Element);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                AppData target = (AppData) object;\r
+                return target.getDataReference();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    AppData target = (AppData) object;\r
+                    target.setDataReference( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _dataReference\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+    } //-- org.vamsas.objects.core.AppDataDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.AppData.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index a906c00..198f046 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 Attachment.
- * 
- * @version $Revision$ $Date$
- */
-public class Attachment extends org.vamsas.objects.core.AppData 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * true implies data will be decompresses
-     *  with Zip before presenting to
-     *  application
-     *  
-     */
-    private boolean _compressed = false;
-
-    /**
-     * keeps track of state for field: _compressed
-     */
-    private boolean _has_compressed;
-
-    /**
-     * Type of arbitrary data - TODO: decide
-     *  format - use (extended) MIME types ?
-     *  
-     */
-    private java.lang.String _type;
-
-    /**
-     * Object the arbitrary data is associated
-     *  with
-     *  
-     */
-    private java.lang.Object _objectref;
-
-    /**
-     * Primary Key for vamsas object
-     *  referencing
-     *  
-     */
-    private java.lang.String _id;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Attachment() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.Attachment()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteCompressed
-     * 
-     */
-    public void deleteCompressed()
-    {
-        this._has_compressed= false;
-    } //-- void deleteCompressed() 
-
-    /**
-     * 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 Attachment) {
-        
-            Attachment temp = (Attachment)obj;
-            if (this._compressed != temp._compressed)
-                return false;
-            if (this._has_compressed != temp._has_compressed)
-                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;
-            if (this._objectref != null) {
-                if (temp._objectref == null) return false;
-                else if (!(this._objectref.equals(temp._objectref))) 
-                    return false;
-            }
-            else if (temp._objectref != null)
-                return false;
-            if (this._id != null) {
-                if (temp._id == null) return false;
-                else if (!(this._id.equals(temp._id))) 
-                    return false;
-            }
-            else if (temp._id != null)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'compressed'. The field
-     * 'compressed' has the following description: true implies
-     * data will be decompresses
-     *  with Zip before presenting to
-     *  application
-     *  
-     * 
-     * @return boolean
-     * @return the value of field 'compressed'.
-     */
-    public boolean getCompressed()
-    {
-        return this._compressed;
-    } //-- boolean getCompressed() 
-
-    /**
-     * Returns the value of field 'id'. The field 'id' has the
-     * following description: Primary Key for vamsas object
-     *  referencing
-     *  
-     * 
-     * @return String
-     * @return the value of field 'id'.
-     */
-    public java.lang.String getId()
-    {
-        return this._id;
-    } //-- java.lang.String getId() 
-
-    /**
-     * Returns the value of field 'objectref'. The field
-     * 'objectref' has the following description: Object the
-     * arbitrary data is associated
-     *  with
-     *  
-     * 
-     * @return Object
-     * @return the value of field 'objectref'.
-     */
-    public java.lang.Object getObjectref()
-    {
-        return this._objectref;
-    } //-- java.lang.Object getObjectref() 
-
-    /**
-     * Returns the value of field 'type'. The field 'type' has the
-     * following description: Type of arbitrary data - TODO: decide
-     *  format - use (extended) MIME types ?
-     *  
-     * 
-     * @return String
-     * @return the value of field 'type'.
-     */
-    public java.lang.String getType()
-    {
-        return this._type;
-    } //-- java.lang.String getType() 
-
-    /**
-     * Method hasCompressed
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasCompressed()
-    {
-        return this._has_compressed;
-    } //-- boolean hasCompressed() 
-
-    /**
-     * 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 'compressed'. The field 'compressed'
-     * has the following description: true implies data will be
-     * decompresses
-     *  with Zip before presenting to
-     *  application
-     *  
-     * 
-     * @param compressed the value of field 'compressed'.
-     */
-    public void setCompressed(boolean compressed)
-    {
-        this._compressed = compressed;
-        this._has_compressed = true;
-    } //-- void setCompressed(boolean) 
-
-    /**
-     * Sets the value of field 'id'. The field 'id' has the
-     * following description: Primary Key for vamsas object
-     *  referencing
-     *  
-     * 
-     * @param id the value of field 'id'.
-     */
-    public void setId(java.lang.String id)
-    {
-        this._id = id;
-    } //-- void setId(java.lang.String) 
-
-    /**
-     * Sets the value of field 'objectref'. The field 'objectref'
-     * has the following description: Object the arbitrary data is
-     * associated
-     *  with
-     *  
-     * 
-     * @param objectref the value of field 'objectref'.
-     */
-    public void setObjectref(java.lang.Object objectref)
-    {
-        this._objectref = objectref;
-    } //-- void setObjectref(java.lang.Object) 
-
-    /**
-     * Sets the value of field 'type'. The field 'type' has the
-     * following description: Type of arbitrary data - TODO: decide
-     *  format - use (extended) MIME 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 AppData
-     */
-    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Attachment) Unmarshaller.unmarshal(org.vamsas.objects.core.Attachment.class, reader);
-    } //-- org.vamsas.objects.core.AppData 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Attachment.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Attachment extends org.vamsas.objects.core.AppData \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * true implies data will be decompresses\r
+     *  with Zip before presenting to\r
+     *  application\r
+     *  \r
+     */\r
+    private boolean _compressed = false;\r
+\r
+    /**\r
+     * keeps track of state for field: _compressed\r
+     */\r
+    private boolean _has_compressed;\r
+\r
+    /**\r
+     * Type of arbitrary data - TODO: decide\r
+     *  format - use (extended) MIME types ?\r
+     *  \r
+     */\r
+    private java.lang.String _type;\r
+\r
+    /**\r
+     * Object the arbitrary data is associated\r
+     *  with\r
+     *  \r
+     */\r
+    private java.lang.Object _objectref;\r
+\r
+    /**\r
+     * Primary Key for vamsas object\r
+     *  referencing\r
+     *  \r
+     */\r
+    private java.lang.String _id;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Attachment() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Attachment()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteCompressed\r
+     * \r
+     */\r
+    public void deleteCompressed()\r
+    {\r
+        this._has_compressed= false;\r
+    } //-- void deleteCompressed() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Attachment) {\r
+        \r
+            Attachment temp = (Attachment)obj;\r
+            if (this._compressed != temp._compressed)\r
+                return false;\r
+            if (this._has_compressed != temp._has_compressed)\r
+                return false;\r
+            if (this._type != null) {\r
+                if (temp._type == null) return false;\r
+                else if (!(this._type.equals(temp._type))) \r
+                    return false;\r
+            }\r
+            else if (temp._type != null)\r
+                return false;\r
+            if (this._objectref != null) {\r
+                if (temp._objectref == null) return false;\r
+                else if (!(this._objectref.equals(temp._objectref))) \r
+                    return false;\r
+            }\r
+            else if (temp._objectref != null)\r
+                return false;\r
+            if (this._id != null) {\r
+                if (temp._id == null) return false;\r
+                else if (!(this._id.equals(temp._id))) \r
+                    return false;\r
+            }\r
+            else if (temp._id != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'compressed'. The field\r
+     * 'compressed' has the following description: true implies\r
+     * data will be decompresses\r
+     *  with Zip before presenting to\r
+     *  application\r
+     *  \r
+     * \r
+     * @return boolean\r
+     * @return the value of field 'compressed'.\r
+     */\r
+    public boolean getCompressed()\r
+    {\r
+        return this._compressed;\r
+    } //-- boolean getCompressed() \r
+\r
+    /**\r
+     * Returns the value of field 'id'. The field 'id' has the\r
+     * following description: Primary Key for vamsas object\r
+     *  referencing\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'id'.\r
+     */\r
+    public java.lang.String getId()\r
+    {\r
+        return this._id;\r
+    } //-- java.lang.String getId() \r
+\r
+    /**\r
+     * Returns the value of field 'objectref'. The field\r
+     * 'objectref' has the following description: Object the\r
+     * arbitrary data is associated\r
+     *  with\r
+     *  \r
+     * \r
+     * @return Object\r
+     * @return the value of field 'objectref'.\r
+     */\r
+    public java.lang.Object getObjectref()\r
+    {\r
+        return this._objectref;\r
+    } //-- java.lang.Object getObjectref() \r
+\r
+    /**\r
+     * Returns the value of field 'type'. The field 'type' has the\r
+     * following description: Type of arbitrary data - TODO: decide\r
+     *  format - use (extended) MIME types ?\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'type'.\r
+     */\r
+    public java.lang.String getType()\r
+    {\r
+        return this._type;\r
+    } //-- java.lang.String getType() \r
+\r
+    /**\r
+     * Method hasCompressed\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasCompressed()\r
+    {\r
+        return this._has_compressed;\r
+    } //-- boolean hasCompressed() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'compressed'. The field 'compressed'\r
+     * has the following description: true implies data will be\r
+     * decompresses\r
+     *  with Zip before presenting to\r
+     *  application\r
+     *  \r
+     * \r
+     * @param compressed the value of field 'compressed'.\r
+     */\r
+    public void setCompressed(boolean compressed)\r
+    {\r
+        this._compressed = compressed;\r
+        this._has_compressed = true;\r
+    } //-- void setCompressed(boolean) \r
+\r
+    /**\r
+     * Sets the value of field 'id'. The field 'id' has the\r
+     * following description: Primary Key for vamsas object\r
+     *  referencing\r
+     *  \r
+     * \r
+     * @param id the value of field 'id'.\r
+     */\r
+    public void setId(java.lang.String id)\r
+    {\r
+        this._id = id;\r
+    } //-- void setId(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'objectref'. The field 'objectref'\r
+     * has the following description: Object the arbitrary data is\r
+     * associated\r
+     *  with\r
+     *  \r
+     * \r
+     * @param objectref the value of field 'objectref'.\r
+     */\r
+    public void setObjectref(java.lang.Object objectref)\r
+    {\r
+        this._objectref = objectref;\r
+    } //-- void setObjectref(java.lang.Object) \r
+\r
+    /**\r
+     * Sets the value of field 'type'. The field 'type' has the\r
+     * following description: Type of arbitrary data - TODO: decide\r
+     *  format - use (extended) MIME types ?\r
+     *  \r
+     * \r
+     * @param type the value of field 'type'.\r
+     */\r
+    public void setType(java.lang.String type)\r
+    {\r
+        this._type = type;\r
+    } //-- void setType(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return AppData\r
+     */\r
+    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Attachment) Unmarshaller.unmarshal(org.vamsas.objects.core.Attachment.class, reader);\r
+    } //-- org.vamsas.objects.core.AppData unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index d22591c..e2669da 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 AttachmentDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class AttachmentDescriptor extends org.vamsas.objects.core.AppDataDescriptor {
-
-
-      //--------------------------/
-     //- 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 AttachmentDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.AppDataDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "Attachment";
-        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
-        
-        //-- _compressed
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_compressed", "compressed", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Attachment target = (Attachment) object;
-                if(!target.hasCompressed())
-                    return null;
-                return (target.getCompressed() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Attachment target = (Attachment) object;
-                    // if null, use delete method for optional primitives 
-                    if (value == null) {
-                        target.deleteCompressed();
-                        return;
-                    }
-                    target.setCompressed( ((java.lang.Boolean)value).booleanValue());
-                }
-                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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _compressed
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            BooleanValidator typeValidator = new BooleanValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _type
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Attachment target = (Attachment) object;
-                return target.getType();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Attachment target = (Attachment) object;
-                    target.setType( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _type
-        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);
-        //-- _objectref
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_objectref", "objectref", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setReference(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Attachment target = (Attachment) object;
-                return target.getObjectref();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Attachment target = (Attachment) object;
-                    target.setObjectref( (java.lang.Object) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new java.lang.Object();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _objectref
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- _id
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);
-        this.identity = desc;
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Attachment target = (Attachment) object;
-                return target.getId();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Attachment target = (Attachment) object;
-                    target.setId( (java.lang.String) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new java.lang.String();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _id
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.AttachmentDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.Attachment.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class AttachmentDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class AttachmentDescriptor extends org.vamsas.objects.core.AppDataDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public AttachmentDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.AppDataDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "Attachment";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _compressed\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_compressed", "compressed", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Attachment target = (Attachment) object;\r
+                if(!target.hasCompressed())\r
+                    return null;\r
+                return (target.getCompressed() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Attachment target = (Attachment) object;\r
+                    // if null, use delete method for optional primitives \r
+                    if (value == null) {\r
+                        target.deleteCompressed();\r
+                        return;\r
+                    }\r
+                    target.setCompressed( ((java.lang.Boolean)value).booleanValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _compressed\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            BooleanValidator typeValidator = new BooleanValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _type\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Attachment target = (Attachment) object;\r
+                return target.getType();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Attachment target = (Attachment) object;\r
+                    target.setType( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _type\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _objectref\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_objectref", "objectref", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setReference(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Attachment target = (Attachment) object;\r
+                return target.getObjectref();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Attachment target = (Attachment) object;\r
+                    target.setObjectref( (java.lang.Object) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new java.lang.Object();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _objectref\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _id\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);\r
+        this.identity = desc;\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Attachment target = (Attachment) object;\r
+                return target.getId();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Attachment target = (Attachment) object;\r
+                    target.setId( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new java.lang.String();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _id\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.AttachmentDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Attachment.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 15fa948..3fdab82 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 Common.
- * 
- * @version $Revision$ $Date$
- */
-public class Common extends org.vamsas.objects.core.AppData 
-implements java.io.Serializable
-{
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Common() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.Common()
-
-
-      //-----------/
-     //- 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 Common) {
-        
-            Common temp = (Common)obj;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * 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) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return AppData
-     */
-    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Common) Unmarshaller.unmarshal(org.vamsas.objects.core.Common.class, reader);
-    } //-- org.vamsas.objects.core.AppData 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Common.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Common extends org.vamsas.objects.core.AppData \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Common() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Common()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Common) {\r
+        \r
+            Common temp = (Common)obj;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return AppData\r
+     */\r
+    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Common) Unmarshaller.unmarshal(org.vamsas.objects.core.Common.class, reader);\r
+    } //-- org.vamsas.objects.core.AppData unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 4fe6efa..c7bc7e0 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 CommonDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class CommonDescriptor extends org.vamsas.objects.core.AppDataDescriptor {
-
-
-      //--------------------------/
-     //- 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 CommonDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.AppDataDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "Common";
-    } //-- org.vamsas.objects.core.CommonDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.Common.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class CommonDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class CommonDescriptor extends org.vamsas.objects.core.AppDataDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public CommonDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.AppDataDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "Common";\r
+    } //-- org.vamsas.objects.core.CommonDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Common.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 0340435..8fcc98e 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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;
-
-/**
- * Discrete symbol - possibly graphically
- *  represented
- *  
- * 
- * @version $Revision$ $Date$
- */
-public class Glyph extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * internal content storage
-     */
-    private java.lang.String _content = "";
-
-    /**
-     * specifies the symbol
-     *  dictionary for this glyph -
-     *  eg utf8 (the default),
-     *  aasecstr_3 or
-     *  kd_hydrophobicity - the
-     *  content is not validated so
-     *  applications must ensure
-     *  they gracefully deal with
-     *  invalid entries here
-     *  
-     */
-    private java.lang.String _dict = "utf8";
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Glyph() 
-     {
-        super();
-        setContent("");
-        setDict("utf8");
-    } //-- org.vamsas.objects.core.Glyph()
-
-
-      //-----------/
-     //- 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 Glyph) {
-        
-            Glyph temp = (Glyph)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._dict != null) {
-                if (temp._dict == null) return false;
-                else if (!(this._dict.equals(temp._dict))) 
-                    return false;
-            }
-            else if (temp._dict != 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 'dict'. The field 'dict' has the
-     * following description: specifies the symbol
-     *  dictionary for this glyph -
-     *  eg utf8 (the default),
-     *  aasecstr_3 or
-     *  kd_hydrophobicity - the
-     *  content is not validated so
-     *  applications must ensure
-     *  they gracefully deal with
-     *  invalid entries here
-     *  
-     * 
-     * @return String
-     * @return the value of field 'dict'.
-     */
-    public java.lang.String getDict()
-    {
-        return this._dict;
-    } //-- java.lang.String getDict() 
-
-    /**
-     * 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 'dict'. The field 'dict' has the
-     * following description: specifies the symbol
-     *  dictionary for this glyph -
-     *  eg utf8 (the default),
-     *  aasecstr_3 or
-     *  kd_hydrophobicity - the
-     *  content is not validated so
-     *  applications must ensure
-     *  they gracefully deal with
-     *  invalid entries here
-     *  
-     * 
-     * @param dict the value of field 'dict'.
-     */
-    public void setDict(java.lang.String dict)
-    {
-        this._dict = dict;
-    } //-- void setDict(java.lang.String) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return Glyph
-     */
-    public static org.vamsas.objects.core.Glyph unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Glyph) Unmarshaller.unmarshal(org.vamsas.objects.core.Glyph.class, reader);
-    } //-- org.vamsas.objects.core.Glyph 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Discrete symbol - possibly graphically\r
+ *  represented\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Glyph extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * internal content storage\r
+     */\r
+    private java.lang.String _content = "";\r
+\r
+    /**\r
+     * specifies the symbol\r
+     *  dictionary for this glyph -\r
+     *  eg utf8 (the default),\r
+     *  aasecstr_3 or\r
+     *  kd_hydrophobicity - the\r
+     *  content is not validated so\r
+     *  applications must ensure\r
+     *  they gracefully deal with\r
+     *  invalid entries here\r
+     *  \r
+     */\r
+    private java.lang.String _dict = "utf8";\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Glyph() \r
+     {\r
+        super();\r
+        setContent("");\r
+        setDict("utf8");\r
+    } //-- org.vamsas.objects.core.Glyph()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Glyph) {\r
+        \r
+            Glyph temp = (Glyph)obj;\r
+            if (this._content != null) {\r
+                if (temp._content == null) return false;\r
+                else if (!(this._content.equals(temp._content))) \r
+                    return false;\r
+            }\r
+            else if (temp._content != null)\r
+                return false;\r
+            if (this._dict != null) {\r
+                if (temp._dict == null) return false;\r
+                else if (!(this._dict.equals(temp._dict))) \r
+                    return false;\r
+            }\r
+            else if (temp._dict != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'content'. The field 'content'\r
+     * has the following description: internal content storage\r
+     * \r
+     * @return String\r
+     * @return the value of field 'content'.\r
+     */\r
+    public java.lang.String getContent()\r
+    {\r
+        return this._content;\r
+    } //-- java.lang.String getContent() \r
+\r
+    /**\r
+     * Returns the value of field 'dict'. The field 'dict' has the\r
+     * following description: specifies the symbol\r
+     *  dictionary for this glyph -\r
+     *  eg utf8 (the default),\r
+     *  aasecstr_3 or\r
+     *  kd_hydrophobicity - the\r
+     *  content is not validated so\r
+     *  applications must ensure\r
+     *  they gracefully deal with\r
+     *  invalid entries here\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'dict'.\r
+     */\r
+    public java.lang.String getDict()\r
+    {\r
+        return this._dict;\r
+    } //-- java.lang.String getDict() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'content'. The field 'content' has\r
+     * the following description: internal content storage\r
+     * \r
+     * @param content the value of field 'content'.\r
+     */\r
+    public void setContent(java.lang.String content)\r
+    {\r
+        this._content = content;\r
+    } //-- void setContent(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'dict'. The field 'dict' has the\r
+     * following description: specifies the symbol\r
+     *  dictionary for this glyph -\r
+     *  eg utf8 (the default),\r
+     *  aasecstr_3 or\r
+     *  kd_hydrophobicity - the\r
+     *  content is not validated so\r
+     *  applications must ensure\r
+     *  they gracefully deal with\r
+     *  invalid entries here\r
+     *  \r
+     * \r
+     * @param dict the value of field 'dict'.\r
+     */\r
+    public void setDict(java.lang.String dict)\r
+    {\r
+        this._dict = dict;\r
+    } //-- void setDict(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Glyph\r
+     */\r
+    public static org.vamsas.objects.core.Glyph unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Glyph) Unmarshaller.unmarshal(org.vamsas.objects.core.Glyph.class, reader);\r
+    } //-- org.vamsas.objects.core.Glyph unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 9ee3c8c..e1d6966 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 GlyphDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class GlyphDescriptor 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 GlyphDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "glyph";
-        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
-        org.exolab.castor.mapping.FieldHandler             handler        = null;
-        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
-        //-- _content
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Glyph target = (Glyph) object;
-                return target.getContent();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Glyph target = (Glyph) object;
-                    target.setContent( (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);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _content
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize attribute descriptors
-        
-        //-- _dict
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dict", "dict", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Glyph target = (Glyph) object;
-                return target.getDict();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Glyph target = (Glyph) object;
-                    target.setDict( (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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _dict
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.GlyphDescriptor()
-
-
-      //-----------/
-     //- 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.Glyph.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class GlyphDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class GlyphDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public GlyphDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "glyph";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- _content\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Glyph target = (Glyph) object;\r
+                return target.getContent();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Glyph target = (Glyph) object;\r
+                    target.setContent( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _content\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _dict\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dict", "dict", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Glyph target = (Glyph) object;\r
+                return target.getDict();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Glyph target = (Glyph) object;\r
+                    target.setDict( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _dict\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.GlyphDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Glyph.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 9b737dd..e60a564 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Input.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Input extends org.vamsas.objects.core.RangeType \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field _name\r
+     */\r
+    private java.lang.String _name;\r
+\r
+    /**\r
+     * Reference Frame for rangeType\r
+     *  specfication\r
+     *  \r
+     */\r
+    private java.lang.Object _objRef;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Input() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Input()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Input) {\r
+        \r
+            Input temp = (Input)obj;\r
+            if (this._name != null) {\r
+                if (temp._name == null) return false;\r
+                else if (!(this._name.equals(temp._name))) \r
+                    return false;\r
+            }\r
+            else if (temp._name != null)\r
+                return false;\r
+            if (this._objRef != null) {\r
+                if (temp._objRef == null) return false;\r
+                else if (!(this._objRef.equals(temp._objRef))) \r
+                    return false;\r
+            }\r
+            else if (temp._objRef != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'name'.\r
+     * \r
+     * @return String\r
+     * @return the value of field 'name'.\r
+     */\r
+    public java.lang.String getName()\r
+    {\r
+        return this._name;\r
+    } //-- java.lang.String getName() \r
+\r
+    /**\r
+     * Returns the value of field 'objRef'. The field 'objRef' has\r
+     * the following description: Reference Frame for rangeType\r
+     *  specfication\r
+     *  \r
+     * \r
+     * @return Object\r
+     * @return the value of field 'objRef'.\r
+     */\r
+    public java.lang.Object getObjRef()\r
+    {\r
+        return this._objRef;\r
+    } //-- java.lang.Object getObjRef() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'name'.\r
+     * \r
+     * @param name the value of field 'name'.\r
+     */\r
+    public void setName(java.lang.String name)\r
+    {\r
+        this._name = name;\r
+    } //-- void setName(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'objRef'. The field 'objRef' has the\r
+     * following description: Reference Frame for rangeType\r
+     *  specfication\r
+     *  \r
+     * \r
+     * @param objRef the value of field 'objRef'.\r
+     */\r
+    public void setObjRef(java.lang.Object objRef)\r
+    {\r
+        this._objRef = objRef;\r
+    } //-- void setObjRef(java.lang.Object) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return RangeType\r
+     */\r
+    public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Input) Unmarshaller.unmarshal(org.vamsas.objects.core.Input.class, reader);\r
+    } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index e4d1130..56cc4b5 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 InputDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class InputDescriptor extends org.vamsas.objects.core.RangeTypeDescriptor {
-
-
-      //--------------------------/
-     //- 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 InputDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeTypeDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "input";
-        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
-        
-        //-- _name
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Input target = (Input) object;
-                return target.getName();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Input target = (Input) object;
-                    target.setName( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _name
-        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);
-        //-- _objRef
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_objRef", "objRef", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setReference(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Input target = (Input) object;
-                return target.getObjRef();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Input target = (Input) object;
-                    target.setObjRef( (java.lang.Object) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new java.lang.Object();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _objRef
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.InputDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.Input.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class InputDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class InputDescriptor extends org.vamsas.objects.core.RangeTypeDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public InputDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeTypeDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "input";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _name\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Input target = (Input) object;\r
+                return target.getName();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Input target = (Input) object;\r
+                    target.setName( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _name\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _objRef\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_objRef", "objRef", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setReference(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Input target = (Input) object;\r
+                return target.getObjRef();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Input target = (Input) object;\r
+                    target.setObjRef( (java.lang.Object) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new java.lang.Object();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _objRef\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.InputDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Input.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 56193ef..037d035 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 Instance.
- * 
- * @version $Revision$ $Date$
- */
-public class Instance extends org.vamsas.objects.core.AppData 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Field _urn
-     */
-    private java.lang.String _urn;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Instance() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.Instance()
-
-
-      //-----------/
-     //- 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 Instance) {
-        
-            Instance temp = (Instance)obj;
-            if (this._urn != null) {
-                if (temp._urn == null) return false;
-                else if (!(this._urn.equals(temp._urn))) 
-                    return false;
-            }
-            else if (temp._urn != null)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'urn'.
-     * 
-     * @return String
-     * @return the value of field 'urn'.
-     */
-    public java.lang.String getUrn()
-    {
-        return this._urn;
-    } //-- java.lang.String getUrn() 
-
-    /**
-     * 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 'urn'.
-     * 
-     * @param urn the value of field 'urn'.
-     */
-    public void setUrn(java.lang.String urn)
-    {
-        this._urn = urn;
-    } //-- void setUrn(java.lang.String) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return AppData
-     */
-    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Instance) Unmarshaller.unmarshal(org.vamsas.objects.core.Instance.class, reader);
-    } //-- org.vamsas.objects.core.AppData 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Instance.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Instance extends org.vamsas.objects.core.AppData \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field _urn\r
+     */\r
+    private java.lang.String _urn;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Instance() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Instance()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Instance) {\r
+        \r
+            Instance temp = (Instance)obj;\r
+            if (this._urn != null) {\r
+                if (temp._urn == null) return false;\r
+                else if (!(this._urn.equals(temp._urn))) \r
+                    return false;\r
+            }\r
+            else if (temp._urn != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'urn'.\r
+     * \r
+     * @return String\r
+     * @return the value of field 'urn'.\r
+     */\r
+    public java.lang.String getUrn()\r
+    {\r
+        return this._urn;\r
+    } //-- java.lang.String getUrn() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'urn'.\r
+     * \r
+     * @param urn the value of field 'urn'.\r
+     */\r
+    public void setUrn(java.lang.String urn)\r
+    {\r
+        this._urn = urn;\r
+    } //-- void setUrn(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return AppData\r
+     */\r
+    public static org.vamsas.objects.core.AppData unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Instance) Unmarshaller.unmarshal(org.vamsas.objects.core.Instance.class, reader);\r
+    } //-- org.vamsas.objects.core.AppData unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index ad7297d..0fdec55 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 InstanceDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class InstanceDescriptor extends org.vamsas.objects.core.AppDataDescriptor {
-
-
-      //--------------------------/
-     //- 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 InstanceDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.AppDataDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "Instance";
-        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
-        
-        //-- _urn
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_urn", "urn", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Instance target = (Instance) object;
-                return target.getUrn();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Instance target = (Instance) object;
-                    target.setUrn( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _urn
-        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);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.InstanceDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.Instance.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class InstanceDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class InstanceDescriptor extends org.vamsas.objects.core.AppDataDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public InstanceDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.AppDataDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "Instance";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _urn\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_urn", "urn", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Instance target = (Instance) object;\r
+                return target.getUrn();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Instance target = (Instance) object;\r
+                    target.setUrn( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _urn\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.InstanceDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Instance.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 9d798ee..1330cff 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 Link.
- * 
- * @version $Revision$ $Date$
- */
-public class Link extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * internal content storage
-     */
-    private java.lang.String _content = "";
-
-    /**
-     * The URI
-     */
-    private java.lang.String _href;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Link() 
-     {
-        super();
-        setContent("");
-    } //-- org.vamsas.objects.core.Link()
-
-
-      //-----------/
-     //- 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 Link) {
-        
-            Link temp = (Link)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._href != null) {
-                if (temp._href == null) return false;
-                else if (!(this._href.equals(temp._href))) 
-                    return false;
-            }
-            else if (temp._href != 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 'href'. The field 'href' has the
-     * following description: The URI
-     * 
-     * @return String
-     * @return the value of field 'href'.
-     */
-    public java.lang.String getHref()
-    {
-        return this._href;
-    } //-- java.lang.String getHref() 
-
-    /**
-     * 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 'href'. The field 'href' has the
-     * following description: The URI
-     * 
-     * @param href the value of field 'href'.
-     */
-    public void setHref(java.lang.String href)
-    {
-        this._href = href;
-    } //-- void setHref(java.lang.String) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return Link
-     */
-    public static org.vamsas.objects.core.Link unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Link) Unmarshaller.unmarshal(org.vamsas.objects.core.Link.class, reader);
-    } //-- org.vamsas.objects.core.Link 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Link.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Link extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * internal content storage\r
+     */\r
+    private java.lang.String _content = "";\r
+\r
+    /**\r
+     * The URI\r
+     */\r
+    private java.lang.String _href;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Link() \r
+     {\r
+        super();\r
+        setContent("");\r
+    } //-- org.vamsas.objects.core.Link()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Link) {\r
+        \r
+            Link temp = (Link)obj;\r
+            if (this._content != null) {\r
+                if (temp._content == null) return false;\r
+                else if (!(this._content.equals(temp._content))) \r
+                    return false;\r
+            }\r
+            else if (temp._content != null)\r
+                return false;\r
+            if (this._href != null) {\r
+                if (temp._href == null) return false;\r
+                else if (!(this._href.equals(temp._href))) \r
+                    return false;\r
+            }\r
+            else if (temp._href != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'content'. The field 'content'\r
+     * has the following description: internal content storage\r
+     * \r
+     * @return String\r
+     * @return the value of field 'content'.\r
+     */\r
+    public java.lang.String getContent()\r
+    {\r
+        return this._content;\r
+    } //-- java.lang.String getContent() \r
+\r
+    /**\r
+     * Returns the value of field 'href'. The field 'href' has the\r
+     * following description: The URI\r
+     * \r
+     * @return String\r
+     * @return the value of field 'href'.\r
+     */\r
+    public java.lang.String getHref()\r
+    {\r
+        return this._href;\r
+    } //-- java.lang.String getHref() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'content'. The field 'content' has\r
+     * the following description: internal content storage\r
+     * \r
+     * @param content the value of field 'content'.\r
+     */\r
+    public void setContent(java.lang.String content)\r
+    {\r
+        this._content = content;\r
+    } //-- void setContent(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'href'. The field 'href' has the\r
+     * following description: The URI\r
+     * \r
+     * @param href the value of field 'href'.\r
+     */\r
+    public void setHref(java.lang.String href)\r
+    {\r
+        this._href = href;\r
+    } //-- void setHref(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Link\r
+     */\r
+    public static org.vamsas.objects.core.Link unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Link) Unmarshaller.unmarshal(org.vamsas.objects.core.Link.class, reader);\r
+    } //-- org.vamsas.objects.core.Link unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index a778c21..659278d 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 LinkDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class LinkDescriptor 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 LinkDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "link";
-        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
-        org.exolab.castor.mapping.FieldHandler             handler        = null;
-        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
-        //-- _content
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Link target = (Link) object;
-                return target.getContent();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Link target = (Link) object;
-                    target.setContent( (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);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _content
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize attribute descriptors
-        
-        //-- _href
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_href", "href", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Link target = (Link) object;
-                return target.getHref();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Link target = (Link) object;
-                    target.setHref( (java.lang.String) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new java.lang.String();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _href
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.LinkDescriptor()
-
-
-      //-----------/
-     //- 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.Link.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class LinkDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class LinkDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public LinkDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "link";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- _content\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Link target = (Link) object;\r
+                return target.getContent();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Link target = (Link) object;\r
+                    target.setContent( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _content\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _href\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_href", "href", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Link target = (Link) object;\r
+                return target.getHref();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Link target = (Link) object;\r
+                    target.setHref( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new java.lang.String();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _href\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.LinkDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Link.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index d0722a8..1a7d84e 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 Map.
- * 
- * @version $Revision$ $Date$
- */
-public class Map extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Offset
-     *  to
-     *  first
-     *  position
-     *  in
-     *  dataset
-     *  sequence
-     *  record
-     *  that
-     *  this
-     *  database
-     *  entry
-     *  maps
-     *  to
-     *  
-     */
-    private int _from = 0;
-
-    /**
-     * keeps track of state for field: _from
-     */
-    private boolean _has_from;
-
-    /**
-     * Offset
-     *  to
-     *  last
-     *  position
-     *  in
-     *  dataset
-     *  sequence
-     *  record
-     *  that
-     *  this
-     *  database
-     *  entry
-     *  maps
-     *  to
-     *  
-     */
-    private int _to = 0;
-
-    /**
-     * keeps track of state for field: _to
-     */
-    private boolean _has_to;
-
-    /**
-     * Offset
-     *  to first
-     *  last
-     *  position
-     *  in
-     *  database
-     *  entry
-     *  that
-     *  first
-     *  (or
-     *  offset)
-     *  position
-     *  in
-     *  sequence
-     *  maps to
-     *  
-     */
-    private int _start;
-
-    /**
-     * keeps track of state for field: _start
-     */
-    private boolean _has_start;
-
-    /**
-     * Offset
-     *  to last
-     *  position
-     *  in
-     *  database
-     *  entry
-     *  that
-     *  last
-     *  (offset)
-     *  position
-     *  in
-     *  sequence
-     *  maps to
-     *  
-     */
-    private int _end;
-
-    /**
-     * keeps track of state for field: _end
-     */
-    private boolean _has_end;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Map() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.Map()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteEnd
-     * 
-     */
-    public void deleteEnd()
-    {
-        this._has_end= false;
-    } //-- void deleteEnd() 
-
-    /**
-     * Method deleteFrom
-     * 
-     */
-    public void deleteFrom()
-    {
-        this._has_from= false;
-    } //-- void deleteFrom() 
-
-    /**
-     * Method deleteStart
-     * 
-     */
-    public void deleteStart()
-    {
-        this._has_start= false;
-    } //-- void deleteStart() 
-
-    /**
-     * Method deleteTo
-     * 
-     */
-    public void deleteTo()
-    {
-        this._has_to= false;
-    } //-- void deleteTo() 
-
-    /**
-     * 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 Map) {
-        
-            Map temp = (Map)obj;
-            if (this._from != temp._from)
-                return false;
-            if (this._has_from != temp._has_from)
-                return false;
-            if (this._to != temp._to)
-                return false;
-            if (this._has_to != temp._has_to)
-                return false;
-            if (this._start != temp._start)
-                return false;
-            if (this._has_start != temp._has_start)
-                return false;
-            if (this._end != temp._end)
-                return false;
-            if (this._has_end != temp._has_end)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'end'. The field 'end' has the
-     * following description: Offset
-     *  to last
-     *  position
-     *  in
-     *  database
-     *  entry
-     *  that
-     *  last
-     *  (offset)
-     *  position
-     *  in
-     *  sequence
-     *  maps to
-     *  
-     * 
-     * @return int
-     * @return the value of field 'end'.
-     */
-    public int getEnd()
-    {
-        return this._end;
-    } //-- int getEnd() 
-
-    /**
-     * Returns the value of field 'from'. The field 'from' has the
-     * following description: Offset
-     *  to
-     *  first
-     *  position
-     *  in
-     *  dataset
-     *  sequence
-     *  record
-     *  that
-     *  this
-     *  database
-     *  entry
-     *  maps
-     *  to
-     *  
-     * 
-     * @return int
-     * @return the value of field 'from'.
-     */
-    public int getFrom()
-    {
-        return this._from;
-    } //-- int getFrom() 
-
-    /**
-     * Returns the value of field 'start'. The field 'start' has
-     * the following description: Offset
-     *  to first
-     *  last
-     *  position
-     *  in
-     *  database
-     *  entry
-     *  that
-     *  first
-     *  (or
-     *  offset)
-     *  position
-     *  in
-     *  sequence
-     *  maps to
-     *  
-     * 
-     * @return int
-     * @return the value of field 'start'.
-     */
-    public int getStart()
-    {
-        return this._start;
-    } //-- int getStart() 
-
-    /**
-     * Returns the value of field 'to'. The field 'to' has the
-     * following description: Offset
-     *  to
-     *  last
-     *  position
-     *  in
-     *  dataset
-     *  sequence
-     *  record
-     *  that
-     *  this
-     *  database
-     *  entry
-     *  maps
-     *  to
-     *  
-     * 
-     * @return int
-     * @return the value of field 'to'.
-     */
-    public int getTo()
-    {
-        return this._to;
-    } //-- int getTo() 
-
-    /**
-     * Method hasEnd
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasEnd()
-    {
-        return this._has_end;
-    } //-- boolean hasEnd() 
-
-    /**
-     * Method hasFrom
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasFrom()
-    {
-        return this._has_from;
-    } //-- boolean hasFrom() 
-
-    /**
-     * Method hasStart
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasStart()
-    {
-        return this._has_start;
-    } //-- boolean hasStart() 
-
-    /**
-     * Method hasTo
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasTo()
-    {
-        return this._has_to;
-    } //-- boolean hasTo() 
-
-    /**
-     * 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 'end'. The field 'end' has the
-     * following description: Offset
-     *  to last
-     *  position
-     *  in
-     *  database
-     *  entry
-     *  that
-     *  last
-     *  (offset)
-     *  position
-     *  in
-     *  sequence
-     *  maps to
-     *  
-     * 
-     * @param end the value of field 'end'.
-     */
-    public void setEnd(int end)
-    {
-        this._end = end;
-        this._has_end = true;
-    } //-- void setEnd(int) 
-
-    /**
-     * Sets the value of field 'from'. The field 'from' has the
-     * following description: Offset
-     *  to
-     *  first
-     *  position
-     *  in
-     *  dataset
-     *  sequence
-     *  record
-     *  that
-     *  this
-     *  database
-     *  entry
-     *  maps
-     *  to
-     *  
-     * 
-     * @param from the value of field 'from'.
-     */
-    public void setFrom(int from)
-    {
-        this._from = from;
-        this._has_from = true;
-    } //-- void setFrom(int) 
-
-    /**
-     * Sets the value of field 'start'. The field 'start' has the
-     * following description: Offset
-     *  to first
-     *  last
-     *  position
-     *  in
-     *  database
-     *  entry
-     *  that
-     *  first
-     *  (or
-     *  offset)
-     *  position
-     *  in
-     *  sequence
-     *  maps to
-     *  
-     * 
-     * @param start the value of field 'start'.
-     */
-    public void setStart(int start)
-    {
-        this._start = start;
-        this._has_start = true;
-    } //-- void setStart(int) 
-
-    /**
-     * Sets the value of field 'to'. The field 'to' has the
-     * following description: Offset
-     *  to
-     *  last
-     *  position
-     *  in
-     *  dataset
-     *  sequence
-     *  record
-     *  that
-     *  this
-     *  database
-     *  entry
-     *  maps
-     *  to
-     *  
-     * 
-     * @param to the value of field 'to'.
-     */
-    public void setTo(int to)
-    {
-        this._to = to;
-        this._has_to = true;
-    } //-- void setTo(int) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return Map
-     */
-    public static org.vamsas.objects.core.Map unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Map) Unmarshaller.unmarshal(org.vamsas.objects.core.Map.class, reader);
-    } //-- org.vamsas.objects.core.Map 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Map.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Map extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Offset\r
+     *  to\r
+     *  first\r
+     *  position\r
+     *  in\r
+     *  dataset\r
+     *  sequence\r
+     *  record\r
+     *  that\r
+     *  this\r
+     *  database\r
+     *  entry\r
+     *  maps\r
+     *  to\r
+     *  \r
+     */\r
+    private int _from = 0;\r
+\r
+    /**\r
+     * keeps track of state for field: _from\r
+     */\r
+    private boolean _has_from;\r
+\r
+    /**\r
+     * Offset\r
+     *  to\r
+     *  last\r
+     *  position\r
+     *  in\r
+     *  dataset\r
+     *  sequence\r
+     *  record\r
+     *  that\r
+     *  this\r
+     *  database\r
+     *  entry\r
+     *  maps\r
+     *  to\r
+     *  \r
+     */\r
+    private int _to = 0;\r
+\r
+    /**\r
+     * keeps track of state for field: _to\r
+     */\r
+    private boolean _has_to;\r
+\r
+    /**\r
+     * Offset\r
+     *  to first\r
+     *  last\r
+     *  position\r
+     *  in\r
+     *  database\r
+     *  entry\r
+     *  that\r
+     *  first\r
+     *  (or\r
+     *  offset)\r
+     *  position\r
+     *  in\r
+     *  sequence\r
+     *  maps to\r
+     *  \r
+     */\r
+    private int _start;\r
+\r
+    /**\r
+     * keeps track of state for field: _start\r
+     */\r
+    private boolean _has_start;\r
+\r
+    /**\r
+     * Offset\r
+     *  to last\r
+     *  position\r
+     *  in\r
+     *  database\r
+     *  entry\r
+     *  that\r
+     *  last\r
+     *  (offset)\r
+     *  position\r
+     *  in\r
+     *  sequence\r
+     *  maps to\r
+     *  \r
+     */\r
+    private int _end;\r
+\r
+    /**\r
+     * keeps track of state for field: _end\r
+     */\r
+    private boolean _has_end;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Map() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Map()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteEnd\r
+     * \r
+     */\r
+    public void deleteEnd()\r
+    {\r
+        this._has_end= false;\r
+    } //-- void deleteEnd() \r
+\r
+    /**\r
+     * Method deleteFrom\r
+     * \r
+     */\r
+    public void deleteFrom()\r
+    {\r
+        this._has_from= false;\r
+    } //-- void deleteFrom() \r
+\r
+    /**\r
+     * Method deleteStart\r
+     * \r
+     */\r
+    public void deleteStart()\r
+    {\r
+        this._has_start= false;\r
+    } //-- void deleteStart() \r
+\r
+    /**\r
+     * Method deleteTo\r
+     * \r
+     */\r
+    public void deleteTo()\r
+    {\r
+        this._has_to= false;\r
+    } //-- void deleteTo() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Map) {\r
+        \r
+            Map temp = (Map)obj;\r
+            if (this._from != temp._from)\r
+                return false;\r
+            if (this._has_from != temp._has_from)\r
+                return false;\r
+            if (this._to != temp._to)\r
+                return false;\r
+            if (this._has_to != temp._has_to)\r
+                return false;\r
+            if (this._start != temp._start)\r
+                return false;\r
+            if (this._has_start != temp._has_start)\r
+                return false;\r
+            if (this._end != temp._end)\r
+                return false;\r
+            if (this._has_end != temp._has_end)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'end'. The field 'end' has the\r
+     * following description: Offset\r
+     *  to last\r
+     *  position\r
+     *  in\r
+     *  database\r
+     *  entry\r
+     *  that\r
+     *  last\r
+     *  (offset)\r
+     *  position\r
+     *  in\r
+     *  sequence\r
+     *  maps to\r
+     *  \r
+     * \r
+     * @return int\r
+     * @return the value of field 'end'.\r
+     */\r
+    public int getEnd()\r
+    {\r
+        return this._end;\r
+    } //-- int getEnd() \r
+\r
+    /**\r
+     * Returns the value of field 'from'. The field 'from' has the\r
+     * following description: Offset\r
+     *  to\r
+     *  first\r
+     *  position\r
+     *  in\r
+     *  dataset\r
+     *  sequence\r
+     *  record\r
+     *  that\r
+     *  this\r
+     *  database\r
+     *  entry\r
+     *  maps\r
+     *  to\r
+     *  \r
+     * \r
+     * @return int\r
+     * @return the value of field 'from'.\r
+     */\r
+    public int getFrom()\r
+    {\r
+        return this._from;\r
+    } //-- int getFrom() \r
+\r
+    /**\r
+     * Returns the value of field 'start'. The field 'start' has\r
+     * the following description: Offset\r
+     *  to first\r
+     *  last\r
+     *  position\r
+     *  in\r
+     *  database\r
+     *  entry\r
+     *  that\r
+     *  first\r
+     *  (or\r
+     *  offset)\r
+     *  position\r
+     *  in\r
+     *  sequence\r
+     *  maps to\r
+     *  \r
+     * \r
+     * @return int\r
+     * @return the value of field 'start'.\r
+     */\r
+    public int getStart()\r
+    {\r
+        return this._start;\r
+    } //-- int getStart() \r
+\r
+    /**\r
+     * Returns the value of field 'to'. The field 'to' has the\r
+     * following description: Offset\r
+     *  to\r
+     *  last\r
+     *  position\r
+     *  in\r
+     *  dataset\r
+     *  sequence\r
+     *  record\r
+     *  that\r
+     *  this\r
+     *  database\r
+     *  entry\r
+     *  maps\r
+     *  to\r
+     *  \r
+     * \r
+     * @return int\r
+     * @return the value of field 'to'.\r
+     */\r
+    public int getTo()\r
+    {\r
+        return this._to;\r
+    } //-- int getTo() \r
+\r
+    /**\r
+     * Method hasEnd\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasEnd()\r
+    {\r
+        return this._has_end;\r
+    } //-- boolean hasEnd() \r
+\r
+    /**\r
+     * Method hasFrom\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasFrom()\r
+    {\r
+        return this._has_from;\r
+    } //-- boolean hasFrom() \r
+\r
+    /**\r
+     * Method hasStart\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasStart()\r
+    {\r
+        return this._has_start;\r
+    } //-- boolean hasStart() \r
+\r
+    /**\r
+     * Method hasTo\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasTo()\r
+    {\r
+        return this._has_to;\r
+    } //-- boolean hasTo() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'end'. The field 'end' has the\r
+     * following description: Offset\r
+     *  to last\r
+     *  position\r
+     *  in\r
+     *  database\r
+     *  entry\r
+     *  that\r
+     *  last\r
+     *  (offset)\r
+     *  position\r
+     *  in\r
+     *  sequence\r
+     *  maps to\r
+     *  \r
+     * \r
+     * @param end the value of field 'end'.\r
+     */\r
+    public void setEnd(int end)\r
+    {\r
+        this._end = end;\r
+        this._has_end = true;\r
+    } //-- void setEnd(int) \r
+\r
+    /**\r
+     * Sets the value of field 'from'. The field 'from' has the\r
+     * following description: Offset\r
+     *  to\r
+     *  first\r
+     *  position\r
+     *  in\r
+     *  dataset\r
+     *  sequence\r
+     *  record\r
+     *  that\r
+     *  this\r
+     *  database\r
+     *  entry\r
+     *  maps\r
+     *  to\r
+     *  \r
+     * \r
+     * @param from the value of field 'from'.\r
+     */\r
+    public void setFrom(int from)\r
+    {\r
+        this._from = from;\r
+        this._has_from = true;\r
+    } //-- void setFrom(int) \r
+\r
+    /**\r
+     * Sets the value of field 'start'. The field 'start' has the\r
+     * following description: Offset\r
+     *  to first\r
+     *  last\r
+     *  position\r
+     *  in\r
+     *  database\r
+     *  entry\r
+     *  that\r
+     *  first\r
+     *  (or\r
+     *  offset)\r
+     *  position\r
+     *  in\r
+     *  sequence\r
+     *  maps to\r
+     *  \r
+     * \r
+     * @param start the value of field 'start'.\r
+     */\r
+    public void setStart(int start)\r
+    {\r
+        this._start = start;\r
+        this._has_start = true;\r
+    } //-- void setStart(int) \r
+\r
+    /**\r
+     * Sets the value of field 'to'. The field 'to' has the\r
+     * following description: Offset\r
+     *  to\r
+     *  last\r
+     *  position\r
+     *  in\r
+     *  dataset\r
+     *  sequence\r
+     *  record\r
+     *  that\r
+     *  this\r
+     *  database\r
+     *  entry\r
+     *  maps\r
+     *  to\r
+     *  \r
+     * \r
+     * @param to the value of field 'to'.\r
+     */\r
+    public void setTo(int to)\r
+    {\r
+        this._to = to;\r
+        this._has_to = true;\r
+    } //-- void setTo(int) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Map\r
+     */\r
+    public static org.vamsas.objects.core.Map unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Map) Unmarshaller.unmarshal(org.vamsas.objects.core.Map.class, reader);\r
+    } //-- org.vamsas.objects.core.Map unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index d8e2980..1f44ba4 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 MapDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class MapDescriptor 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 MapDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "map";
-        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
-        
-        //-- _from
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_from", "from", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Map target = (Map) object;
-                if(!target.hasFrom())
-                    return null;
-                return new java.lang.Integer(target.getFrom());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Map target = (Map) object;
-                    // if null, use delete method for optional primitives 
-                    if (value == null) {
-                        target.deleteFrom();
-                        return;
-                    }
-                    target.setFrom( ((java.lang.Integer)value).intValue());
-                }
-                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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _from
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            IntegerValidator typeValidator = new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _to
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_to", "to", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Map target = (Map) object;
-                if(!target.hasTo())
-                    return null;
-                return new java.lang.Integer(target.getTo());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Map target = (Map) object;
-                    // if null, use delete method for optional primitives 
-                    if (value == null) {
-                        target.deleteTo();
-                        return;
-                    }
-                    target.setTo( ((java.lang.Integer)value).intValue());
-                }
-                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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _to
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            IntegerValidator typeValidator = new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _start
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_start", "start", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Map target = (Map) object;
-                if(!target.hasStart())
-                    return null;
-                return new java.lang.Integer(target.getStart());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Map target = (Map) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setStart( ((java.lang.Integer)value).intValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _start
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            IntegerValidator typeValidator = new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _end
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Map target = (Map) object;
-                if(!target.hasEnd())
-                    return null;
-                return new java.lang.Integer(target.getEnd());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Map target = (Map) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setEnd( ((java.lang.Integer)value).intValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _end
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            IntegerValidator typeValidator = new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.MapDescriptor()
-
-
-      //-----------/
-     //- 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.Map.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class MapDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class MapDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public MapDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "map";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _from\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_from", "from", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Map target = (Map) object;\r
+                if(!target.hasFrom())\r
+                    return null;\r
+                return new java.lang.Integer(target.getFrom());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Map target = (Map) object;\r
+                    // if null, use delete method for optional primitives \r
+                    if (value == null) {\r
+                        target.deleteFrom();\r
+                        return;\r
+                    }\r
+                    target.setFrom( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _from\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            IntegerValidator typeValidator = new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _to\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_to", "to", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Map target = (Map) object;\r
+                if(!target.hasTo())\r
+                    return null;\r
+                return new java.lang.Integer(target.getTo());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Map target = (Map) object;\r
+                    // if null, use delete method for optional primitives \r
+                    if (value == null) {\r
+                        target.deleteTo();\r
+                        return;\r
+                    }\r
+                    target.setTo( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _to\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            IntegerValidator typeValidator = new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _start\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_start", "start", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Map target = (Map) object;\r
+                if(!target.hasStart())\r
+                    return null;\r
+                return new java.lang.Integer(target.getStart());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Map target = (Map) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setStart( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _start\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            IntegerValidator typeValidator = new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _end\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Map target = (Map) object;\r
+                if(!target.hasEnd())\r
+                    return null;\r
+                return new java.lang.Integer(target.getEnd());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Map target = (Map) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setEnd( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _end\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            IntegerValidator typeValidator = new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.MapDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Map.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 68ee98f..5e001db 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 Param.
- * 
- * @version $Revision$ $Date$
- */
-public class Param 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 Param() 
-     {
-        super();
-        setContent("");
-    } //-- org.vamsas.objects.core.Param()
-
-
-      //-----------/
-     //- 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 Param) {
-        
-            Param temp = (Param)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 Param
-     */
-    public static org.vamsas.objects.core.Param unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Param) Unmarshaller.unmarshal(org.vamsas.objects.core.Param.class, reader);
-    } //-- org.vamsas.objects.core.Param 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Param.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Param extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * internal content storage\r
+     */\r
+    private java.lang.String _content = "";\r
+\r
+    /**\r
+     * Field _name\r
+     */\r
+    private java.lang.String _name;\r
+\r
+    /**\r
+     * The type specifies how the property will\r
+     *  be parsed. Empty property strings are\r
+     *  allowed, and can be used to prototype\r
+     *  the input to a document. TODO: specify\r
+     *  allowed types\r
+     *  \r
+     */\r
+    private java.lang.String _type;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Param() \r
+     {\r
+        super();\r
+        setContent("");\r
+    } //-- org.vamsas.objects.core.Param()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Param) {\r
+        \r
+            Param temp = (Param)obj;\r
+            if (this._content != null) {\r
+                if (temp._content == null) return false;\r
+                else if (!(this._content.equals(temp._content))) \r
+                    return false;\r
+            }\r
+            else if (temp._content != null)\r
+                return false;\r
+            if (this._name != null) {\r
+                if (temp._name == null) return false;\r
+                else if (!(this._name.equals(temp._name))) \r
+                    return false;\r
+            }\r
+            else if (temp._name != null)\r
+                return false;\r
+            if (this._type != null) {\r
+                if (temp._type == null) return false;\r
+                else if (!(this._type.equals(temp._type))) \r
+                    return false;\r
+            }\r
+            else if (temp._type != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'content'. The field 'content'\r
+     * has the following description: internal content storage\r
+     * \r
+     * @return String\r
+     * @return the value of field 'content'.\r
+     */\r
+    public java.lang.String getContent()\r
+    {\r
+        return this._content;\r
+    } //-- java.lang.String getContent() \r
+\r
+    /**\r
+     * Returns the value of field 'name'.\r
+     * \r
+     * @return String\r
+     * @return the value of field 'name'.\r
+     */\r
+    public java.lang.String getName()\r
+    {\r
+        return this._name;\r
+    } //-- java.lang.String getName() \r
+\r
+    /**\r
+     * Returns the value of field 'type'. The field 'type' has the\r
+     * following description: The type specifies how the property\r
+     * will\r
+     *  be parsed. Empty property strings are\r
+     *  allowed, and can be used to prototype\r
+     *  the input to a document. TODO: specify\r
+     *  allowed types\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'type'.\r
+     */\r
+    public java.lang.String getType()\r
+    {\r
+        return this._type;\r
+    } //-- java.lang.String getType() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'content'. The field 'content' has\r
+     * the following description: internal content storage\r
+     * \r
+     * @param content the value of field 'content'.\r
+     */\r
+    public void setContent(java.lang.String content)\r
+    {\r
+        this._content = content;\r
+    } //-- void setContent(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'name'.\r
+     * \r
+     * @param name the value of field 'name'.\r
+     */\r
+    public void setName(java.lang.String name)\r
+    {\r
+        this._name = name;\r
+    } //-- void setName(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'type'. The field 'type' has the\r
+     * following description: The type specifies how the property\r
+     * will\r
+     *  be parsed. Empty property strings are\r
+     *  allowed, and can be used to prototype\r
+     *  the input to a document. TODO: specify\r
+     *  allowed types\r
+     *  \r
+     * \r
+     * @param type the value of field 'type'.\r
+     */\r
+    public void setType(java.lang.String type)\r
+    {\r
+        this._type = type;\r
+    } //-- void setType(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Param\r
+     */\r
+    public static org.vamsas.objects.core.Param unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Param) Unmarshaller.unmarshal(org.vamsas.objects.core.Param.class, reader);\r
+    } //-- org.vamsas.objects.core.Param unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 565f497..d049192 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 ParamDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class ParamDescriptor 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 ParamDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "param";
-        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
-        org.exolab.castor.mapping.FieldHandler             handler        = null;
-        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
-        //-- _content
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Param target = (Param) object;
-                return target.getContent();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Param target = (Param) object;
-                    target.setContent( (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);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _content
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize attribute descriptors
-        
-        //-- _name
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Param target = (Param) object;
-                return target.getName();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Param target = (Param) object;
-                    target.setName( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _name
-        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);
-        //-- _type
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Param target = (Param) object;
-                return target.getType();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Param target = (Param) object;
-                    target.setType( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _type
-        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);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.ParamDescriptor()
-
-
-      //-----------/
-     //- 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.Param.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class ParamDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class ParamDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public ParamDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "param";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- _content\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Param target = (Param) object;\r
+                return target.getContent();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Param target = (Param) object;\r
+                    target.setContent( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _content\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _name\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Param target = (Param) object;\r
+                return target.getName();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Param target = (Param) object;\r
+                    target.setName( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _name\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _type\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Param target = (Param) object;\r
+                return target.getType();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Param target = (Param) object;\r
+                    target.setType( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _type\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.ParamDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Param.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index a59146d..51a5410 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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;
-
-/**
- * a position within the associated object's
- *  coordinate system
- *  
- * 
- * @version $Revision$ $Date$
- */
-public class Pos extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Field _i
-     */
-    private int _i;
-
-    /**
-     * keeps track of state for field: _i
-     */
-    private boolean _has_i;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Pos() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.Pos()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteI
-     * 
-     */
-    public void deleteI()
-    {
-        this._has_i= false;
-    } //-- void deleteI() 
-
-    /**
-     * 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 Pos) {
-        
-            Pos temp = (Pos)obj;
-            if (this._i != temp._i)
-                return false;
-            if (this._has_i != temp._has_i)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'i'.
-     * 
-     * @return int
-     * @return the value of field 'i'.
-     */
-    public int getI()
-    {
-        return this._i;
-    } //-- int getI() 
-
-    /**
-     * Method hasI
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasI()
-    {
-        return this._has_i;
-    } //-- boolean hasI() 
-
-    /**
-     * 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 'i'.
-     * 
-     * @param i the value of field 'i'.
-     */
-    public void setI(int i)
-    {
-        this._i = i;
-        this._has_i = true;
-    } //-- void setI(int) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return Pos
-     */
-    public static org.vamsas.objects.core.Pos unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Pos) Unmarshaller.unmarshal(org.vamsas.objects.core.Pos.class, reader);
-    } //-- org.vamsas.objects.core.Pos 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * a position within the associated object's\r
+ *  coordinate system\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Pos extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field _i\r
+     */\r
+    private int _i;\r
+\r
+    /**\r
+     * keeps track of state for field: _i\r
+     */\r
+    private boolean _has_i;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Pos() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Pos()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteI\r
+     * \r
+     */\r
+    public void deleteI()\r
+    {\r
+        this._has_i= false;\r
+    } //-- void deleteI() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Pos) {\r
+        \r
+            Pos temp = (Pos)obj;\r
+            if (this._i != temp._i)\r
+                return false;\r
+            if (this._has_i != temp._has_i)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'i'.\r
+     * \r
+     * @return int\r
+     * @return the value of field 'i'.\r
+     */\r
+    public int getI()\r
+    {\r
+        return this._i;\r
+    } //-- int getI() \r
+\r
+    /**\r
+     * Method hasI\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasI()\r
+    {\r
+        return this._has_i;\r
+    } //-- boolean hasI() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'i'.\r
+     * \r
+     * @param i the value of field 'i'.\r
+     */\r
+    public void setI(int i)\r
+    {\r
+        this._i = i;\r
+        this._has_i = true;\r
+    } //-- void setI(int) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Pos\r
+     */\r
+    public static org.vamsas.objects.core.Pos unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Pos) Unmarshaller.unmarshal(org.vamsas.objects.core.Pos.class, reader);\r
+    } //-- org.vamsas.objects.core.Pos unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 273f1ee..fdfffc7 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 PosDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class PosDescriptor 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 PosDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "pos";
-        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
-        
-        //-- _i
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_i", "i", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Pos target = (Pos) object;
-                if(!target.hasI())
-                    return null;
-                return new java.lang.Integer(target.getI());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Pos target = (Pos) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setI( ((java.lang.Integer)value).intValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _i
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            IntegerValidator typeValidator= new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.PosDescriptor()
-
-
-      //-----------/
-     //- 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.Pos.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class PosDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class PosDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public PosDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "pos";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _i\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_i", "i", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Pos target = (Pos) object;\r
+                if(!target.hasI())\r
+                    return null;\r
+                return new java.lang.Integer(target.getI());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Pos target = (Pos) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setI( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _i\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            IntegerValidator typeValidator= new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.PosDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Pos.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 1b52866..261a52b 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Class Property.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Property extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * internal content storage\r
+     */\r
+    private java.lang.String _content = "";\r
+\r
+    /**\r
+     * Field _name\r
+     */\r
+    private java.lang.String _name;\r
+\r
+    /**\r
+     * The type specifies how the property will\r
+     *  be parsed. Empty property strings are\r
+     *  allowed, and can be used to prototype\r
+     *  the input to a document. TODO: specify\r
+     *  allowed types\r
+     *  \r
+     */\r
+    private java.lang.String _type;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Property() \r
+     {\r
+        super();\r
+        setContent("");\r
+    } //-- org.vamsas.objects.core.Property()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Property) {\r
+        \r
+            Property temp = (Property)obj;\r
+            if (this._content != null) {\r
+                if (temp._content == null) return false;\r
+                else if (!(this._content.equals(temp._content))) \r
+                    return false;\r
+            }\r
+            else if (temp._content != null)\r
+                return false;\r
+            if (this._name != null) {\r
+                if (temp._name == null) return false;\r
+                else if (!(this._name.equals(temp._name))) \r
+                    return false;\r
+            }\r
+            else if (temp._name != null)\r
+                return false;\r
+            if (this._type != null) {\r
+                if (temp._type == null) return false;\r
+                else if (!(this._type.equals(temp._type))) \r
+                    return false;\r
+            }\r
+            else if (temp._type != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'content'. The field 'content'\r
+     * has the following description: internal content storage\r
+     * \r
+     * @return String\r
+     * @return the value of field 'content'.\r
+     */\r
+    public java.lang.String getContent()\r
+    {\r
+        return this._content;\r
+    } //-- java.lang.String getContent() \r
+\r
+    /**\r
+     * Returns the value of field 'name'.\r
+     * \r
+     * @return String\r
+     * @return the value of field 'name'.\r
+     */\r
+    public java.lang.String getName()\r
+    {\r
+        return this._name;\r
+    } //-- java.lang.String getName() \r
+\r
+    /**\r
+     * Returns the value of field 'type'. The field 'type' has the\r
+     * following description: The type specifies how the property\r
+     * will\r
+     *  be parsed. Empty property strings are\r
+     *  allowed, and can be used to prototype\r
+     *  the input to a document. TODO: specify\r
+     *  allowed types\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'type'.\r
+     */\r
+    public java.lang.String getType()\r
+    {\r
+        return this._type;\r
+    } //-- java.lang.String getType() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'content'. The field 'content' has\r
+     * the following description: internal content storage\r
+     * \r
+     * @param content the value of field 'content'.\r
+     */\r
+    public void setContent(java.lang.String content)\r
+    {\r
+        this._content = content;\r
+    } //-- void setContent(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'name'.\r
+     * \r
+     * @param name the value of field 'name'.\r
+     */\r
+    public void setName(java.lang.String name)\r
+    {\r
+        this._name = name;\r
+    } //-- void setName(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'type'. The field 'type' has the\r
+     * following description: The type specifies how the property\r
+     * will\r
+     *  be parsed. Empty property strings are\r
+     *  allowed, and can be used to prototype\r
+     *  the input to a document. TODO: specify\r
+     *  allowed types\r
+     *  \r
+     * \r
+     * @param type the value of field 'type'.\r
+     */\r
+    public void setType(java.lang.String type)\r
+    {\r
+        this._type = type;\r
+    } //-- void setType(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Property\r
+     */\r
+    public static org.vamsas.objects.core.Property unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Property) Unmarshaller.unmarshal(org.vamsas.objects.core.Property.class, reader);\r
+    } //-- org.vamsas.objects.core.Property unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 6d4f84c..bb80022 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 PropertyDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class PropertyDescriptor 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 PropertyDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "property";
-        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
-        org.exolab.castor.mapping.FieldHandler             handler        = null;
-        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
-        //-- _content
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Property target = (Property) object;
-                return target.getContent();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Property target = (Property) object;
-                    target.setContent( (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);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _content
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize attribute descriptors
-        
-        //-- _name
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Property target = (Property) object;
-                return target.getName();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Property target = (Property) object;
-                    target.setName( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _name
-        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);
-        //-- _type
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Property target = (Property) object;
-                return target.getType();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Property target = (Property) object;
-                    target.setType( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _type
-        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);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.PropertyDescriptor()
-
-
-      //-----------/
-     //- 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.Property.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class PropertyDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class PropertyDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public PropertyDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "property";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- _content\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Property target = (Property) object;\r
+                return target.getContent();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Property target = (Property) object;\r
+                    target.setContent( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _content\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _name\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Property target = (Property) object;\r
+                return target.getName();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Property target = (Property) object;\r
+                    target.setName( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _name\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _type\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Property target = (Property) object;\r
+                return target.getType();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Property target = (Property) object;\r
+                    target.setType( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _type\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.PropertyDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Property.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 57d7cc5..df5cb2e 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 java.util.Enumeration;
-import java.util.Vector;
-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;
-
-/**
- * Annotation for a rangeSpec - values can be attached for the
- * whole specification, and to each position within the spec.
- * following the orientation specified by the ordered set of
- * rangeSpec (pos, seg) elements.
- *  
- * 
- * @version $Revision$ $Date$
- */
-public class RangeAnnotation extends org.vamsas.objects.core.RangeType 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Primary Key for vamsas object referencing
-     *  
-     */
-    private java.lang.String _id;
-
-    /**
-     * objects with modifiable=false will not be
-     *  modified by a vamsas client update
-     *  
-     */
-    private boolean _modifiable = true;
-
-    /**
-     * keeps track of state for field: _modifiable
-     */
-    private boolean _has_modifiable;
-
-    /**
-     * Annotation with the same non-empty group
-     *  name are grouped together
-     *  
-     */
-    private java.lang.String _group = "";
-
-    /**
-     * A Das Feature has both a type and a Type ID.
-     *  We go the route of requiring the type string
-     *  to be taken from a controlled vocabulary if
-     *  an application expects others to make sense
-     *  of it. 
-     *  The type may qualified - so uniprot:CHAIN is a valid type
-     * name, 
-     *  and considered distinct from someotherDB:CHAIN
-     *  
-     */
-    private java.lang.String _type;
-
-    /**
-     * Short, meaningful name for the annotation - if this is
-     * absent, then the type string should be used in its place.
-     *  
-     */
-    private java.lang.String _label;
-
-    /**
-     * Human readable description of the annotation
-     *  
-     */
-    private java.lang.String _description;
-
-    /**
-     * TODO: specify this - we have considered taking the GO
-     * evidence codes as a model for assessing a measure of quality
-     * to an annotation.
-     *  
-     */
-    private java.lang.String _status;
-
-    /**
-     * Annotation Element position maps to
-     *  ordered positions defined by the
-     *  sequence of rangeType pos positions or
-     *  concatenated seg start/end segments.
-     *  
-     */
-    private java.util.Vector _annotationElementList;
-
-    /**
-     * Ordered set of optionally named float
-     *  values for the whole annotation
-     *  
-     */
-    private java.util.Vector _scoreList;
-
-    /**
-     * Field _linkList
-     */
-    private java.util.Vector _linkList;
-
-    /**
-     * Note:These are mutable so an application
-     *  should check them each time.
-     *  
-     */
-    private java.util.Vector _propertyList;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public RangeAnnotation() 
-     {
-        super();
-        setGroup("");
-        _annotationElementList = new Vector();
-        _scoreList = new Vector();
-        _linkList = new Vector();
-        _propertyList = new Vector();
-    } //-- org.vamsas.objects.core.RangeAnnotation()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method addAnnotationElement
-     * 
-     * 
-     * 
-     * @param vAnnotationElement
-     */
-    public void addAnnotationElement(org.vamsas.objects.core.AnnotationElement vAnnotationElement)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _annotationElementList.addElement(vAnnotationElement);
-    } //-- void addAnnotationElement(org.vamsas.objects.core.AnnotationElement) 
-
-    /**
-     * Method addAnnotationElement
-     * 
-     * 
-     * 
-     * @param index
-     * @param vAnnotationElement
-     */
-    public void addAnnotationElement(int index, org.vamsas.objects.core.AnnotationElement vAnnotationElement)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _annotationElementList.insertElementAt(vAnnotationElement, index);
-    } //-- void addAnnotationElement(int, org.vamsas.objects.core.AnnotationElement) 
-
-    /**
-     * Method addLink
-     * 
-     * 
-     * 
-     * @param vLink
-     */
-    public void addLink(org.vamsas.objects.core.Link vLink)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _linkList.addElement(vLink);
-    } //-- void addLink(org.vamsas.objects.core.Link) 
-
-    /**
-     * Method addLink
-     * 
-     * 
-     * 
-     * @param index
-     * @param vLink
-     */
-    public void addLink(int index, org.vamsas.objects.core.Link vLink)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _linkList.insertElementAt(vLink, index);
-    } //-- void addLink(int, org.vamsas.objects.core.Link) 
-
-    /**
-     * Method addProperty
-     * 
-     * 
-     * 
-     * @param vProperty
-     */
-    public void addProperty(org.vamsas.objects.core.Property vProperty)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _propertyList.addElement(vProperty);
-    } //-- void addProperty(org.vamsas.objects.core.Property) 
-
-    /**
-     * Method addProperty
-     * 
-     * 
-     * 
-     * @param index
-     * @param vProperty
-     */
-    public void addProperty(int index, org.vamsas.objects.core.Property vProperty)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _propertyList.insertElementAt(vProperty, index);
-    } //-- void addProperty(int, org.vamsas.objects.core.Property) 
-
-    /**
-     * Method addScore
-     * 
-     * 
-     * 
-     * @param vScore
-     */
-    public void addScore(org.vamsas.objects.core.Score vScore)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _scoreList.addElement(vScore);
-    } //-- void addScore(org.vamsas.objects.core.Score) 
-
-    /**
-     * Method addScore
-     * 
-     * 
-     * 
-     * @param index
-     * @param vScore
-     */
-    public void addScore(int index, org.vamsas.objects.core.Score vScore)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _scoreList.insertElementAt(vScore, index);
-    } //-- void addScore(int, org.vamsas.objects.core.Score) 
-
-    /**
-     * Method deleteModifiable
-     * 
-     */
-    public void deleteModifiable()
-    {
-        this._has_modifiable= false;
-    } //-- void deleteModifiable() 
-
-    /**
-     * Method enumerateAnnotationElement
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumerateAnnotationElement()
-    {
-        return _annotationElementList.elements();
-    } //-- java.util.Enumeration enumerateAnnotationElement() 
-
-    /**
-     * Method enumerateLink
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumerateLink()
-    {
-        return _linkList.elements();
-    } //-- java.util.Enumeration enumerateLink() 
-
-    /**
-     * Method enumerateProperty
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumerateProperty()
-    {
-        return _propertyList.elements();
-    } //-- java.util.Enumeration enumerateProperty() 
-
-    /**
-     * Method enumerateScore
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumerateScore()
-    {
-        return _scoreList.elements();
-    } //-- java.util.Enumeration enumerateScore() 
-
-    /**
-     * 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 RangeAnnotation) {
-        
-            RangeAnnotation temp = (RangeAnnotation)obj;
-            if (this._id != null) {
-                if (temp._id == null) return false;
-                else if (!(this._id.equals(temp._id))) 
-                    return false;
-            }
-            else if (temp._id != null)
-                return false;
-            if (this._modifiable != temp._modifiable)
-                return false;
-            if (this._has_modifiable != temp._has_modifiable)
-                return false;
-            if (this._group != null) {
-                if (temp._group == null) return false;
-                else if (!(this._group.equals(temp._group))) 
-                    return false;
-            }
-            else if (temp._group != 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;
-            if (this._label != null) {
-                if (temp._label == null) return false;
-                else if (!(this._label.equals(temp._label))) 
-                    return false;
-            }
-            else if (temp._label != null)
-                return false;
-            if (this._description != null) {
-                if (temp._description == null) return false;
-                else if (!(this._description.equals(temp._description))) 
-                    return false;
-            }
-            else if (temp._description != null)
-                return false;
-            if (this._status != null) {
-                if (temp._status == null) return false;
-                else if (!(this._status.equals(temp._status))) 
-                    return false;
-            }
-            else if (temp._status != null)
-                return false;
-            if (this._annotationElementList != null) {
-                if (temp._annotationElementList == null) return false;
-                else if (!(this._annotationElementList.equals(temp._annotationElementList))) 
-                    return false;
-            }
-            else if (temp._annotationElementList != null)
-                return false;
-            if (this._scoreList != null) {
-                if (temp._scoreList == null) return false;
-                else if (!(this._scoreList.equals(temp._scoreList))) 
-                    return false;
-            }
-            else if (temp._scoreList != null)
-                return false;
-            if (this._linkList != null) {
-                if (temp._linkList == null) return false;
-                else if (!(this._linkList.equals(temp._linkList))) 
-                    return false;
-            }
-            else if (temp._linkList != null)
-                return false;
-            if (this._propertyList != null) {
-                if (temp._propertyList == null) return false;
-                else if (!(this._propertyList.equals(temp._propertyList))) 
-                    return false;
-            }
-            else if (temp._propertyList != null)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Method getAnnotationElement
-     * 
-     * 
-     * 
-     * @param index
-     * @return AnnotationElement
-     */
-    public org.vamsas.objects.core.AnnotationElement getAnnotationElement(int index)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _annotationElementList.size())) {
-            throw new IndexOutOfBoundsException("getAnnotationElement: Index value '"+index+"' not in range [0.."+_annotationElementList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.AnnotationElement) _annotationElementList.elementAt(index);
-    } //-- org.vamsas.objects.core.AnnotationElement getAnnotationElement(int) 
-
-    /**
-     * Method getAnnotationElement
-     * 
-     * 
-     * 
-     * @return AnnotationElement
-     */
-    public org.vamsas.objects.core.AnnotationElement[] getAnnotationElement()
-    {
-        int size = _annotationElementList.size();
-        org.vamsas.objects.core.AnnotationElement[] mArray = new org.vamsas.objects.core.AnnotationElement[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.AnnotationElement) _annotationElementList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.AnnotationElement[] getAnnotationElement() 
-
-    /**
-     * Method getAnnotationElementCount
-     * 
-     * 
-     * 
-     * @return int
-     */
-    public int getAnnotationElementCount()
-    {
-        return _annotationElementList.size();
-    } //-- int getAnnotationElementCount() 
-
-    /**
-     * Returns the value of field 'description'. The field
-     * 'description' has the following description: Human readable
-     * description of the annotation
-     *  
-     * 
-     * @return String
-     * @return the value of field 'description'.
-     */
-    public java.lang.String getDescription()
-    {
-        return this._description;
-    } //-- java.lang.String getDescription() 
-
-    /**
-     * Returns the value of field 'group'. The field 'group' has
-     * the following description: Annotation with the same
-     * non-empty group
-     *  name are grouped together
-     *  
-     * 
-     * @return String
-     * @return the value of field 'group'.
-     */
-    public java.lang.String getGroup()
-    {
-        return this._group;
-    } //-- java.lang.String getGroup() 
-
-    /**
-     * Returns the value of field 'id'. The field 'id' has the
-     * following description: Primary Key for vamsas object
-     * referencing
-     *  
-     * 
-     * @return String
-     * @return the value of field 'id'.
-     */
-    public java.lang.String getId()
-    {
-        return this._id;
-    } //-- java.lang.String getId() 
-
-    /**
-     * Returns the value of field 'label'. The field 'label' has
-     * the following description: Short, meaningful name for the
-     * annotation - if this is absent, then the type string should
-     * be used in its place.
-     *  
-     * 
-     * @return String
-     * @return the value of field 'label'.
-     */
-    public java.lang.String getLabel()
-    {
-        return this._label;
-    } //-- java.lang.String getLabel() 
-
-    /**
-     * Method getLink
-     * 
-     * 
-     * 
-     * @param index
-     * @return Link
-     */
-    public org.vamsas.objects.core.Link getLink(int index)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _linkList.size())) {
-            throw new IndexOutOfBoundsException("getLink: Index value '"+index+"' not in range [0.."+_linkList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.Link) _linkList.elementAt(index);
-    } //-- org.vamsas.objects.core.Link getLink(int) 
-
-    /**
-     * Method getLink
-     * 
-     * 
-     * 
-     * @return Link
-     */
-    public org.vamsas.objects.core.Link[] getLink()
-    {
-        int size = _linkList.size();
-        org.vamsas.objects.core.Link[] mArray = new org.vamsas.objects.core.Link[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.Link) _linkList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.Link[] getLink() 
-
-    /**
-     * Method getLinkCount
-     * 
-     * 
-     * 
-     * @return int
-     */
-    public int getLinkCount()
-    {
-        return _linkList.size();
-    } //-- int getLinkCount() 
-
-    /**
-     * Returns the value of field 'modifiable'. The field
-     * 'modifiable' has the following description: objects with
-     * modifiable=false will not be
-     *  modified by a vamsas client update
-     *  
-     * 
-     * @return boolean
-     * @return the value of field 'modifiable'.
-     */
-    public boolean getModifiable()
-    {
-        return this._modifiable;
-    } //-- boolean getModifiable() 
-
-    /**
-     * Method getProperty
-     * 
-     * 
-     * 
-     * @param index
-     * @return Property
-     */
-    public org.vamsas.objects.core.Property getProperty(int index)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _propertyList.size())) {
-            throw new IndexOutOfBoundsException("getProperty: Index value '"+index+"' not in range [0.."+_propertyList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.Property) _propertyList.elementAt(index);
-    } //-- org.vamsas.objects.core.Property getProperty(int) 
-
-    /**
-     * Method getProperty
-     * 
-     * 
-     * 
-     * @return Property
-     */
-    public org.vamsas.objects.core.Property[] getProperty()
-    {
-        int size = _propertyList.size();
-        org.vamsas.objects.core.Property[] mArray = new org.vamsas.objects.core.Property[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.Property) _propertyList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.Property[] getProperty() 
-
-    /**
-     * Method getPropertyCount
-     * 
-     * 
-     * 
-     * @return int
-     */
-    public int getPropertyCount()
-    {
-        return _propertyList.size();
-    } //-- int getPropertyCount() 
-
-    /**
-     * Method getScore
-     * 
-     * 
-     * 
-     * @param index
-     * @return Score
-     */
-    public org.vamsas.objects.core.Score getScore(int index)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _scoreList.size())) {
-            throw new IndexOutOfBoundsException("getScore: Index value '"+index+"' not in range [0.."+_scoreList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.Score) _scoreList.elementAt(index);
-    } //-- org.vamsas.objects.core.Score getScore(int) 
-
-    /**
-     * Method getScore
-     * 
-     * 
-     * 
-     * @return Score
-     */
-    public org.vamsas.objects.core.Score[] getScore()
-    {
-        int size = _scoreList.size();
-        org.vamsas.objects.core.Score[] mArray = new org.vamsas.objects.core.Score[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.Score) _scoreList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.Score[] getScore() 
-
-    /**
-     * Method getScoreCount
-     * 
-     * 
-     * 
-     * @return int
-     */
-    public int getScoreCount()
-    {
-        return _scoreList.size();
-    } //-- int getScoreCount() 
-
-    /**
-     * Returns the value of field 'status'. The field 'status' has
-     * the following description: TODO: specify this - we have
-     * considered taking the GO evidence codes as a model for
-     * assessing a measure of quality to an annotation.
-     *  
-     * 
-     * @return String
-     * @return the value of field 'status'.
-     */
-    public java.lang.String getStatus()
-    {
-        return this._status;
-    } //-- java.lang.String getStatus() 
-
-    /**
-     * Returns the value of field 'type'. The field 'type' has the
-     * following description: A Das Feature has both a type and a
-     * Type ID.
-     *  We go the route of requiring the type string
-     *  to be taken from a controlled vocabulary if
-     *  an application expects others to make sense
-     *  of it. 
-     *  The type may qualified - so uniprot:CHAIN is a valid type
-     * name, 
-     *  and considered distinct from someotherDB:CHAIN
-     *  
-     * 
-     * @return String
-     * @return the value of field 'type'.
-     */
-    public java.lang.String getType()
-    {
-        return this._type;
-    } //-- java.lang.String getType() 
-
-    /**
-     * Method hasModifiable
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasModifiable()
-    {
-        return this._has_modifiable;
-    } //-- boolean hasModifiable() 
-
-    /**
-     * 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) 
-
-    /**
-     * Method removeAllAnnotationElement
-     * 
-     */
-    public void removeAllAnnotationElement()
-    {
-        _annotationElementList.removeAllElements();
-    } //-- void removeAllAnnotationElement() 
-
-    /**
-     * Method removeAllLink
-     * 
-     */
-    public void removeAllLink()
-    {
-        _linkList.removeAllElements();
-    } //-- void removeAllLink() 
-
-    /**
-     * Method removeAllProperty
-     * 
-     */
-    public void removeAllProperty()
-    {
-        _propertyList.removeAllElements();
-    } //-- void removeAllProperty() 
-
-    /**
-     * Method removeAllScore
-     * 
-     */
-    public void removeAllScore()
-    {
-        _scoreList.removeAllElements();
-    } //-- void removeAllScore() 
-
-    /**
-     * Method removeAnnotationElement
-     * 
-     * 
-     * 
-     * @param index
-     * @return AnnotationElement
-     */
-    public org.vamsas.objects.core.AnnotationElement removeAnnotationElement(int index)
-    {
-        java.lang.Object obj = _annotationElementList.elementAt(index);
-        _annotationElementList.removeElementAt(index);
-        return (org.vamsas.objects.core.AnnotationElement) obj;
-    } //-- org.vamsas.objects.core.AnnotationElement removeAnnotationElement(int) 
-
-    /**
-     * Method removeLink
-     * 
-     * 
-     * 
-     * @param index
-     * @return Link
-     */
-    public org.vamsas.objects.core.Link removeLink(int index)
-    {
-        java.lang.Object obj = _linkList.elementAt(index);
-        _linkList.removeElementAt(index);
-        return (org.vamsas.objects.core.Link) obj;
-    } //-- org.vamsas.objects.core.Link removeLink(int) 
-
-    /**
-     * Method removeProperty
-     * 
-     * 
-     * 
-     * @param index
-     * @return Property
-     */
-    public org.vamsas.objects.core.Property removeProperty(int index)
-    {
-        java.lang.Object obj = _propertyList.elementAt(index);
-        _propertyList.removeElementAt(index);
-        return (org.vamsas.objects.core.Property) obj;
-    } //-- org.vamsas.objects.core.Property removeProperty(int) 
-
-    /**
-     * Method removeScore
-     * 
-     * 
-     * 
-     * @param index
-     * @return Score
-     */
-    public org.vamsas.objects.core.Score removeScore(int index)
-    {
-        java.lang.Object obj = _scoreList.elementAt(index);
-        _scoreList.removeElementAt(index);
-        return (org.vamsas.objects.core.Score) obj;
-    } //-- org.vamsas.objects.core.Score removeScore(int) 
-
-    /**
-     * Method setAnnotationElement
-     * 
-     * 
-     * 
-     * @param index
-     * @param vAnnotationElement
-     */
-    public void setAnnotationElement(int index, org.vamsas.objects.core.AnnotationElement vAnnotationElement)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _annotationElementList.size())) {
-            throw new IndexOutOfBoundsException("setAnnotationElement: Index value '"+index+"' not in range [0.."+_annotationElementList.size()+ "]");
-        }
-        _annotationElementList.setElementAt(vAnnotationElement, index);
-    } //-- void setAnnotationElement(int, org.vamsas.objects.core.AnnotationElement) 
-
-    /**
-     * Method setAnnotationElement
-     * 
-     * 
-     * 
-     * @param annotationElementArray
-     */
-    public void setAnnotationElement(org.vamsas.objects.core.AnnotationElement[] annotationElementArray)
-    {
-        //-- copy array
-        _annotationElementList.removeAllElements();
-        for (int i = 0; i < annotationElementArray.length; i++) {
-            _annotationElementList.addElement(annotationElementArray[i]);
-        }
-    } //-- void setAnnotationElement(org.vamsas.objects.core.AnnotationElement) 
-
-    /**
-     * Sets the value of field 'description'. The field
-     * 'description' has the following description: Human readable
-     * description of the annotation
-     *  
-     * 
-     * @param description the value of field 'description'.
-     */
-    public void setDescription(java.lang.String description)
-    {
-        this._description = description;
-    } //-- void setDescription(java.lang.String) 
-
-    /**
-     * Sets the value of field 'group'. The field 'group' has the
-     * following description: Annotation with the same non-empty
-     * group
-     *  name are grouped together
-     *  
-     * 
-     * @param group the value of field 'group'.
-     */
-    public void setGroup(java.lang.String group)
-    {
-        this._group = group;
-    } //-- void setGroup(java.lang.String) 
-
-    /**
-     * Sets the value of field 'id'. The field 'id' has the
-     * following description: Primary Key for vamsas object
-     * referencing
-     *  
-     * 
-     * @param id the value of field 'id'.
-     */
-    public void setId(java.lang.String id)
-    {
-        this._id = id;
-    } //-- void setId(java.lang.String) 
-
-    /**
-     * Sets the value of field 'label'. The field 'label' has the
-     * following description: Short, meaningful name for the
-     * annotation - if this is absent, then the type string should
-     * be used in its place.
-     *  
-     * 
-     * @param label the value of field 'label'.
-     */
-    public void setLabel(java.lang.String label)
-    {
-        this._label = label;
-    } //-- void setLabel(java.lang.String) 
-
-    /**
-     * Method setLink
-     * 
-     * 
-     * 
-     * @param index
-     * @param vLink
-     */
-    public void setLink(int index, org.vamsas.objects.core.Link vLink)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _linkList.size())) {
-            throw new IndexOutOfBoundsException("setLink: Index value '"+index+"' not in range [0.."+_linkList.size()+ "]");
-        }
-        _linkList.setElementAt(vLink, index);
-    } //-- void setLink(int, org.vamsas.objects.core.Link) 
-
-    /**
-     * Method setLink
-     * 
-     * 
-     * 
-     * @param linkArray
-     */
-    public void setLink(org.vamsas.objects.core.Link[] linkArray)
-    {
-        //-- copy array
-        _linkList.removeAllElements();
-        for (int i = 0; i < linkArray.length; i++) {
-            _linkList.addElement(linkArray[i]);
-        }
-    } //-- void setLink(org.vamsas.objects.core.Link) 
-
-    /**
-     * Sets the value of field 'modifiable'. The field 'modifiable'
-     * has the following description: objects with modifiable=false
-     * will not be
-     *  modified by a vamsas client update
-     *  
-     * 
-     * @param modifiable the value of field 'modifiable'.
-     */
-    public void setModifiable(boolean modifiable)
-    {
-        this._modifiable = modifiable;
-        this._has_modifiable = true;
-    } //-- void setModifiable(boolean) 
-
-    /**
-     * Method setProperty
-     * 
-     * 
-     * 
-     * @param index
-     * @param vProperty
-     */
-    public void setProperty(int index, org.vamsas.objects.core.Property vProperty)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _propertyList.size())) {
-            throw new IndexOutOfBoundsException("setProperty: Index value '"+index+"' not in range [0.."+_propertyList.size()+ "]");
-        }
-        _propertyList.setElementAt(vProperty, index);
-    } //-- void setProperty(int, org.vamsas.objects.core.Property) 
-
-    /**
-     * Method setProperty
-     * 
-     * 
-     * 
-     * @param propertyArray
-     */
-    public void setProperty(org.vamsas.objects.core.Property[] propertyArray)
-    {
-        //-- copy array
-        _propertyList.removeAllElements();
-        for (int i = 0; i < propertyArray.length; i++) {
-            _propertyList.addElement(propertyArray[i]);
-        }
-    } //-- void setProperty(org.vamsas.objects.core.Property) 
-
-    /**
-     * Method setScore
-     * 
-     * 
-     * 
-     * @param index
-     * @param vScore
-     */
-    public void setScore(int index, org.vamsas.objects.core.Score vScore)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _scoreList.size())) {
-            throw new IndexOutOfBoundsException("setScore: Index value '"+index+"' not in range [0.."+_scoreList.size()+ "]");
-        }
-        _scoreList.setElementAt(vScore, index);
-    } //-- void setScore(int, org.vamsas.objects.core.Score) 
-
-    /**
-     * Method setScore
-     * 
-     * 
-     * 
-     * @param scoreArray
-     */
-    public void setScore(org.vamsas.objects.core.Score[] scoreArray)
-    {
-        //-- copy array
-        _scoreList.removeAllElements();
-        for (int i = 0; i < scoreArray.length; i++) {
-            _scoreList.addElement(scoreArray[i]);
-        }
-    } //-- void setScore(org.vamsas.objects.core.Score) 
-
-    /**
-     * Sets the value of field 'status'. The field 'status' has the
-     * following description: TODO: specify this - we have
-     * considered taking the GO evidence codes as a model for
-     * assessing a measure of quality to an annotation.
-     *  
-     * 
-     * @param status the value of field 'status'.
-     */
-    public void setStatus(java.lang.String status)
-    {
-        this._status = status;
-    } //-- void setStatus(java.lang.String) 
-
-    /**
-     * Sets the value of field 'type'. The field 'type' has the
-     * following description: A Das Feature has both a type and a
-     * Type ID.
-     *  We go the route of requiring the type string
-     *  to be taken from a controlled vocabulary if
-     *  an application expects others to make sense
-     *  of it. 
-     *  The type may qualified - so uniprot:CHAIN is a valid type
-     * name, 
-     *  and considered distinct from someotherDB:CHAIN
-     *  
-     * 
-     * @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 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.RangeAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.RangeAnnotation.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import java.util.Enumeration;\r
+import java.util.Vector;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Annotation for a rangeSpec - values can be attached for the\r
+ * whole specification, and to each position within the spec.\r
+ * following the orientation specified by the ordered set of\r
+ * rangeSpec (pos, seg) elements.\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class RangeAnnotation extends org.vamsas.objects.core.RangeType \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Primary Key for vamsas object referencing\r
+     *  \r
+     */\r
+    private java.lang.String _id;\r
+\r
+    /**\r
+     * objects with modifiable=false will not be\r
+     *  modified by a vamsas client update\r
+     *  \r
+     */\r
+    private boolean _modifiable = true;\r
+\r
+    /**\r
+     * keeps track of state for field: _modifiable\r
+     */\r
+    private boolean _has_modifiable;\r
+\r
+    /**\r
+     * Annotation with the same non-empty group\r
+     *  name are grouped together\r
+     *  \r
+     */\r
+    private java.lang.String _group = "";\r
+\r
+    /**\r
+     * A Das Feature has both a type and a Type ID.\r
+     *  We go the route of requiring the type string\r
+     *  to be taken from a controlled vocabulary if\r
+     *  an application expects others to make sense\r
+     *  of it. \r
+     *  The type may qualified - so uniprot:CHAIN is a valid type\r
+     * name, \r
+     *  and considered distinct from someotherDB:CHAIN\r
+     *  \r
+     */\r
+    private java.lang.String _type;\r
+\r
+    /**\r
+     * Short, meaningful name for the annotation - if this is\r
+     * absent, then the type string should be used in its place.\r
+     *  \r
+     */\r
+    private java.lang.String _label;\r
+\r
+    /**\r
+     * Human readable description of the annotation\r
+     *  \r
+     */\r
+    private java.lang.String _description;\r
+\r
+    /**\r
+     * TODO: specify this - we have considered taking the GO\r
+     * evidence codes as a model for assessing a measure of quality\r
+     * to an annotation.\r
+     *  \r
+     */\r
+    private java.lang.String _status;\r
+\r
+    /**\r
+     * Annotation Element position maps to\r
+     *  ordered positions defined by the\r
+     *  sequence of rangeType pos positions or\r
+     *  concatenated seg start/end segments.\r
+     *  \r
+     */\r
+    private java.util.Vector _annotationElementList;\r
+\r
+    /**\r
+     * Ordered set of optionally named float\r
+     *  values for the whole annotation\r
+     *  \r
+     */\r
+    private java.util.Vector _scoreList;\r
+\r
+    /**\r
+     * Field _linkList\r
+     */\r
+    private java.util.Vector _linkList;\r
+\r
+    /**\r
+     * Note:These are mutable so an application\r
+     *  should check them each time.\r
+     *  \r
+     */\r
+    private java.util.Vector _propertyList;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public RangeAnnotation() \r
+     {\r
+        super();\r
+        setGroup("");\r
+        _annotationElementList = new Vector();\r
+        _scoreList = new Vector();\r
+        _linkList = new Vector();\r
+        _propertyList = new Vector();\r
+    } //-- org.vamsas.objects.core.RangeAnnotation()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method addAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @param vAnnotationElement\r
+     */\r
+    public void addAnnotationElement(org.vamsas.objects.core.AnnotationElement vAnnotationElement)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _annotationElementList.addElement(vAnnotationElement);\r
+    } //-- void addAnnotationElement(org.vamsas.objects.core.AnnotationElement) \r
+\r
+    /**\r
+     * Method addAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vAnnotationElement\r
+     */\r
+    public void addAnnotationElement(int index, org.vamsas.objects.core.AnnotationElement vAnnotationElement)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _annotationElementList.insertElementAt(vAnnotationElement, index);\r
+    } //-- void addAnnotationElement(int, org.vamsas.objects.core.AnnotationElement) \r
+\r
+    /**\r
+     * Method addLink\r
+     * \r
+     * \r
+     * \r
+     * @param vLink\r
+     */\r
+    public void addLink(org.vamsas.objects.core.Link vLink)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _linkList.addElement(vLink);\r
+    } //-- void addLink(org.vamsas.objects.core.Link) \r
+\r
+    /**\r
+     * Method addLink\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vLink\r
+     */\r
+    public void addLink(int index, org.vamsas.objects.core.Link vLink)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _linkList.insertElementAt(vLink, index);\r
+    } //-- void addLink(int, org.vamsas.objects.core.Link) \r
+\r
+    /**\r
+     * Method addProperty\r
+     * \r
+     * \r
+     * \r
+     * @param vProperty\r
+     */\r
+    public void addProperty(org.vamsas.objects.core.Property vProperty)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _propertyList.addElement(vProperty);\r
+    } //-- void addProperty(org.vamsas.objects.core.Property) \r
+\r
+    /**\r
+     * Method addProperty\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vProperty\r
+     */\r
+    public void addProperty(int index, org.vamsas.objects.core.Property vProperty)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _propertyList.insertElementAt(vProperty, index);\r
+    } //-- void addProperty(int, org.vamsas.objects.core.Property) \r
+\r
+    /**\r
+     * Method addScore\r
+     * \r
+     * \r
+     * \r
+     * @param vScore\r
+     */\r
+    public void addScore(org.vamsas.objects.core.Score vScore)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _scoreList.addElement(vScore);\r
+    } //-- void addScore(org.vamsas.objects.core.Score) \r
+\r
+    /**\r
+     * Method addScore\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vScore\r
+     */\r
+    public void addScore(int index, org.vamsas.objects.core.Score vScore)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _scoreList.insertElementAt(vScore, index);\r
+    } //-- void addScore(int, org.vamsas.objects.core.Score) \r
+\r
+    /**\r
+     * Method deleteModifiable\r
+     * \r
+     */\r
+    public void deleteModifiable()\r
+    {\r
+        this._has_modifiable= false;\r
+    } //-- void deleteModifiable() \r
+\r
+    /**\r
+     * Method enumerateAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @return Enumeration\r
+     */\r
+    public java.util.Enumeration enumerateAnnotationElement()\r
+    {\r
+        return _annotationElementList.elements();\r
+    } //-- java.util.Enumeration enumerateAnnotationElement() \r
+\r
+    /**\r
+     * Method enumerateLink\r
+     * \r
+     * \r
+     * \r
+     * @return Enumeration\r
+     */\r
+    public java.util.Enumeration enumerateLink()\r
+    {\r
+        return _linkList.elements();\r
+    } //-- java.util.Enumeration enumerateLink() \r
+\r
+    /**\r
+     * Method enumerateProperty\r
+     * \r
+     * \r
+     * \r
+     * @return Enumeration\r
+     */\r
+    public java.util.Enumeration enumerateProperty()\r
+    {\r
+        return _propertyList.elements();\r
+    } //-- java.util.Enumeration enumerateProperty() \r
+\r
+    /**\r
+     * Method enumerateScore\r
+     * \r
+     * \r
+     * \r
+     * @return Enumeration\r
+     */\r
+    public java.util.Enumeration enumerateScore()\r
+    {\r
+        return _scoreList.elements();\r
+    } //-- java.util.Enumeration enumerateScore() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof RangeAnnotation) {\r
+        \r
+            RangeAnnotation temp = (RangeAnnotation)obj;\r
+            if (this._id != null) {\r
+                if (temp._id == null) return false;\r
+                else if (!(this._id.equals(temp._id))) \r
+                    return false;\r
+            }\r
+            else if (temp._id != null)\r
+                return false;\r
+            if (this._modifiable != temp._modifiable)\r
+                return false;\r
+            if (this._has_modifiable != temp._has_modifiable)\r
+                return false;\r
+            if (this._group != null) {\r
+                if (temp._group == null) return false;\r
+                else if (!(this._group.equals(temp._group))) \r
+                    return false;\r
+            }\r
+            else if (temp._group != null)\r
+                return false;\r
+            if (this._type != null) {\r
+                if (temp._type == null) return false;\r
+                else if (!(this._type.equals(temp._type))) \r
+                    return false;\r
+            }\r
+            else if (temp._type != null)\r
+                return false;\r
+            if (this._label != null) {\r
+                if (temp._label == null) return false;\r
+                else if (!(this._label.equals(temp._label))) \r
+                    return false;\r
+            }\r
+            else if (temp._label != null)\r
+                return false;\r
+            if (this._description != null) {\r
+                if (temp._description == null) return false;\r
+                else if (!(this._description.equals(temp._description))) \r
+                    return false;\r
+            }\r
+            else if (temp._description != null)\r
+                return false;\r
+            if (this._status != null) {\r
+                if (temp._status == null) return false;\r
+                else if (!(this._status.equals(temp._status))) \r
+                    return false;\r
+            }\r
+            else if (temp._status != null)\r
+                return false;\r
+            if (this._annotationElementList != null) {\r
+                if (temp._annotationElementList == null) return false;\r
+                else if (!(this._annotationElementList.equals(temp._annotationElementList))) \r
+                    return false;\r
+            }\r
+            else if (temp._annotationElementList != null)\r
+                return false;\r
+            if (this._scoreList != null) {\r
+                if (temp._scoreList == null) return false;\r
+                else if (!(this._scoreList.equals(temp._scoreList))) \r
+                    return false;\r
+            }\r
+            else if (temp._scoreList != null)\r
+                return false;\r
+            if (this._linkList != null) {\r
+                if (temp._linkList == null) return false;\r
+                else if (!(this._linkList.equals(temp._linkList))) \r
+                    return false;\r
+            }\r
+            else if (temp._linkList != null)\r
+                return false;\r
+            if (this._propertyList != null) {\r
+                if (temp._propertyList == null) return false;\r
+                else if (!(this._propertyList.equals(temp._propertyList))) \r
+                    return false;\r
+            }\r
+            else if (temp._propertyList != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Method getAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return AnnotationElement\r
+     */\r
+    public org.vamsas.objects.core.AnnotationElement getAnnotationElement(int index)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _annotationElementList.size())) {\r
+            throw new IndexOutOfBoundsException("getAnnotationElement: Index value '"+index+"' not in range [0.."+_annotationElementList.size()+ "]");\r
+        }\r
+        \r
+        return (org.vamsas.objects.core.AnnotationElement) _annotationElementList.elementAt(index);\r
+    } //-- org.vamsas.objects.core.AnnotationElement getAnnotationElement(int) \r
+\r
+    /**\r
+     * Method getAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @return AnnotationElement\r
+     */\r
+    public org.vamsas.objects.core.AnnotationElement[] getAnnotationElement()\r
+    {\r
+        int size = _annotationElementList.size();\r
+        org.vamsas.objects.core.AnnotationElement[] mArray = new org.vamsas.objects.core.AnnotationElement[size];\r
+        for (int index = 0; index < size; index++) {\r
+            mArray[index] = (org.vamsas.objects.core.AnnotationElement) _annotationElementList.elementAt(index);\r
+        }\r
+        return mArray;\r
+    } //-- org.vamsas.objects.core.AnnotationElement[] getAnnotationElement() \r
+\r
+    /**\r
+     * Method getAnnotationElementCount\r
+     * \r
+     * \r
+     * \r
+     * @return int\r
+     */\r
+    public int getAnnotationElementCount()\r
+    {\r
+        return _annotationElementList.size();\r
+    } //-- int getAnnotationElementCount() \r
+\r
+    /**\r
+     * Returns the value of field 'description'. The field\r
+     * 'description' has the following description: Human readable\r
+     * description of the annotation\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'description'.\r
+     */\r
+    public java.lang.String getDescription()\r
+    {\r
+        return this._description;\r
+    } //-- java.lang.String getDescription() \r
+\r
+    /**\r
+     * Returns the value of field 'group'. The field 'group' has\r
+     * the following description: Annotation with the same\r
+     * non-empty group\r
+     *  name are grouped together\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'group'.\r
+     */\r
+    public java.lang.String getGroup()\r
+    {\r
+        return this._group;\r
+    } //-- java.lang.String getGroup() \r
+\r
+    /**\r
+     * Returns the value of field 'id'. The field 'id' has the\r
+     * following description: Primary Key for vamsas object\r
+     * referencing\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'id'.\r
+     */\r
+    public java.lang.String getId()\r
+    {\r
+        return this._id;\r
+    } //-- java.lang.String getId() \r
+\r
+    /**\r
+     * Returns the value of field 'label'. The field 'label' has\r
+     * the following description: Short, meaningful name for the\r
+     * annotation - if this is absent, then the type string should\r
+     * be used in its place.\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'label'.\r
+     */\r
+    public java.lang.String getLabel()\r
+    {\r
+        return this._label;\r
+    } //-- java.lang.String getLabel() \r
+\r
+    /**\r
+     * Method getLink\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Link\r
+     */\r
+    public org.vamsas.objects.core.Link getLink(int index)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _linkList.size())) {\r
+            throw new IndexOutOfBoundsException("getLink: Index value '"+index+"' not in range [0.."+_linkList.size()+ "]");\r
+        }\r
+        \r
+        return (org.vamsas.objects.core.Link) _linkList.elementAt(index);\r
+    } //-- org.vamsas.objects.core.Link getLink(int) \r
+\r
+    /**\r
+     * Method getLink\r
+     * \r
+     * \r
+     * \r
+     * @return Link\r
+     */\r
+    public org.vamsas.objects.core.Link[] getLink()\r
+    {\r
+        int size = _linkList.size();\r
+        org.vamsas.objects.core.Link[] mArray = new org.vamsas.objects.core.Link[size];\r
+        for (int index = 0; index < size; index++) {\r
+            mArray[index] = (org.vamsas.objects.core.Link) _linkList.elementAt(index);\r
+        }\r
+        return mArray;\r
+    } //-- org.vamsas.objects.core.Link[] getLink() \r
+\r
+    /**\r
+     * Method getLinkCount\r
+     * \r
+     * \r
+     * \r
+     * @return int\r
+     */\r
+    public int getLinkCount()\r
+    {\r
+        return _linkList.size();\r
+    } //-- int getLinkCount() \r
+\r
+    /**\r
+     * Returns the value of field 'modifiable'. The field\r
+     * 'modifiable' has the following description: objects with\r
+     * modifiable=false will not be\r
+     *  modified by a vamsas client update\r
+     *  \r
+     * \r
+     * @return boolean\r
+     * @return the value of field 'modifiable'.\r
+     */\r
+    public boolean getModifiable()\r
+    {\r
+        return this._modifiable;\r
+    } //-- boolean getModifiable() \r
+\r
+    /**\r
+     * Method getProperty\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Property\r
+     */\r
+    public org.vamsas.objects.core.Property getProperty(int index)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _propertyList.size())) {\r
+            throw new IndexOutOfBoundsException("getProperty: Index value '"+index+"' not in range [0.."+_propertyList.size()+ "]");\r
+        }\r
+        \r
+        return (org.vamsas.objects.core.Property) _propertyList.elementAt(index);\r
+    } //-- org.vamsas.objects.core.Property getProperty(int) \r
+\r
+    /**\r
+     * Method getProperty\r
+     * \r
+     * \r
+     * \r
+     * @return Property\r
+     */\r
+    public org.vamsas.objects.core.Property[] getProperty()\r
+    {\r
+        int size = _propertyList.size();\r
+        org.vamsas.objects.core.Property[] mArray = new org.vamsas.objects.core.Property[size];\r
+        for (int index = 0; index < size; index++) {\r
+            mArray[index] = (org.vamsas.objects.core.Property) _propertyList.elementAt(index);\r
+        }\r
+        return mArray;\r
+    } //-- org.vamsas.objects.core.Property[] getProperty() \r
+\r
+    /**\r
+     * Method getPropertyCount\r
+     * \r
+     * \r
+     * \r
+     * @return int\r
+     */\r
+    public int getPropertyCount()\r
+    {\r
+        return _propertyList.size();\r
+    } //-- int getPropertyCount() \r
+\r
+    /**\r
+     * Method getScore\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Score\r
+     */\r
+    public org.vamsas.objects.core.Score getScore(int index)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _scoreList.size())) {\r
+            throw new IndexOutOfBoundsException("getScore: Index value '"+index+"' not in range [0.."+_scoreList.size()+ "]");\r
+        }\r
+        \r
+        return (org.vamsas.objects.core.Score) _scoreList.elementAt(index);\r
+    } //-- org.vamsas.objects.core.Score getScore(int) \r
+\r
+    /**\r
+     * Method getScore\r
+     * \r
+     * \r
+     * \r
+     * @return Score\r
+     */\r
+    public org.vamsas.objects.core.Score[] getScore()\r
+    {\r
+        int size = _scoreList.size();\r
+        org.vamsas.objects.core.Score[] mArray = new org.vamsas.objects.core.Score[size];\r
+        for (int index = 0; index < size; index++) {\r
+            mArray[index] = (org.vamsas.objects.core.Score) _scoreList.elementAt(index);\r
+        }\r
+        return mArray;\r
+    } //-- org.vamsas.objects.core.Score[] getScore() \r
+\r
+    /**\r
+     * Method getScoreCount\r
+     * \r
+     * \r
+     * \r
+     * @return int\r
+     */\r
+    public int getScoreCount()\r
+    {\r
+        return _scoreList.size();\r
+    } //-- int getScoreCount() \r
+\r
+    /**\r
+     * Returns the value of field 'status'. The field 'status' has\r
+     * the following description: TODO: specify this - we have\r
+     * considered taking the GO evidence codes as a model for\r
+     * assessing a measure of quality to an annotation.\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'status'.\r
+     */\r
+    public java.lang.String getStatus()\r
+    {\r
+        return this._status;\r
+    } //-- java.lang.String getStatus() \r
+\r
+    /**\r
+     * Returns the value of field 'type'. The field 'type' has the\r
+     * following description: A Das Feature has both a type and a\r
+     * Type ID.\r
+     *  We go the route of requiring the type string\r
+     *  to be taken from a controlled vocabulary if\r
+     *  an application expects others to make sense\r
+     *  of it. \r
+     *  The type may qualified - so uniprot:CHAIN is a valid type\r
+     * name, \r
+     *  and considered distinct from someotherDB:CHAIN\r
+     *  \r
+     * \r
+     * @return String\r
+     * @return the value of field 'type'.\r
+     */\r
+    public java.lang.String getType()\r
+    {\r
+        return this._type;\r
+    } //-- java.lang.String getType() \r
+\r
+    /**\r
+     * Method hasModifiable\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasModifiable()\r
+    {\r
+        return this._has_modifiable;\r
+    } //-- boolean hasModifiable() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Method removeAllAnnotationElement\r
+     * \r
+     */\r
+    public void removeAllAnnotationElement()\r
+    {\r
+        _annotationElementList.removeAllElements();\r
+    } //-- void removeAllAnnotationElement() \r
+\r
+    /**\r
+     * Method removeAllLink\r
+     * \r
+     */\r
+    public void removeAllLink()\r
+    {\r
+        _linkList.removeAllElements();\r
+    } //-- void removeAllLink() \r
+\r
+    /**\r
+     * Method removeAllProperty\r
+     * \r
+     */\r
+    public void removeAllProperty()\r
+    {\r
+        _propertyList.removeAllElements();\r
+    } //-- void removeAllProperty() \r
+\r
+    /**\r
+     * Method removeAllScore\r
+     * \r
+     */\r
+    public void removeAllScore()\r
+    {\r
+        _scoreList.removeAllElements();\r
+    } //-- void removeAllScore() \r
+\r
+    /**\r
+     * Method removeAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return AnnotationElement\r
+     */\r
+    public org.vamsas.objects.core.AnnotationElement removeAnnotationElement(int index)\r
+    {\r
+        java.lang.Object obj = _annotationElementList.elementAt(index);\r
+        _annotationElementList.removeElementAt(index);\r
+        return (org.vamsas.objects.core.AnnotationElement) obj;\r
+    } //-- org.vamsas.objects.core.AnnotationElement removeAnnotationElement(int) \r
+\r
+    /**\r
+     * Method removeLink\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Link\r
+     */\r
+    public org.vamsas.objects.core.Link removeLink(int index)\r
+    {\r
+        java.lang.Object obj = _linkList.elementAt(index);\r
+        _linkList.removeElementAt(index);\r
+        return (org.vamsas.objects.core.Link) obj;\r
+    } //-- org.vamsas.objects.core.Link removeLink(int) \r
+\r
+    /**\r
+     * Method removeProperty\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Property\r
+     */\r
+    public org.vamsas.objects.core.Property removeProperty(int index)\r
+    {\r
+        java.lang.Object obj = _propertyList.elementAt(index);\r
+        _propertyList.removeElementAt(index);\r
+        return (org.vamsas.objects.core.Property) obj;\r
+    } //-- org.vamsas.objects.core.Property removeProperty(int) \r
+\r
+    /**\r
+     * Method removeScore\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Score\r
+     */\r
+    public org.vamsas.objects.core.Score removeScore(int index)\r
+    {\r
+        java.lang.Object obj = _scoreList.elementAt(index);\r
+        _scoreList.removeElementAt(index);\r
+        return (org.vamsas.objects.core.Score) obj;\r
+    } //-- org.vamsas.objects.core.Score removeScore(int) \r
+\r
+    /**\r
+     * Method setAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vAnnotationElement\r
+     */\r
+    public void setAnnotationElement(int index, org.vamsas.objects.core.AnnotationElement vAnnotationElement)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _annotationElementList.size())) {\r
+            throw new IndexOutOfBoundsException("setAnnotationElement: Index value '"+index+"' not in range [0.."+_annotationElementList.size()+ "]");\r
+        }\r
+        _annotationElementList.setElementAt(vAnnotationElement, index);\r
+    } //-- void setAnnotationElement(int, org.vamsas.objects.core.AnnotationElement) \r
+\r
+    /**\r
+     * Method setAnnotationElement\r
+     * \r
+     * \r
+     * \r
+     * @param annotationElementArray\r
+     */\r
+    public void setAnnotationElement(org.vamsas.objects.core.AnnotationElement[] annotationElementArray)\r
+    {\r
+        //-- copy array\r
+        _annotationElementList.removeAllElements();\r
+        for (int i = 0; i < annotationElementArray.length; i++) {\r
+            _annotationElementList.addElement(annotationElementArray[i]);\r
+        }\r
+    } //-- void setAnnotationElement(org.vamsas.objects.core.AnnotationElement) \r
+\r
+    /**\r
+     * Sets the value of field 'description'. The field\r
+     * 'description' has the following description: Human readable\r
+     * description of the annotation\r
+     *  \r
+     * \r
+     * @param description the value of field 'description'.\r
+     */\r
+    public void setDescription(java.lang.String description)\r
+    {\r
+        this._description = description;\r
+    } //-- void setDescription(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'group'. The field 'group' has the\r
+     * following description: Annotation with the same non-empty\r
+     * group\r
+     *  name are grouped together\r
+     *  \r
+     * \r
+     * @param group the value of field 'group'.\r
+     */\r
+    public void setGroup(java.lang.String group)\r
+    {\r
+        this._group = group;\r
+    } //-- void setGroup(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'id'. The field 'id' has the\r
+     * following description: Primary Key for vamsas object\r
+     * referencing\r
+     *  \r
+     * \r
+     * @param id the value of field 'id'.\r
+     */\r
+    public void setId(java.lang.String id)\r
+    {\r
+        this._id = id;\r
+    } //-- void setId(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'label'. The field 'label' has the\r
+     * following description: Short, meaningful name for the\r
+     * annotation - if this is absent, then the type string should\r
+     * be used in its place.\r
+     *  \r
+     * \r
+     * @param label the value of field 'label'.\r
+     */\r
+    public void setLabel(java.lang.String label)\r
+    {\r
+        this._label = label;\r
+    } //-- void setLabel(java.lang.String) \r
+\r
+    /**\r
+     * Method setLink\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vLink\r
+     */\r
+    public void setLink(int index, org.vamsas.objects.core.Link vLink)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _linkList.size())) {\r
+            throw new IndexOutOfBoundsException("setLink: Index value '"+index+"' not in range [0.."+_linkList.size()+ "]");\r
+        }\r
+        _linkList.setElementAt(vLink, index);\r
+    } //-- void setLink(int, org.vamsas.objects.core.Link) \r
+\r
+    /**\r
+     * Method setLink\r
+     * \r
+     * \r
+     * \r
+     * @param linkArray\r
+     */\r
+    public void setLink(org.vamsas.objects.core.Link[] linkArray)\r
+    {\r
+        //-- copy array\r
+        _linkList.removeAllElements();\r
+        for (int i = 0; i < linkArray.length; i++) {\r
+            _linkList.addElement(linkArray[i]);\r
+        }\r
+    } //-- void setLink(org.vamsas.objects.core.Link) \r
+\r
+    /**\r
+     * Sets the value of field 'modifiable'. The field 'modifiable'\r
+     * has the following description: objects with modifiable=false\r
+     * will not be\r
+     *  modified by a vamsas client update\r
+     *  \r
+     * \r
+     * @param modifiable the value of field 'modifiable'.\r
+     */\r
+    public void setModifiable(boolean modifiable)\r
+    {\r
+        this._modifiable = modifiable;\r
+        this._has_modifiable = true;\r
+    } //-- void setModifiable(boolean) \r
+\r
+    /**\r
+     * Method setProperty\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vProperty\r
+     */\r
+    public void setProperty(int index, org.vamsas.objects.core.Property vProperty)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _propertyList.size())) {\r
+            throw new IndexOutOfBoundsException("setProperty: Index value '"+index+"' not in range [0.."+_propertyList.size()+ "]");\r
+        }\r
+        _propertyList.setElementAt(vProperty, index);\r
+    } //-- void setProperty(int, org.vamsas.objects.core.Property) \r
+\r
+    /**\r
+     * Method setProperty\r
+     * \r
+     * \r
+     * \r
+     * @param propertyArray\r
+     */\r
+    public void setProperty(org.vamsas.objects.core.Property[] propertyArray)\r
+    {\r
+        //-- copy array\r
+        _propertyList.removeAllElements();\r
+        for (int i = 0; i < propertyArray.length; i++) {\r
+            _propertyList.addElement(propertyArray[i]);\r
+        }\r
+    } //-- void setProperty(org.vamsas.objects.core.Property) \r
+\r
+    /**\r
+     * Method setScore\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vScore\r
+     */\r
+    public void setScore(int index, org.vamsas.objects.core.Score vScore)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _scoreList.size())) {\r
+            throw new IndexOutOfBoundsException("setScore: Index value '"+index+"' not in range [0.."+_scoreList.size()+ "]");\r
+        }\r
+        _scoreList.setElementAt(vScore, index);\r
+    } //-- void setScore(int, org.vamsas.objects.core.Score) \r
+\r
+    /**\r
+     * Method setScore\r
+     * \r
+     * \r
+     * \r
+     * @param scoreArray\r
+     */\r
+    public void setScore(org.vamsas.objects.core.Score[] scoreArray)\r
+    {\r
+        //-- copy array\r
+        _scoreList.removeAllElements();\r
+        for (int i = 0; i < scoreArray.length; i++) {\r
+            _scoreList.addElement(scoreArray[i]);\r
+        }\r
+    } //-- void setScore(org.vamsas.objects.core.Score) \r
+\r
+    /**\r
+     * Sets the value of field 'status'. The field 'status' has the\r
+     * following description: TODO: specify this - we have\r
+     * considered taking the GO evidence codes as a model for\r
+     * assessing a measure of quality to an annotation.\r
+     *  \r
+     * \r
+     * @param status the value of field 'status'.\r
+     */\r
+    public void setStatus(java.lang.String status)\r
+    {\r
+        this._status = status;\r
+    } //-- void setStatus(java.lang.String) \r
+\r
+    /**\r
+     * Sets the value of field 'type'. The field 'type' has the\r
+     * following description: A Das Feature has both a type and a\r
+     * Type ID.\r
+     *  We go the route of requiring the type string\r
+     *  to be taken from a controlled vocabulary if\r
+     *  an application expects others to make sense\r
+     *  of it. \r
+     *  The type may qualified - so uniprot:CHAIN is a valid type\r
+     * name, \r
+     *  and considered distinct from someotherDB:CHAIN\r
+     *  \r
+     * \r
+     * @param type the value of field 'type'.\r
+     */\r
+    public void setType(java.lang.String type)\r
+    {\r
+        this._type = type;\r
+    } //-- void setType(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return RangeType\r
+     */\r
+    public static org.vamsas.objects.core.RangeType unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.RangeAnnotation) Unmarshaller.unmarshal(org.vamsas.objects.core.RangeAnnotation.class, reader);\r
+    } //-- org.vamsas.objects.core.RangeType unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index cb4ea4b..b26661a 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 RangeAnnotationDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class RangeAnnotationDescriptor extends org.vamsas.objects.core.RangeTypeDescriptor {
-
-
-      //--------------------------/
-     //- 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 RangeAnnotationDescriptor() 
-     {
-        super();
-        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeTypeDescriptor());
-        nsURI = "http://www.vamsas.org";
-        xmlName = "rangeAnnotation";
-        
-        //-- set grouping compositor
-        setCompositorAsSequence();
-        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
-        
-        //-- _id
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);
-        this.identity = desc;
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getId();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.setId( (java.lang.String) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new java.lang.String();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _id
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- _modifiable
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_modifiable", "modifiable", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                if(!target.hasModifiable())
-                    return null;
-                return (target.getModifiable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    // if null, use delete method for optional primitives 
-                    if (value == null) {
-                        target.deleteModifiable();
-                        return;
-                    }
-                    target.setModifiable( ((java.lang.Boolean)value).booleanValue());
-                }
-                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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _modifiable
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            BooleanValidator typeValidator = new BooleanValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _group
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_group", "group", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getGroup();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.setGroup( (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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _group
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _type
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getType();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.setType( (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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _type
-        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);
-        //-- initialize element descriptors
-        
-        //-- _label
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_label", "label", 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
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getLabel();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.setLabel( (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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _label
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _description
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_description", "description", 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
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getDescription();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.setDescription( (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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _description
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _status
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_status", "status", 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
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getStatus();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.setStatus( (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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _status
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _annotationElementList
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.AnnotationElement.class, "_annotationElementList", "annotationElement", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getAnnotationElement();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.addAnnotationElement( (org.vamsas.objects.core.AnnotationElement) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new org.vamsas.objects.core.AnnotationElement();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setNameSpaceURI("http://www.vamsas.org");
-        desc.setMultivalued(true);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _annotationElementList
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(0);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- _scoreList
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Score.class, "_scoreList", "score", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getScore();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.addScore( (org.vamsas.objects.core.Score) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new org.vamsas.objects.core.Score();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setNameSpaceURI("http://www.vamsas.org");
-        desc.setMultivalued(true);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _scoreList
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(0);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- _linkList
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Link.class, "_linkList", "link", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getLink();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.addLink( (org.vamsas.objects.core.Link) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new org.vamsas.objects.core.Link();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setNameSpaceURI("http://www.vamsas.org");
-        desc.setMultivalued(true);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _linkList
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(0);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- _propertyList
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Property.class, "_propertyList", "property", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeAnnotation target = (RangeAnnotation) object;
-                return target.getProperty();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeAnnotation target = (RangeAnnotation) object;
-                    target.addProperty( (org.vamsas.objects.core.Property) value);
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return new org.vamsas.objects.core.Property();
-            }
-        };
-        desc.setHandler(handler);
-        desc.setNameSpaceURI("http://www.vamsas.org");
-        desc.setMultivalued(true);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _propertyList
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(0);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-    } //-- org.vamsas.objects.core.RangeAnnotationDescriptor()
-
-
-      //-----------/
-     //- 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 super.getExtends();
-    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() 
-
-    /**
-     * Method getIdentity
-     * 
-     * 
-     * 
-     * @return FieldDescriptor
-     */
-    public org.exolab.castor.mapping.FieldDescriptor getIdentity()
-    {
-        if (identity == null)
-            return super.getIdentity();
-        return identity;
-    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() 
-
-    /**
-     * Method getJavaClass
-     * 
-     * 
-     * 
-     * @return Class
-     */
-    public java.lang.Class getJavaClass()
-    {
-        return org.vamsas.objects.core.RangeAnnotation.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class RangeAnnotationDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class RangeAnnotationDescriptor extends org.vamsas.objects.core.RangeTypeDescriptor {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public RangeAnnotationDescriptor() \r
+     {\r
+        super();\r
+        setExtendsWithoutFlatten(new org.vamsas.objects.core.RangeTypeDescriptor());\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "rangeAnnotation";\r
+        \r
+        //-- set grouping compositor\r
+        setCompositorAsSequence();\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _id\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_id", "id", org.exolab.castor.xml.NodeType.Attribute);\r
+        this.identity = desc;\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getId();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.setId( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new java.lang.String();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _id\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _modifiable\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_modifiable", "modifiable", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                if(!target.hasModifiable())\r
+                    return null;\r
+                return (target.getModifiable() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    // if null, use delete method for optional primitives \r
+                    if (value == null) {\r
+                        target.deleteModifiable();\r
+                        return;\r
+                    }\r
+                    target.setModifiable( ((java.lang.Boolean)value).booleanValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _modifiable\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            BooleanValidator typeValidator = new BooleanValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _group\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_group", "group", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getGroup();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.setGroup( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _group\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _type\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_type", "type", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getType();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.setType( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _type\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+        //-- _label\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_label", "label", org.exolab.castor.xml.NodeType.Element);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getLabel();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.setLabel( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _label\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _description\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_description", "description", org.exolab.castor.xml.NodeType.Element);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getDescription();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.setDescription( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _description\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _status\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_status", "status", org.exolab.castor.xml.NodeType.Element);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getStatus();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.setStatus( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _status\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _annotationElementList\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.AnnotationElement.class, "_annotationElementList", "annotationElement", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getAnnotationElement();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.addAnnotationElement( (org.vamsas.objects.core.AnnotationElement) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new org.vamsas.objects.core.AnnotationElement();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(true);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _annotationElementList\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(0);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _scoreList\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Score.class, "_scoreList", "score", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getScore();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.addScore( (org.vamsas.objects.core.Score) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new org.vamsas.objects.core.Score();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(true);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _scoreList\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(0);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _linkList\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Link.class, "_linkList", "link", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getLink();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.addLink( (org.vamsas.objects.core.Link) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new org.vamsas.objects.core.Link();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(true);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _linkList\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(0);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _propertyList\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Property.class, "_propertyList", "property", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeAnnotation target = (RangeAnnotation) object;\r
+                return target.getProperty();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeAnnotation target = (RangeAnnotation) object;\r
+                    target.addProperty( (org.vamsas.objects.core.Property) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return new org.vamsas.objects.core.Property();\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setMultivalued(true);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _propertyList\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(0);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+    } //-- org.vamsas.objects.core.RangeAnnotationDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return super.getExtends();\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        if (identity == null)\r
+            return super.getIdentity();\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.RangeAnnotation.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 6f9ed6d..070af2a 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML
- * Schema.
- * $Id$
- */
-
-package org.vamsas.objects.core;
-
-  //---------------------------------/
- //- Imported classes and packages -/
-//---------------------------------/
-
-import java.io.Reader;
-import java.io.Serializable;
-import java.io.Writer;
-import java.util.Enumeration;
-import java.util.Vector;
-import org.exolab.castor.xml.Marshaller;
-import org.exolab.castor.xml.Unmarshaller;
-import org.exolab.castor.xml.ValidationException;
-
-/**
- * Specify an ordered set of positions and/or regions on the
- * principle
- *  dimension of some associated vamsas object
- *  
- *  Keeping to jaxb-1.0 specification for the moment - this
- *  choice should become a substitution group when we use
- *  jaxb-2.0 capable bindings
- *  
- * 
- * @version $Revision$ $Date$
- */
-public abstract class RangeType extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Internal choice value storage
-     */
-    private java.lang.Object _choiceValue;
-
-    /**
-     * a position within the associated object's
-     *  coordinate system
-     *  
-     */
-    private java.util.Vector _posList;
-
-    /**
-     * a region from start to end, with flag for
-     *  inclusivity of terminii
-     *  
-     */
-    private java.util.Vector _segList;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public RangeType() 
-     {
-        super();
-        _posList = new Vector();
-        _segList = new Vector();
-    } //-- org.vamsas.objects.core.RangeType()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method addPos
-     * 
-     * 
-     * 
-     * @param vPos
-     */
-    public void addPos(org.vamsas.objects.core.Pos vPos)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _posList.addElement(vPos);
-    } //-- void addPos(org.vamsas.objects.core.Pos) 
-
-    /**
-     * Method addPos
-     * 
-     * 
-     * 
-     * @param index
-     * @param vPos
-     */
-    public void addPos(int index, org.vamsas.objects.core.Pos vPos)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _posList.insertElementAt(vPos, index);
-    } //-- void addPos(int, org.vamsas.objects.core.Pos) 
-
-    /**
-     * Method addSeg
-     * 
-     * 
-     * 
-     * @param vSeg
-     */
-    public void addSeg(org.vamsas.objects.core.Seg vSeg)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _segList.addElement(vSeg);
-    } //-- void addSeg(org.vamsas.objects.core.Seg) 
-
-    /**
-     * Method addSeg
-     * 
-     * 
-     * 
-     * @param index
-     * @param vSeg
-     */
-    public void addSeg(int index, org.vamsas.objects.core.Seg vSeg)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        _segList.insertElementAt(vSeg, index);
-    } //-- void addSeg(int, org.vamsas.objects.core.Seg) 
-
-    /**
-     * Method enumeratePos
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumeratePos()
-    {
-        return _posList.elements();
-    } //-- java.util.Enumeration enumeratePos() 
-
-    /**
-     * Method enumerateSeg
-     * 
-     * 
-     * 
-     * @return Enumeration
-     */
-    public java.util.Enumeration enumerateSeg()
-    {
-        return _segList.elements();
-    } //-- java.util.Enumeration enumerateSeg() 
-
-    /**
-     * 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 RangeType) {
-        
-            RangeType temp = (RangeType)obj;
-            if (this._choiceValue != null) {
-                if (temp._choiceValue == null) return false;
-                else if (!(this._choiceValue.equals(temp._choiceValue))) 
-                    return false;
-            }
-            else if (temp._choiceValue != null)
-                return false;
-            if (this._posList != null) {
-                if (temp._posList == null) return false;
-                else if (!(this._posList.equals(temp._posList))) 
-                    return false;
-            }
-            else if (temp._posList != null)
-                return false;
-            if (this._segList != null) {
-                if (temp._segList == null) return false;
-                else if (!(this._segList.equals(temp._segList))) 
-                    return false;
-            }
-            else if (temp._segList != null)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'choiceValue'. The field
-     * 'choiceValue' has the following description: Internal choice
-     * value storage
-     * 
-     * @return Object
-     * @return the value of field 'choiceValue'.
-     */
-    public java.lang.Object getChoiceValue()
-    {
-        return this._choiceValue;
-    } //-- java.lang.Object getChoiceValue() 
-
-    /**
-     * Method getPos
-     * 
-     * 
-     * 
-     * @param index
-     * @return Pos
-     */
-    public org.vamsas.objects.core.Pos getPos(int index)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _posList.size())) {
-            throw new IndexOutOfBoundsException("getPos: Index value '"+index+"' not in range [0.."+_posList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.Pos) _posList.elementAt(index);
-    } //-- org.vamsas.objects.core.Pos getPos(int) 
-
-    /**
-     * Method getPos
-     * 
-     * 
-     * 
-     * @return Pos
-     */
-    public org.vamsas.objects.core.Pos[] getPos()
-    {
-        int size = _posList.size();
-        org.vamsas.objects.core.Pos[] mArray = new org.vamsas.objects.core.Pos[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.Pos) _posList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.Pos[] getPos() 
-
-    /**
-     * Method getPosCount
-     * 
-     * 
-     * 
-     * @return int
-     */
-    public int getPosCount()
-    {
-        return _posList.size();
-    } //-- int getPosCount() 
-
-    /**
-     * Method getSeg
-     * 
-     * 
-     * 
-     * @param index
-     * @return Seg
-     */
-    public org.vamsas.objects.core.Seg getSeg(int index)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _segList.size())) {
-            throw new IndexOutOfBoundsException("getSeg: Index value '"+index+"' not in range [0.."+_segList.size()+ "]");
-        }
-        
-        return (org.vamsas.objects.core.Seg) _segList.elementAt(index);
-    } //-- org.vamsas.objects.core.Seg getSeg(int) 
-
-    /**
-     * Method getSeg
-     * 
-     * 
-     * 
-     * @return Seg
-     */
-    public org.vamsas.objects.core.Seg[] getSeg()
-    {
-        int size = _segList.size();
-        org.vamsas.objects.core.Seg[] mArray = new org.vamsas.objects.core.Seg[size];
-        for (int index = 0; index < size; index++) {
-            mArray[index] = (org.vamsas.objects.core.Seg) _segList.elementAt(index);
-        }
-        return mArray;
-    } //-- org.vamsas.objects.core.Seg[] getSeg() 
-
-    /**
-     * Method getSegCount
-     * 
-     * 
-     * 
-     * @return int
-     */
-    public int getSegCount()
-    {
-        return _segList.size();
-    } //-- int getSegCount() 
-
-    /**
-     * Method isValid
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean isValid()
-    {
-        try {
-            validate();
-        }
-        catch (org.exolab.castor.xml.ValidationException vex) {
-            return false;
-        }
-        return true;
-    } //-- boolean isValid() 
-
-    /**
-     * Method removeAllPos
-     * 
-     */
-    public void removeAllPos()
-    {
-        _posList.removeAllElements();
-    } //-- void removeAllPos() 
-
-    /**
-     * Method removeAllSeg
-     * 
-     */
-    public void removeAllSeg()
-    {
-        _segList.removeAllElements();
-    } //-- void removeAllSeg() 
-
-    /**
-     * Method removePos
-     * 
-     * 
-     * 
-     * @param index
-     * @return Pos
-     */
-    public org.vamsas.objects.core.Pos removePos(int index)
-    {
-        java.lang.Object obj = _posList.elementAt(index);
-        _posList.removeElementAt(index);
-        return (org.vamsas.objects.core.Pos) obj;
-    } //-- org.vamsas.objects.core.Pos removePos(int) 
-
-    /**
-     * Method removeSeg
-     * 
-     * 
-     * 
-     * @param index
-     * @return Seg
-     */
-    public org.vamsas.objects.core.Seg removeSeg(int index)
-    {
-        java.lang.Object obj = _segList.elementAt(index);
-        _segList.removeElementAt(index);
-        return (org.vamsas.objects.core.Seg) obj;
-    } //-- org.vamsas.objects.core.Seg removeSeg(int) 
-
-    /**
-     * Method setPos
-     * 
-     * 
-     * 
-     * @param index
-     * @param vPos
-     */
-    public void setPos(int index, org.vamsas.objects.core.Pos vPos)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _posList.size())) {
-            throw new IndexOutOfBoundsException("setPos: Index value '"+index+"' not in range [0.."+_posList.size()+ "]");
-        }
-        _posList.setElementAt(vPos, index);
-    } //-- void setPos(int, org.vamsas.objects.core.Pos) 
-
-    /**
-     * Method setPos
-     * 
-     * 
-     * 
-     * @param posArray
-     */
-    public void setPos(org.vamsas.objects.core.Pos[] posArray)
-    {
-        //-- copy array
-        _posList.removeAllElements();
-        for (int i = 0; i < posArray.length; i++) {
-            _posList.addElement(posArray[i]);
-        }
-    } //-- void setPos(org.vamsas.objects.core.Pos) 
-
-    /**
-     * Method setSeg
-     * 
-     * 
-     * 
-     * @param index
-     * @param vSeg
-     */
-    public void setSeg(int index, org.vamsas.objects.core.Seg vSeg)
-        throws java.lang.IndexOutOfBoundsException
-    {
-        //-- check bounds for index
-        if ((index < 0) || (index > _segList.size())) {
-            throw new IndexOutOfBoundsException("setSeg: Index value '"+index+"' not in range [0.."+_segList.size()+ "]");
-        }
-        _segList.setElementAt(vSeg, index);
-    } //-- void setSeg(int, org.vamsas.objects.core.Seg) 
-
-    /**
-     * Method setSeg
-     * 
-     * 
-     * 
-     * @param segArray
-     */
-    public void setSeg(org.vamsas.objects.core.Seg[] segArray)
-    {
-        //-- copy array
-        _segList.removeAllElements();
-        for (int i = 0; i < segArray.length; i++) {
-            _segList.addElement(segArray[i]);
-        }
-    } //-- void setSeg(org.vamsas.objects.core.Seg) 
-
-    /**
-     * 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import java.util.Enumeration;\r
+import java.util.Vector;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+\r
+/**\r
+ * Specify an ordered set of positions and/or regions on the\r
+ * principle\r
+ *  dimension of some associated vamsas object\r
+ *  \r
+ *  Keeping to jaxb-1.0 specification for the moment - this\r
+ *  choice should become a substitution group when we use\r
+ *  jaxb-2.0 capable bindings\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public abstract class RangeType extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Internal choice value storage\r
+     */\r
+    private java.lang.Object _choiceValue;\r
+\r
+    /**\r
+     * a position within the associated object's\r
+     *  coordinate system\r
+     *  \r
+     */\r
+    private java.util.Vector _posList;\r
+\r
+    /**\r
+     * a region from start to end, with flag for\r
+     *  inclusivity of terminii\r
+     *  \r
+     */\r
+    private java.util.Vector _segList;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public RangeType() \r
+     {\r
+        super();\r
+        _posList = new Vector();\r
+        _segList = new Vector();\r
+    } //-- org.vamsas.objects.core.RangeType()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method addPos\r
+     * \r
+     * \r
+     * \r
+     * @param vPos\r
+     */\r
+    public void addPos(org.vamsas.objects.core.Pos vPos)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _posList.addElement(vPos);\r
+    } //-- void addPos(org.vamsas.objects.core.Pos) \r
+\r
+    /**\r
+     * Method addPos\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vPos\r
+     */\r
+    public void addPos(int index, org.vamsas.objects.core.Pos vPos)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _posList.insertElementAt(vPos, index);\r
+    } //-- void addPos(int, org.vamsas.objects.core.Pos) \r
+\r
+    /**\r
+     * Method addSeg\r
+     * \r
+     * \r
+     * \r
+     * @param vSeg\r
+     */\r
+    public void addSeg(org.vamsas.objects.core.Seg vSeg)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _segList.addElement(vSeg);\r
+    } //-- void addSeg(org.vamsas.objects.core.Seg) \r
+\r
+    /**\r
+     * Method addSeg\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vSeg\r
+     */\r
+    public void addSeg(int index, org.vamsas.objects.core.Seg vSeg)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        _segList.insertElementAt(vSeg, index);\r
+    } //-- void addSeg(int, org.vamsas.objects.core.Seg) \r
+\r
+    /**\r
+     * Method enumeratePos\r
+     * \r
+     * \r
+     * \r
+     * @return Enumeration\r
+     */\r
+    public java.util.Enumeration enumeratePos()\r
+    {\r
+        return _posList.elements();\r
+    } //-- java.util.Enumeration enumeratePos() \r
+\r
+    /**\r
+     * Method enumerateSeg\r
+     * \r
+     * \r
+     * \r
+     * @return Enumeration\r
+     */\r
+    public java.util.Enumeration enumerateSeg()\r
+    {\r
+        return _segList.elements();\r
+    } //-- java.util.Enumeration enumerateSeg() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof RangeType) {\r
+        \r
+            RangeType temp = (RangeType)obj;\r
+            if (this._choiceValue != null) {\r
+                if (temp._choiceValue == null) return false;\r
+                else if (!(this._choiceValue.equals(temp._choiceValue))) \r
+                    return false;\r
+            }\r
+            else if (temp._choiceValue != null)\r
+                return false;\r
+            if (this._posList != null) {\r
+                if (temp._posList == null) return false;\r
+                else if (!(this._posList.equals(temp._posList))) \r
+                    return false;\r
+            }\r
+            else if (temp._posList != null)\r
+                return false;\r
+            if (this._segList != null) {\r
+                if (temp._segList == null) return false;\r
+                else if (!(this._segList.equals(temp._segList))) \r
+                    return false;\r
+            }\r
+            else if (temp._segList != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'choiceValue'. The field\r
+     * 'choiceValue' has the following description: Internal choice\r
+     * value storage\r
+     * \r
+     * @return Object\r
+     * @return the value of field 'choiceValue'.\r
+     */\r
+    public java.lang.Object getChoiceValue()\r
+    {\r
+        return this._choiceValue;\r
+    } //-- java.lang.Object getChoiceValue() \r
+\r
+    /**\r
+     * Method getPos\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Pos\r
+     */\r
+    public org.vamsas.objects.core.Pos getPos(int index)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _posList.size())) {\r
+            throw new IndexOutOfBoundsException("getPos: Index value '"+index+"' not in range [0.."+_posList.size()+ "]");\r
+        }\r
+        \r
+        return (org.vamsas.objects.core.Pos) _posList.elementAt(index);\r
+    } //-- org.vamsas.objects.core.Pos getPos(int) \r
+\r
+    /**\r
+     * Method getPos\r
+     * \r
+     * \r
+     * \r
+     * @return Pos\r
+     */\r
+    public org.vamsas.objects.core.Pos[] getPos()\r
+    {\r
+        int size = _posList.size();\r
+        org.vamsas.objects.core.Pos[] mArray = new org.vamsas.objects.core.Pos[size];\r
+        for (int index = 0; index < size; index++) {\r
+            mArray[index] = (org.vamsas.objects.core.Pos) _posList.elementAt(index);\r
+        }\r
+        return mArray;\r
+    } //-- org.vamsas.objects.core.Pos[] getPos() \r
+\r
+    /**\r
+     * Method getPosCount\r
+     * \r
+     * \r
+     * \r
+     * @return int\r
+     */\r
+    public int getPosCount()\r
+    {\r
+        return _posList.size();\r
+    } //-- int getPosCount() \r
+\r
+    /**\r
+     * Method getSeg\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Seg\r
+     */\r
+    public org.vamsas.objects.core.Seg getSeg(int index)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _segList.size())) {\r
+            throw new IndexOutOfBoundsException("getSeg: Index value '"+index+"' not in range [0.."+_segList.size()+ "]");\r
+        }\r
+        \r
+        return (org.vamsas.objects.core.Seg) _segList.elementAt(index);\r
+    } //-- org.vamsas.objects.core.Seg getSeg(int) \r
+\r
+    /**\r
+     * Method getSeg\r
+     * \r
+     * \r
+     * \r
+     * @return Seg\r
+     */\r
+    public org.vamsas.objects.core.Seg[] getSeg()\r
+    {\r
+        int size = _segList.size();\r
+        org.vamsas.objects.core.Seg[] mArray = new org.vamsas.objects.core.Seg[size];\r
+        for (int index = 0; index < size; index++) {\r
+            mArray[index] = (org.vamsas.objects.core.Seg) _segList.elementAt(index);\r
+        }\r
+        return mArray;\r
+    } //-- org.vamsas.objects.core.Seg[] getSeg() \r
+\r
+    /**\r
+     * Method getSegCount\r
+     * \r
+     * \r
+     * \r
+     * @return int\r
+     */\r
+    public int getSegCount()\r
+    {\r
+        return _segList.size();\r
+    } //-- int getSegCount() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method removeAllPos\r
+     * \r
+     */\r
+    public void removeAllPos()\r
+    {\r
+        _posList.removeAllElements();\r
+    } //-- void removeAllPos() \r
+\r
+    /**\r
+     * Method removeAllSeg\r
+     * \r
+     */\r
+    public void removeAllSeg()\r
+    {\r
+        _segList.removeAllElements();\r
+    } //-- void removeAllSeg() \r
+\r
+    /**\r
+     * Method removePos\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Pos\r
+     */\r
+    public org.vamsas.objects.core.Pos removePos(int index)\r
+    {\r
+        java.lang.Object obj = _posList.elementAt(index);\r
+        _posList.removeElementAt(index);\r
+        return (org.vamsas.objects.core.Pos) obj;\r
+    } //-- org.vamsas.objects.core.Pos removePos(int) \r
+\r
+    /**\r
+     * Method removeSeg\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @return Seg\r
+     */\r
+    public org.vamsas.objects.core.Seg removeSeg(int index)\r
+    {\r
+        java.lang.Object obj = _segList.elementAt(index);\r
+        _segList.removeElementAt(index);\r
+        return (org.vamsas.objects.core.Seg) obj;\r
+    } //-- org.vamsas.objects.core.Seg removeSeg(int) \r
+\r
+    /**\r
+     * Method setPos\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vPos\r
+     */\r
+    public void setPos(int index, org.vamsas.objects.core.Pos vPos)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _posList.size())) {\r
+            throw new IndexOutOfBoundsException("setPos: Index value '"+index+"' not in range [0.."+_posList.size()+ "]");\r
+        }\r
+        _posList.setElementAt(vPos, index);\r
+    } //-- void setPos(int, org.vamsas.objects.core.Pos) \r
+\r
+    /**\r
+     * Method setPos\r
+     * \r
+     * \r
+     * \r
+     * @param posArray\r
+     */\r
+    public void setPos(org.vamsas.objects.core.Pos[] posArray)\r
+    {\r
+        //-- copy array\r
+        _posList.removeAllElements();\r
+        for (int i = 0; i < posArray.length; i++) {\r
+            _posList.addElement(posArray[i]);\r
+        }\r
+    } //-- void setPos(org.vamsas.objects.core.Pos) \r
+\r
+    /**\r
+     * Method setSeg\r
+     * \r
+     * \r
+     * \r
+     * @param index\r
+     * @param vSeg\r
+     */\r
+    public void setSeg(int index, org.vamsas.objects.core.Seg vSeg)\r
+        throws java.lang.IndexOutOfBoundsException\r
+    {\r
+        //-- check bounds for index\r
+        if ((index < 0) || (index > _segList.size())) {\r
+            throw new IndexOutOfBoundsException("setSeg: Index value '"+index+"' not in range [0.."+_segList.size()+ "]");\r
+        }\r
+        _segList.setElementAt(vSeg, index);\r
+    } //-- void setSeg(int, org.vamsas.objects.core.Seg) \r
+\r
+    /**\r
+     * Method setSeg\r
+     * \r
+     * \r
+     * \r
+     * @param segArray\r
+     */\r
+    public void setSeg(org.vamsas.objects.core.Seg[] segArray)\r
+    {\r
+        //-- copy array\r
+        _segList.removeAllElements();\r
+        for (int i = 0; i < segArray.length; i++) {\r
+            _segList.addElement(segArray[i]);\r
+        }\r
+    } //-- void setSeg(org.vamsas.objects.core.Seg) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index dc737dc..20f0de9 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 RangeTypeDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class RangeTypeDescriptor 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 RangeTypeDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "rangeType";
-        
-        //-- 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
-        
-        //-- _posList
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Pos.class, "_posList", "pos", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeType target = (RangeType) object;
-                return target.getPos();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeType target = (RangeType) object;
-                    target.addPos( (org.vamsas.objects.core.Pos) 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(true);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _posList
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-        //-- _segList
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Seg.class, "_segList", "seg", org.exolab.castor.xml.NodeType.Element);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                RangeType target = (RangeType) object;
-                return target.getSeg();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    RangeType target = (RangeType) object;
-                    target.addSeg( (org.vamsas.objects.core.Seg) 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(true);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _segList
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-        }
-        desc.setValidator(fieldValidator);
-    } //-- org.vamsas.objects.core.RangeTypeDescriptor()
-
-
-      //-----------/
-     //- 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.RangeType.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class RangeTypeDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class RangeTypeDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public RangeTypeDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "rangeType";\r
+        \r
+        //-- set grouping compositor\r
+        setCompositorAsChoice();\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- initialize element descriptors\r
+        \r
+        //-- _posList\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Pos.class, "_posList", "pos", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeType target = (RangeType) object;\r
+                return target.getPos();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeType target = (RangeType) object;\r
+                    target.addPos( (org.vamsas.objects.core.Pos) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(true);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _posList\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _segList\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Seg.class, "_segList", "seg", org.exolab.castor.xml.NodeType.Element);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                RangeType target = (RangeType) object;\r
+                return target.getSeg();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    RangeType target = (RangeType) object;\r
+                    target.addSeg( (org.vamsas.objects.core.Seg) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setNameSpaceURI("http://www.vamsas.org");\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(true);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _segList\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+    } //-- org.vamsas.objects.core.RangeTypeDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.RangeType.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index 121fe2c..bb4c568 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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;
-
-/**
- * Ordered set of optionally named float
- *  values for the whole annotation
- *  
- * 
- * @version $Revision$ $Date$
- */
-public class Score extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * internal content storage
-     */
-    private float _content;
-
-    /**
-     * keeps track of state for field: _content
-     */
-    private boolean _has_content;
-
-    /**
-     * Field _name
-     */
-    private java.lang.String _name = "score";
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Score() 
-     {
-        super();
-        setName("score");
-    } //-- org.vamsas.objects.core.Score()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteContent
-     * 
-     */
-    public void deleteContent()
-    {
-        this._has_content= false;
-    } //-- void deleteContent() 
-
-    /**
-     * 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 Score) {
-        
-            Score temp = (Score)obj;
-            if (this._content != temp._content)
-                return false;
-            if (this._has_content != temp._has_content)
-                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;
-            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 float
-     * @return the value of field 'content'.
-     */
-    public float getContent()
-    {
-        return this._content;
-    } //-- float 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() 
-
-    /**
-     * Method hasContent
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasContent()
-    {
-        return this._has_content;
-    } //-- boolean hasContent() 
-
-    /**
-     * 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(float content)
-    {
-        this._content = content;
-        this._has_content = true;
-    } //-- void setContent(float) 
-
-    /**
-     * 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) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return Score
-     */
-    public static org.vamsas.objects.core.Score unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Score) Unmarshaller.unmarshal(org.vamsas.objects.core.Score.class, reader);
-    } //-- org.vamsas.objects.core.Score 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * Ordered set of optionally named float\r
+ *  values for the whole annotation\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Score extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * internal content storage\r
+     */\r
+    private float _content;\r
+\r
+    /**\r
+     * keeps track of state for field: _content\r
+     */\r
+    private boolean _has_content;\r
+\r
+    /**\r
+     * Field _name\r
+     */\r
+    private java.lang.String _name = "score";\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Score() \r
+     {\r
+        super();\r
+        setName("score");\r
+    } //-- org.vamsas.objects.core.Score()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteContent\r
+     * \r
+     */\r
+    public void deleteContent()\r
+    {\r
+        this._has_content= false;\r
+    } //-- void deleteContent() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Score) {\r
+        \r
+            Score temp = (Score)obj;\r
+            if (this._content != temp._content)\r
+                return false;\r
+            if (this._has_content != temp._has_content)\r
+                return false;\r
+            if (this._name != null) {\r
+                if (temp._name == null) return false;\r
+                else if (!(this._name.equals(temp._name))) \r
+                    return false;\r
+            }\r
+            else if (temp._name != null)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'content'. The field 'content'\r
+     * has the following description: internal content storage\r
+     * \r
+     * @return float\r
+     * @return the value of field 'content'.\r
+     */\r
+    public float getContent()\r
+    {\r
+        return this._content;\r
+    } //-- float getContent() \r
+\r
+    /**\r
+     * Returns the value of field 'name'.\r
+     * \r
+     * @return String\r
+     * @return the value of field 'name'.\r
+     */\r
+    public java.lang.String getName()\r
+    {\r
+        return this._name;\r
+    } //-- java.lang.String getName() \r
+\r
+    /**\r
+     * Method hasContent\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasContent()\r
+    {\r
+        return this._has_content;\r
+    } //-- boolean hasContent() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'content'. The field 'content' has\r
+     * the following description: internal content storage\r
+     * \r
+     * @param content the value of field 'content'.\r
+     */\r
+    public void setContent(float content)\r
+    {\r
+        this._content = content;\r
+        this._has_content = true;\r
+    } //-- void setContent(float) \r
+\r
+    /**\r
+     * Sets the value of field 'name'.\r
+     * \r
+     * @param name the value of field 'name'.\r
+     */\r
+    public void setName(java.lang.String name)\r
+    {\r
+        this._name = name;\r
+    } //-- void setName(java.lang.String) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Score\r
+     */\r
+    public static org.vamsas.objects.core.Score unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Score) Unmarshaller.unmarshal(org.vamsas.objects.core.Score.class, reader);\r
+    } //-- org.vamsas.objects.core.Score unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 69dff86..c9c1eda 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 ScoreDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class ScoreDescriptor 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 ScoreDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "score";
-        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;
-        org.exolab.castor.mapping.FieldHandler             handler        = null;
-        org.exolab.castor.xml.FieldValidator               fieldValidator = null;
-        //-- _content
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(float.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Score target = (Score) object;
-                if(!target.hasContent())
-                    return null;
-                return new java.lang.Float(target.getContent());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Score target = (Score) object;
-                    // if null, use delete method for optional primitives 
-                    if (value == null) {
-                        target.deleteContent();
-                        return;
-                    }
-                    target.setContent( ((java.lang.Float)value).floatValue());
-                }
-                catch (java.lang.Exception ex) {
-                    throw new IllegalStateException(ex.toString());
-                }
-            }
-            public java.lang.Object newInstance( java.lang.Object parent ) {
-                return null;
-            }
-        };
-        desc.setHandler(handler);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _content
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            FloatValidator typeValidator = new FloatValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize attribute descriptors
-        
-        //-- _name
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);
-        desc.setImmutable(true);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Score target = (Score) object;
-                return target.getName();
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Score target = (Score) object;
-                    target.setName( (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.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _name
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        { //-- local scope
-            StringValidator typeValidator = new StringValidator();
-            typeValidator.setWhiteSpace("preserve");
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.ScoreDescriptor()
-
-
-      //-----------/
-     //- 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.Score.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class ScoreDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class ScoreDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public ScoreDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "score";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- _content\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(float.class, "_content", "PCDATA", org.exolab.castor.xml.NodeType.Text);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Score target = (Score) object;\r
+                if(!target.hasContent())\r
+                    return null;\r
+                return new java.lang.Float(target.getContent());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Score target = (Score) object;\r
+                    // if null, use delete method for optional primitives \r
+                    if (value == null) {\r
+                        target.deleteContent();\r
+                        return;\r
+                    }\r
+                    target.setContent( ((java.lang.Float)value).floatValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _content\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            FloatValidator typeValidator = new FloatValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _name\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Attribute);\r
+        desc.setImmutable(true);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Score target = (Score) object;\r
+                return target.getName();\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Score target = (Score) object;\r
+                    target.setName( (java.lang.String) value);\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _name\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+            StringValidator typeValidator = new StringValidator();\r
+            typeValidator.setWhiteSpace("preserve");\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.ScoreDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Score.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
index c9de39f..980fc8e 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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;
-
-/**
- * a region from start to end, with flag for
- *  inclusivity of terminii
- *  
- * 
- * @version $Revision$ $Date$
- */
-public class Seg extends org.vamsas.client.Vobject 
-implements java.io.Serializable
-{
-
-
-      //--------------------------/
-     //- Class/Member Variables -/
-    //--------------------------/
-
-    /**
-     * Field _start
-     */
-    private int _start;
-
-    /**
-     * keeps track of state for field: _start
-     */
-    private boolean _has_start;
-
-    /**
-     * Field _end
-     */
-    private int _end;
-
-    /**
-     * keeps track of state for field: _end
-     */
-    private boolean _has_end;
-
-    /**
-     * when false, a consecutive range like
-     *  'start=1, end=2' means the region lying
-     *  after position 1 and before position 2
-     *  
-     */
-    private boolean _inclusive;
-
-    /**
-     * keeps track of state for field: _inclusive
-     */
-    private boolean _has_inclusive;
-
-
-      //----------------/
-     //- Constructors -/
-    //----------------/
-
-    public Seg() 
-     {
-        super();
-    } //-- org.vamsas.objects.core.Seg()
-
-
-      //-----------/
-     //- Methods -/
-    //-----------/
-
-    /**
-     * Method deleteEnd
-     * 
-     */
-    public void deleteEnd()
-    {
-        this._has_end= false;
-    } //-- void deleteEnd() 
-
-    /**
-     * Method deleteInclusive
-     * 
-     */
-    public void deleteInclusive()
-    {
-        this._has_inclusive= false;
-    } //-- void deleteInclusive() 
-
-    /**
-     * Method deleteStart
-     * 
-     */
-    public void deleteStart()
-    {
-        this._has_start= false;
-    } //-- void deleteStart() 
-
-    /**
-     * 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 Seg) {
-        
-            Seg temp = (Seg)obj;
-            if (this._start != temp._start)
-                return false;
-            if (this._has_start != temp._has_start)
-                return false;
-            if (this._end != temp._end)
-                return false;
-            if (this._has_end != temp._has_end)
-                return false;
-            if (this._inclusive != temp._inclusive)
-                return false;
-            if (this._has_inclusive != temp._has_inclusive)
-                return false;
-            return true;
-        }
-        return false;
-    } //-- boolean equals(java.lang.Object) 
-
-    /**
-     * Returns the value of field 'end'.
-     * 
-     * @return int
-     * @return the value of field 'end'.
-     */
-    public int getEnd()
-    {
-        return this._end;
-    } //-- int getEnd() 
-
-    /**
-     * Returns the value of field 'inclusive'. The field
-     * 'inclusive' has the following description: when false, a
-     * consecutive range like
-     *  'start=1, end=2' means the region lying
-     *  after position 1 and before position 2
-     *  
-     * 
-     * @return boolean
-     * @return the value of field 'inclusive'.
-     */
-    public boolean getInclusive()
-    {
-        return this._inclusive;
-    } //-- boolean getInclusive() 
-
-    /**
-     * Returns the value of field 'start'.
-     * 
-     * @return int
-     * @return the value of field 'start'.
-     */
-    public int getStart()
-    {
-        return this._start;
-    } //-- int getStart() 
-
-    /**
-     * Method hasEnd
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasEnd()
-    {
-        return this._has_end;
-    } //-- boolean hasEnd() 
-
-    /**
-     * Method hasInclusive
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasInclusive()
-    {
-        return this._has_inclusive;
-    } //-- boolean hasInclusive() 
-
-    /**
-     * Method hasStart
-     * 
-     * 
-     * 
-     * @return boolean
-     */
-    public boolean hasStart()
-    {
-        return this._has_start;
-    } //-- boolean hasStart() 
-
-    /**
-     * 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 'end'.
-     * 
-     * @param end the value of field 'end'.
-     */
-    public void setEnd(int end)
-    {
-        this._end = end;
-        this._has_end = true;
-    } //-- void setEnd(int) 
-
-    /**
-     * Sets the value of field 'inclusive'. The field 'inclusive'
-     * has the following description: when false, a consecutive
-     * range like
-     *  'start=1, end=2' means the region lying
-     *  after position 1 and before position 2
-     *  
-     * 
-     * @param inclusive the value of field 'inclusive'.
-     */
-    public void setInclusive(boolean inclusive)
-    {
-        this._inclusive = inclusive;
-        this._has_inclusive = true;
-    } //-- void setInclusive(boolean) 
-
-    /**
-     * Sets the value of field 'start'.
-     * 
-     * @param start the value of field 'start'.
-     */
-    public void setStart(int start)
-    {
-        this._start = start;
-        this._has_start = true;
-    } //-- void setStart(int) 
-
-    /**
-     * Method unmarshal
-     * 
-     * 
-     * 
-     * @param reader
-     * @return Seg
-     */
-    public static org.vamsas.objects.core.Seg unmarshal(java.io.Reader reader)
-        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException
-    {
-        return (org.vamsas.objects.core.Seg) Unmarshaller.unmarshal(org.vamsas.objects.core.Seg.class, reader);
-    } //-- org.vamsas.objects.core.Seg 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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import java.io.IOException;\r
+import java.io.Reader;\r
+import java.io.Serializable;\r
+import java.io.Writer;\r
+import org.exolab.castor.xml.MarshalException;\r
+import org.exolab.castor.xml.Marshaller;\r
+import org.exolab.castor.xml.Unmarshaller;\r
+import org.exolab.castor.xml.ValidationException;\r
+import org.xml.sax.ContentHandler;\r
+\r
+/**\r
+ * a region from start to end, with flag for\r
+ *  inclusivity of terminii\r
+ *  \r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class Seg extends org.vamsas.client.Vobject \r
+implements java.io.Serializable\r
+{\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field _start\r
+     */\r
+    private int _start;\r
+\r
+    /**\r
+     * keeps track of state for field: _start\r
+     */\r
+    private boolean _has_start;\r
+\r
+    /**\r
+     * Field _end\r
+     */\r
+    private int _end;\r
+\r
+    /**\r
+     * keeps track of state for field: _end\r
+     */\r
+    private boolean _has_end;\r
+\r
+    /**\r
+     * when false, a consecutive range like\r
+     *  'start=1, end=2' means the region lying\r
+     *  after position 1 and before position 2\r
+     *  \r
+     */\r
+    private boolean _inclusive;\r
+\r
+    /**\r
+     * keeps track of state for field: _inclusive\r
+     */\r
+    private boolean _has_inclusive;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public Seg() \r
+     {\r
+        super();\r
+    } //-- org.vamsas.objects.core.Seg()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method deleteEnd\r
+     * \r
+     */\r
+    public void deleteEnd()\r
+    {\r
+        this._has_end= false;\r
+    } //-- void deleteEnd() \r
+\r
+    /**\r
+     * Method deleteInclusive\r
+     * \r
+     */\r
+    public void deleteInclusive()\r
+    {\r
+        this._has_inclusive= false;\r
+    } //-- void deleteInclusive() \r
+\r
+    /**\r
+     * Method deleteStart\r
+     * \r
+     */\r
+    public void deleteStart()\r
+    {\r
+        this._has_start= false;\r
+    } //-- void deleteStart() \r
+\r
+    /**\r
+     * Note: hashCode() has not been overriden\r
+     * \r
+     * @param obj\r
+     * @return boolean\r
+     */\r
+    public boolean equals(java.lang.Object obj)\r
+    {\r
+        if ( this == obj )\r
+            return true;\r
+        \r
+        if (super.equals(obj)==false)\r
+            return false;\r
+        \r
+        if (obj instanceof Seg) {\r
+        \r
+            Seg temp = (Seg)obj;\r
+            if (this._start != temp._start)\r
+                return false;\r
+            if (this._has_start != temp._has_start)\r
+                return false;\r
+            if (this._end != temp._end)\r
+                return false;\r
+            if (this._has_end != temp._has_end)\r
+                return false;\r
+            if (this._inclusive != temp._inclusive)\r
+                return false;\r
+            if (this._has_inclusive != temp._has_inclusive)\r
+                return false;\r
+            return true;\r
+        }\r
+        return false;\r
+    } //-- boolean equals(java.lang.Object) \r
+\r
+    /**\r
+     * Returns the value of field 'end'.\r
+     * \r
+     * @return int\r
+     * @return the value of field 'end'.\r
+     */\r
+    public int getEnd()\r
+    {\r
+        return this._end;\r
+    } //-- int getEnd() \r
+\r
+    /**\r
+     * Returns the value of field 'inclusive'. The field\r
+     * 'inclusive' has the following description: when false, a\r
+     * consecutive range like\r
+     *  'start=1, end=2' means the region lying\r
+     *  after position 1 and before position 2\r
+     *  \r
+     * \r
+     * @return boolean\r
+     * @return the value of field 'inclusive'.\r
+     */\r
+    public boolean getInclusive()\r
+    {\r
+        return this._inclusive;\r
+    } //-- boolean getInclusive() \r
+\r
+    /**\r
+     * Returns the value of field 'start'.\r
+     * \r
+     * @return int\r
+     * @return the value of field 'start'.\r
+     */\r
+    public int getStart()\r
+    {\r
+        return this._start;\r
+    } //-- int getStart() \r
+\r
+    /**\r
+     * Method hasEnd\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasEnd()\r
+    {\r
+        return this._has_end;\r
+    } //-- boolean hasEnd() \r
+\r
+    /**\r
+     * Method hasInclusive\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasInclusive()\r
+    {\r
+        return this._has_inclusive;\r
+    } //-- boolean hasInclusive() \r
+\r
+    /**\r
+     * Method hasStart\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean hasStart()\r
+    {\r
+        return this._has_start;\r
+    } //-- boolean hasStart() \r
+\r
+    /**\r
+     * Method isValid\r
+     * \r
+     * \r
+     * \r
+     * @return boolean\r
+     */\r
+    public boolean isValid()\r
+    {\r
+        try {\r
+            validate();\r
+        }\r
+        catch (org.exolab.castor.xml.ValidationException vex) {\r
+            return false;\r
+        }\r
+        return true;\r
+    } //-- boolean isValid() \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param out\r
+     */\r
+    public void marshal(java.io.Writer out)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, out);\r
+    } //-- void marshal(java.io.Writer) \r
+\r
+    /**\r
+     * Method marshal\r
+     * \r
+     * \r
+     * \r
+     * @param handler\r
+     */\r
+    public void marshal(org.xml.sax.ContentHandler handler)\r
+        throws java.io.IOException, org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        \r
+        Marshaller.marshal(this, handler);\r
+    } //-- void marshal(org.xml.sax.ContentHandler) \r
+\r
+    /**\r
+     * Sets the value of field 'end'.\r
+     * \r
+     * @param end the value of field 'end'.\r
+     */\r
+    public void setEnd(int end)\r
+    {\r
+        this._end = end;\r
+        this._has_end = true;\r
+    } //-- void setEnd(int) \r
+\r
+    /**\r
+     * Sets the value of field 'inclusive'. The field 'inclusive'\r
+     * has the following description: when false, a consecutive\r
+     * range like\r
+     *  'start=1, end=2' means the region lying\r
+     *  after position 1 and before position 2\r
+     *  \r
+     * \r
+     * @param inclusive the value of field 'inclusive'.\r
+     */\r
+    public void setInclusive(boolean inclusive)\r
+    {\r
+        this._inclusive = inclusive;\r
+        this._has_inclusive = true;\r
+    } //-- void setInclusive(boolean) \r
+\r
+    /**\r
+     * Sets the value of field 'start'.\r
+     * \r
+     * @param start the value of field 'start'.\r
+     */\r
+    public void setStart(int start)\r
+    {\r
+        this._start = start;\r
+        this._has_start = true;\r
+    } //-- void setStart(int) \r
+\r
+    /**\r
+     * Method unmarshal\r
+     * \r
+     * \r
+     * \r
+     * @param reader\r
+     * @return Seg\r
+     */\r
+    public static org.vamsas.objects.core.Seg unmarshal(java.io.Reader reader)\r
+        throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
+    {\r
+        return (org.vamsas.objects.core.Seg) Unmarshaller.unmarshal(org.vamsas.objects.core.Seg.class, reader);\r
+    } //-- org.vamsas.objects.core.Seg unmarshal(java.io.Reader) \r
+\r
+    /**\r
+     * Method validate\r
+     * \r
+     */\r
+    public void validate()\r
+        throws org.exolab.castor.xml.ValidationException\r
+    {\r
+        org.exolab.castor.xml.Validator validator = new org.exolab.castor.xml.Validator();\r
+        validator.validate(this);\r
+    } //-- void validate() \r
+\r
+}\r
index 055b2f6..41a423c 100644 (file)
-/*
- * This class was automatically generated with 
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, 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 SegDescriptor.
- * 
- * @version $Revision$ $Date$
- */
-public class SegDescriptor 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 SegDescriptor() 
-     {
-        super();
-        nsURI = "http://www.vamsas.org";
-        xmlName = "seg";
-        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
-        
-        //-- _start
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_start", "start", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Seg target = (Seg) object;
-                if(!target.hasStart())
-                    return null;
-                return new java.lang.Integer(target.getStart());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Seg target = (Seg) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setStart( ((java.lang.Integer)value).intValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _start
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            IntegerValidator typeValidator= new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _end
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Seg target = (Seg) object;
-                if(!target.hasEnd())
-                    return null;
-                return new java.lang.Integer(target.getEnd());
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Seg target = (Seg) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setEnd( ((java.lang.Integer)value).intValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _end
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            IntegerValidator typeValidator= new IntegerValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- _inclusive
-        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_inclusive", "inclusive", org.exolab.castor.xml.NodeType.Attribute);
-        handler = new org.exolab.castor.xml.XMLFieldHandler() {
-            public java.lang.Object getValue( java.lang.Object object ) 
-                throws IllegalStateException
-            {
-                Seg target = (Seg) object;
-                if(!target.hasInclusive())
-                    return null;
-                return (target.getInclusive() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);
-            }
-            public void setValue( java.lang.Object object, java.lang.Object value) 
-                throws IllegalStateException, IllegalArgumentException
-            {
-                try {
-                    Seg target = (Seg) object;
-                    // ignore null values for non optional primitives
-                    if (value == null) return;
-                    
-                    target.setInclusive( ((java.lang.Boolean)value).booleanValue());
-                }
-                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.setRequired(true);
-        desc.setMultivalued(false);
-        addFieldDescriptor(desc);
-        
-        //-- validation code for: _inclusive
-        fieldValidator = new org.exolab.castor.xml.FieldValidator();
-        fieldValidator.setMinOccurs(1);
-        { //-- local scope
-            BooleanValidator typeValidator = new BooleanValidator();
-            fieldValidator.setValidator(typeValidator);
-        }
-        desc.setValidator(fieldValidator);
-        //-- initialize element descriptors
-        
-    } //-- org.vamsas.objects.core.SegDescriptor()
-
-
-      //-----------/
-     //- 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.Seg.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() 
-
-}
+/*\r
+ * This class was automatically generated with \r
+ * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * Schema.\r
+ * $Id$\r
+ */\r
+\r
+package org.vamsas.objects.core;\r
+\r
+  //---------------------------------/\r
+ //- Imported classes and packages -/\r
+//---------------------------------/\r
+\r
+import org.exolab.castor.mapping.AccessMode;\r
+import org.exolab.castor.xml.TypeValidator;\r
+import org.exolab.castor.xml.XMLFieldDescriptor;\r
+import org.exolab.castor.xml.validators.*;\r
+\r
+/**\r
+ * Class SegDescriptor.\r
+ * \r
+ * @version $Revision$ $Date$\r
+ */\r
+public class SegDescriptor extends org.exolab.castor.xml.util.XMLClassDescriptorImpl {\r
+\r
+\r
+      //--------------------------/\r
+     //- Class/Member Variables -/\r
+    //--------------------------/\r
+\r
+    /**\r
+     * Field nsPrefix\r
+     */\r
+    private java.lang.String nsPrefix;\r
+\r
+    /**\r
+     * Field nsURI\r
+     */\r
+    private java.lang.String nsURI;\r
+\r
+    /**\r
+     * Field xmlName\r
+     */\r
+    private java.lang.String xmlName;\r
+\r
+    /**\r
+     * Field identity\r
+     */\r
+    private org.exolab.castor.xml.XMLFieldDescriptor identity;\r
+\r
+\r
+      //----------------/\r
+     //- Constructors -/\r
+    //----------------/\r
+\r
+    public SegDescriptor() \r
+     {\r
+        super();\r
+        nsURI = "http://www.vamsas.org";\r
+        xmlName = "seg";\r
+        org.exolab.castor.xml.util.XMLFieldDescriptorImpl  desc           = null;\r
+        org.exolab.castor.mapping.FieldHandler             handler        = null;\r
+        org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
+        //-- initialize attribute descriptors\r
+        \r
+        //-- _start\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_start", "start", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Seg target = (Seg) object;\r
+                if(!target.hasStart())\r
+                    return null;\r
+                return new java.lang.Integer(target.getStart());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Seg target = (Seg) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setStart( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _start\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            IntegerValidator typeValidator= new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _end\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Seg target = (Seg) object;\r
+                if(!target.hasEnd())\r
+                    return null;\r
+                return new java.lang.Integer(target.getEnd());\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Seg target = (Seg) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setEnd( ((java.lang.Integer)value).intValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _end\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            IntegerValidator typeValidator= new IntegerValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- _inclusive\r
+        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_inclusive", "inclusive", org.exolab.castor.xml.NodeType.Attribute);\r
+        handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+            public java.lang.Object getValue( java.lang.Object object ) \r
+                throws IllegalStateException\r
+            {\r
+                Seg target = (Seg) object;\r
+                if(!target.hasInclusive())\r
+                    return null;\r
+                return (target.getInclusive() ? java.lang.Boolean.TRUE : java.lang.Boolean.FALSE);\r
+            }\r
+            public void setValue( java.lang.Object object, java.lang.Object value) \r
+                throws IllegalStateException, IllegalArgumentException\r
+            {\r
+                try {\r
+                    Seg target = (Seg) object;\r
+                    // ignore null values for non optional primitives\r
+                    if (value == null) return;\r
+                    \r
+                    target.setInclusive( ((java.lang.Boolean)value).booleanValue());\r
+                }\r
+                catch (java.lang.Exception ex) {\r
+                    throw new IllegalStateException(ex.toString());\r
+                }\r
+            }\r
+            public java.lang.Object newInstance( java.lang.Object parent ) {\r
+                return null;\r
+            }\r
+        };\r
+        desc.setHandler(handler);\r
+        desc.setRequired(true);\r
+        desc.setMultivalued(false);\r
+        addFieldDescriptor(desc);\r
+        \r
+        //-- validation code for: _inclusive\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        fieldValidator.setMinOccurs(1);\r
+        { //-- local scope\r
+            BooleanValidator typeValidator = new BooleanValidator();\r
+            fieldValidator.setValidator(typeValidator);\r
+        }\r
+        desc.setValidator(fieldValidator);\r
+        //-- initialize element descriptors\r
+        \r
+    } //-- org.vamsas.objects.core.SegDescriptor()\r
+\r
+\r
+      //-----------/\r
+     //- Methods -/\r
+    //-----------/\r
+\r
+    /**\r
+     * Method getAccessMode\r
+     * \r
+     * \r
+     * \r
+     * @return AccessMode\r
+     */\r
+    public org.exolab.castor.mapping.AccessMode getAccessMode()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.AccessMode getAccessMode() \r
+\r
+    /**\r
+     * Method getExtends\r
+     * \r
+     * \r
+     * \r
+     * @return ClassDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.ClassDescriptor getExtends()\r
+    {\r
+        return null;\r
+    } //-- org.exolab.castor.mapping.ClassDescriptor getExtends() \r
+\r
+    /**\r
+     * Method getIdentity\r
+     * \r
+     * \r
+     * \r
+     * @return FieldDescriptor\r
+     */\r
+    public org.exolab.castor.mapping.FieldDescriptor getIdentity()\r
+    {\r
+        return identity;\r
+    } //-- org.exolab.castor.mapping.FieldDescriptor getIdentity() \r
+\r
+    /**\r
+     * Method getJavaClass\r
+     * \r
+     * \r
+     * \r
+     * @return Class\r
+     */\r
+    public java.lang.Class getJavaClass()\r
+    {\r
+        return org.vamsas.objects.core.Seg.class;\r
+    } //-- java.lang.Class getJavaClass() \r
+\r
+    /**\r
+     * Method getNameSpacePrefix\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpacePrefix()\r
+    {\r
+        return nsPrefix;\r
+    } //-- java.lang.String getNameSpacePrefix() \r
+\r
+    /**\r
+     * Method getNameSpaceURI\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getNameSpaceURI()\r
+    {\r
+        return nsURI;\r
+    } //-- java.lang.String getNameSpaceURI() \r
+\r
+    /**\r
+     * Method getValidator\r
+     * \r
+     * \r
+     * \r
+     * @return TypeValidator\r
+     */\r
+    public org.exolab.castor.xml.TypeValidator getValidator()\r
+    {\r
+        return this;\r
+    } //-- org.exolab.castor.xml.TypeValidator getValidator() \r
+\r
+    /**\r
+     * Method getXMLName\r
+     * \r
+     * \r
+     * \r
+     * @return String\r
+     */\r
+    public java.lang.String getXMLName()\r
+    {\r
+        return xmlName;\r
+    } //-- java.lang.String getXMLName() \r
+\r
+}\r
diff --git a/test/archivestore.zip b/test/archivestore.zip
new file mode 100644 (file)
index 0000000..f4b2ba5
Binary files /dev/null and b/test/archivestore.zip differ
index f46263a..bf0e72e 100755 (executable)
Binary files a/test/vamsas.zip and b/test/vamsas.zip differ