/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Alignment() \r
- {\r
+ public Alignment() {\r
super();\r
_alignmentAnnotationsList = new Vector();\r
_treeList = new Vector();\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _alignmentAnnotationsList.size())) {\r
- throw new IndexOutOfBoundsException("getAlignmentAnnotations: Index value '"+index+"' not in range [0.."+_alignmentAnnotationsList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.AlignmentAnnotations) _alignmentAnnotationsList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _alignmentSequenceList.size())) {\r
- throw new IndexOutOfBoundsException("getAlignmentSequence: Index value '"+index+"' not in range [0.."+_alignmentSequenceList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.AlignmentSequence) _alignmentSequenceList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _treeList.size())) {\r
- throw new IndexOutOfBoundsException("getTree: Index value '"+index+"' not in range [0.."+_treeList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Tree) _treeList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _alignmentAnnotationsList.size())) {\r
- throw new IndexOutOfBoundsException("setAlignmentAnnotations: Index value '"+index+"' not in range [0.."+_alignmentAnnotationsList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_alignmentAnnotationsList.setElementAt(vAlignmentAnnotations, index);\r
} //-- void setAlignmentAnnotations(int, org.vamsas.objects.core.AlignmentAnnotations) \r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _alignmentSequenceList.size())) {\r
- throw new IndexOutOfBoundsException("setAlignmentSequence: Index value '"+index+"' not in range [0.."+_alignmentSequenceList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_alignmentSequenceList.setElementAt(vAlignmentSequence, index);\r
} //-- void setAlignmentSequence(int, org.vamsas.objects.core.AlignmentSequence) \r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _treeList.size())) {\r
- throw new IndexOutOfBoundsException("setTree: Index value '"+index+"' not in range [0.."+_treeList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_treeList.setElementAt(vTree, index);\r
} //-- void setTree(int, org.vamsas.objects.core.Tree) \r
* \r
* \r
* @param reader\r
- * @return Alignment\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.Alignment unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Alignment) Unmarshaller.unmarshal(org.vamsas.objects.core.Alignment.class, reader);\r
- } //-- org.vamsas.objects.core.Alignment unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AlignmentAnnotations() \r
- {\r
+ public AlignmentAnnotations() {\r
super();\r
_annotationElementList = new Vector();\r
} //-- org.vamsas.objects.core.AlignmentAnnotations()\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
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.AnnotationElement) _annotationElementList.elementAt(index);\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
+ throw new IndexOutOfBoundsException();\r
}\r
_annotationElementList.setElementAt(vAnnotationElement, index);\r
} //-- void setAnnotationElement(int, org.vamsas.objects.core.AnnotationElement) \r
* \r
* \r
* @param reader\r
- * @return AlignmentAnnotations\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.AlignmentAnnotations unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.AlignmentAnnotations) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentAnnotations.class, reader);\r
- } //-- org.vamsas.objects.core.AlignmentAnnotations unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AlignmentAnnotationsDescriptor() \r
- {\r
+ public AlignmentAnnotationsDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "AlignmentAnnotations";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _graph\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.AnnotationElement();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
desc.setValidator(fieldValidator);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Provenance();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AlignmentDescriptor() \r
- {\r
+ public AlignmentDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "Alignment";\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.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
//-- _gapChar\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_gapChar", "gapChar", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _gapChar\r
desc.setValidator(fieldValidator);\r
//-- _aligned\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Boolean.TYPE, "_aligned", "aligned", org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _aligned\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
\r
//-- _alignmentAnnotationsList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.AlignmentAnnotations.class, "_alignmentAnnotationsList", "AlignmentAnnotations", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.AlignmentAnnotations();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\r
//-- _treeList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Tree.class, "_treeList", "Tree", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Tree();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\r
//-- _alignmentSequenceList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.AlignmentSequence.class, "_alignmentSequenceList", "alignmentSequence", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.AlignmentSequence();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
desc.setValidator(fieldValidator);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Provenance();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AlignmentSequence() \r
- {\r
+ public AlignmentSequence() {\r
super();\r
} //-- org.vamsas.objects.core.AlignmentSequence()\r
\r
* \r
* \r
* @param reader\r
- * @return SequenceType\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.AlignmentSequence) Unmarshaller.unmarshal(org.vamsas.objects.core.AlignmentSequence.class, reader);\r
- } //-- org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AlignmentSequenceDescriptor() \r
- {\r
+ public AlignmentSequenceDescriptor() {\r
super();\r
setExtendsWithoutFlatten(new org.vamsas.objects.core.SequenceTypeDescriptor());\r
nsURI = "http://www.vamsas.org";\r
xmlName = "alignmentSequence";\r
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
- org.exolab.castor.mapping.FieldHandler handler = null;\r
+ org.exolab.castor.xml.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
//-- _refid\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_refid", "refid", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setReference(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.Object();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _refid\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AnnotationElement() \r
- {\r
+ public AnnotationElement() {\r
super();\r
} //-- org.vamsas.objects.core.AnnotationElement()\r
\r
* \r
* \r
* @param reader\r
- * @return AnnotationElement\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.AnnotationElement unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.AnnotationElement) Unmarshaller.unmarshal(org.vamsas.objects.core.AnnotationElement.class, reader);\r
- } //-- org.vamsas.objects.core.AnnotationElement unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public AnnotationElementDescriptor() \r
- {\r
+ public AnnotationElementDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "annotationElement";\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.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
//-- _position\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_position", "position", org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _position\r
fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
fieldValidator.setMinOccurs(1);\r
{ //-- local scope\r
- IntegerValidator typeValidator= new IntegerValidator();\r
+ IntegerValidator typeValidator = new IntegerValidator();\r
fieldValidator.setValidator(typeValidator);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
//-- _displayCharacter\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_displayCharacter", "displayCharacter", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\r
//-- _secondaryStructure\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_secondaryStructure", "secondaryStructure", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\r
desc.setValidator(fieldValidator);\r
//-- _value\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(float.class, "_value", "value", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Application() \r
- {\r
+ public Application() {\r
super();\r
_userList = new Vector();\r
} //-- org.vamsas.objects.core.Application()\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _userList.size())) {\r
- throw new IndexOutOfBoundsException("getUser: Index value '"+index+"' not in range [0.."+_userList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.User) _userList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _userList.size())) {\r
- throw new IndexOutOfBoundsException("setUser: Index value '"+index+"' not in range [0.."+_userList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_userList.setElementAt(vUser, index);\r
} //-- void setUser(int, org.vamsas.objects.core.User) \r
* \r
* \r
* @param reader\r
- * @return Application\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.Application unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Application) Unmarshaller.unmarshal(org.vamsas.objects.core.Application.class, reader);\r
- } //-- org.vamsas.objects.core.Application unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public ApplicationData() \r
- {\r
+ public ApplicationData() {\r
super();\r
_applicationList = new Vector();\r
} //-- org.vamsas.objects.core.ApplicationData()\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _applicationList.size())) {\r
- throw new IndexOutOfBoundsException("getApplication: Index value '"+index+"' not in range [0.."+_applicationList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Application) _applicationList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _applicationList.size())) {\r
- throw new IndexOutOfBoundsException("setApplication: Index value '"+index+"' not in range [0.."+_applicationList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_applicationList.setElementAt(vApplication, index);\r
} //-- void setApplication(int, org.vamsas.objects.core.Application) \r
* \r
* \r
* @param reader\r
- * @return ApplicationData\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.ApplicationData unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.ApplicationData) Unmarshaller.unmarshal(org.vamsas.objects.core.ApplicationData.class, reader);\r
- } //-- org.vamsas.objects.core.ApplicationData unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public ApplicationDataDescriptor() \r
- {\r
+ public ApplicationDataDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "ApplicationData";\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.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
\r
//-- _applicationList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Application.class, "_applicationList", "Application", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Application();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public ApplicationDescriptor() \r
- {\r
+ public ApplicationDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "Application";\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.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
//-- _version\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _version\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _name\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _urn\r
//-- _data\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_data", "data", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _data\r
\r
//-- _userList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.User.class, "_userList", "User", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.User();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public DataSet() \r
- {\r
+ public DataSet() {\r
super();\r
_sequenceList = new Vector();\r
_dataSetAnnotationsList = new Vector();\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _alignmentList.size())) {\r
- throw new IndexOutOfBoundsException("getAlignment: Index value '"+index+"' not in range [0.."+_alignmentList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Alignment) _alignmentList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _dataSetAnnotationsList.size())) {\r
- throw new IndexOutOfBoundsException("getDataSetAnnotations: Index value '"+index+"' not in range [0.."+_dataSetAnnotationsList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.DataSetAnnotations) _dataSetAnnotationsList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _sequenceList.size())) {\r
- throw new IndexOutOfBoundsException("getSequence: Index value '"+index+"' not in range [0.."+_sequenceList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Sequence) _sequenceList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _treeList.size())) {\r
- throw new IndexOutOfBoundsException("getTree: Index value '"+index+"' not in range [0.."+_treeList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Tree) _treeList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _alignmentList.size())) {\r
- throw new IndexOutOfBoundsException("setAlignment: Index value '"+index+"' not in range [0.."+_alignmentList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_alignmentList.setElementAt(vAlignment, index);\r
} //-- void setAlignment(int, org.vamsas.objects.core.Alignment) \r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _dataSetAnnotationsList.size())) {\r
- throw new IndexOutOfBoundsException("setDataSetAnnotations: Index value '"+index+"' not in range [0.."+_dataSetAnnotationsList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_dataSetAnnotationsList.setElementAt(vDataSetAnnotations, index);\r
} //-- void setDataSetAnnotations(int, org.vamsas.objects.core.DataSetAnnotations) \r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _sequenceList.size())) {\r
- throw new IndexOutOfBoundsException("setSequence: Index value '"+index+"' not in range [0.."+_sequenceList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_sequenceList.setElementAt(vSequence, index);\r
} //-- void setSequence(int, org.vamsas.objects.core.Sequence) \r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _treeList.size())) {\r
- throw new IndexOutOfBoundsException("setTree: Index value '"+index+"' not in range [0.."+_treeList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_treeList.setElementAt(vTree, index);\r
} //-- void setTree(int, org.vamsas.objects.core.Tree) \r
* \r
* \r
* @param reader\r
- * @return DataSet\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.DataSet unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.DataSet) Unmarshaller.unmarshal(org.vamsas.objects.core.DataSet.class, reader);\r
- } //-- org.vamsas.objects.core.DataSet unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
/**\r
* Field _end\r
*/\r
- private java.lang.String _end;\r
+ private int _end;\r
+\r
+ /**\r
+ * keeps track of state for field: _end\r
+ */\r
+ private boolean _has_end;\r
\r
/**\r
* Field _begin\r
*/\r
- private java.lang.String _begin;\r
+ private int _begin;\r
+\r
+ /**\r
+ * keeps track of state for field: _begin\r
+ */\r
+ private boolean _has_begin;\r
\r
/**\r
* Field _seqRef\r
//- Constructors -/\r
//----------------/\r
\r
- public DataSetAnnotations() \r
- {\r
+ public DataSetAnnotations() {\r
super();\r
_annotationElementList = new Vector();\r
_provenanceList = new Vector();\r
} //-- void addProvenance(int, org.vamsas.objects.core.Provenance) \r
\r
/**\r
+ * Method deleteBegin\r
+ * \r
+ */\r
+ public void deleteBegin()\r
+ {\r
+ this._has_begin= false;\r
+ } //-- void deleteBegin() \r
+\r
+ /**\r
+ * Method deleteEnd\r
+ * \r
+ */\r
+ public void deleteEnd()\r
+ {\r
+ this._has_end= false;\r
+ } //-- void deleteEnd() \r
+\r
+ /**\r
* Method enumerateAnnotationElement\r
* \r
* \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
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.AnnotationElement) _annotationElementList.elementAt(index);\r
/**\r
* Returns the value of field 'begin'.\r
* \r
- * @return String\r
+ * @return int\r
* @return the value of field 'begin'.\r
*/\r
- public java.lang.String getBegin()\r
+ public int getBegin()\r
{\r
return this._begin;\r
- } //-- java.lang.String getBegin() \r
+ } //-- int getBegin() \r
\r
/**\r
* Returns the value of field 'description'.\r
/**\r
* Returns the value of field 'end'.\r
* \r
- * @return String\r
+ * @return int\r
* @return the value of field 'end'.\r
*/\r
- public java.lang.String getEnd()\r
+ public int getEnd()\r
{\r
return this._end;\r
- } //-- java.lang.String getEnd() \r
+ } //-- int getEnd() \r
\r
/**\r
* Returns the value of field 'id'.\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _provenanceList.size())) {\r
- throw new IndexOutOfBoundsException("getProvenance: Index value '"+index+"' not in range [0.."+_provenanceList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Provenance) _provenanceList.elementAt(index);\r
} //-- java.lang.String getType() \r
\r
/**\r
+ * Method hasBegin\r
+ * \r
+ * \r
+ * \r
+ * @return boolean\r
+ */\r
+ public boolean hasBegin()\r
+ {\r
+ return this._has_begin;\r
+ } //-- boolean hasBegin() \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 isValid\r
* \r
* \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
+ throw new IndexOutOfBoundsException();\r
}\r
_annotationElementList.setElementAt(vAnnotationElement, index);\r
} //-- void setAnnotationElement(int, org.vamsas.objects.core.AnnotationElement) \r
* \r
* @param begin the value of field 'begin'.\r
*/\r
- public void setBegin(java.lang.String begin)\r
+ public void setBegin(int begin)\r
{\r
this._begin = begin;\r
- } //-- void setBegin(java.lang.String) \r
+ this._has_begin = true;\r
+ } //-- void setBegin(int) \r
\r
/**\r
* Sets the value of field 'description'.\r
* \r
* @param end the value of field 'end'.\r
*/\r
- public void setEnd(java.lang.String end)\r
+ public void setEnd(int end)\r
{\r
this._end = end;\r
- } //-- void setEnd(java.lang.String) \r
+ this._has_end = true;\r
+ } //-- void setEnd(int) \r
\r
/**\r
* Sets the value of field 'id'.\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _provenanceList.size())) {\r
- throw new IndexOutOfBoundsException("setProvenance: Index value '"+index+"' not in range [0.."+_provenanceList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_provenanceList.setElementAt(vProvenance, index);\r
} //-- void setProvenance(int, org.vamsas.objects.core.Provenance) \r
* \r
* \r
* @param reader\r
- * @return DataSetAnnotations\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.DataSetAnnotations unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.DataSetAnnotations) Unmarshaller.unmarshal(org.vamsas.objects.core.DataSetAnnotations.class, reader);\r
- } //-- org.vamsas.objects.core.DataSetAnnotations unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public DataSetAnnotationsDescriptor() \r
- {\r
+ public DataSetAnnotationsDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "DataSetAnnotations";\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.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _type\r
}\r
desc.setValidator(fieldValidator);\r
//-- _end\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_end", "end", org.exolab.castor.xml.NodeType.Attribute);\r
- desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\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
DataSetAnnotations target = (DataSetAnnotations) object;\r
- return target.getEnd();\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
DataSetAnnotations target = (DataSetAnnotations) object;\r
- target.setEnd( (java.lang.String) value);\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
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\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
- StringValidator typeValidator = new StringValidator();\r
- typeValidator.setWhiteSpace("preserve");\r
+ IntegerValidator typeValidator = new IntegerValidator();\r
fieldValidator.setValidator(typeValidator);\r
}\r
desc.setValidator(fieldValidator);\r
//-- _begin\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_begin", "begin", org.exolab.castor.xml.NodeType.Attribute);\r
- desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Integer.TYPE, "_begin", "begin", 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
DataSetAnnotations target = (DataSetAnnotations) object;\r
- return target.getBegin();\r
+ if(!target.hasBegin())\r
+ return null;\r
+ return new java.lang.Integer(target.getBegin());\r
}\r
public void setValue( java.lang.Object object, java.lang.Object value) \r
throws IllegalStateException, IllegalArgumentException\r
{\r
try {\r
DataSetAnnotations target = (DataSetAnnotations) object;\r
- target.setBegin( (java.lang.String) value);\r
+ // ignore null values for non optional primitives\r
+ if (value == null) return;\r
+ \r
+ target.setBegin( ((java.lang.Integer)value).intValue());\r
}\r
catch (java.lang.Exception ex) {\r
throw new IllegalStateException(ex.toString());\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _begin\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
+ IntegerValidator typeValidator = new IntegerValidator();\r
fieldValidator.setValidator(typeValidator);\r
}\r
desc.setValidator(fieldValidator);\r
//-- _seqRef\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_seqRef", "seqRef", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setReference(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.Object();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _seqRef\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.AnnotationElement();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\r
//-- _provenanceList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Provenance.class, "_provenanceList", "Provenance", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Provenance();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public DataSetDescriptor() \r
- {\r
+ public DataSetDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "DataSet";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
\r
//-- _sequenceList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Sequence.class, "_sequenceList", "Sequence", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Sequence();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
desc.setValidator(fieldValidator);\r
//-- _dataSetAnnotationsList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.DataSetAnnotations.class, "_dataSetAnnotationsList", "DataSetAnnotations", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.DataSetAnnotations();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\r
//-- _alignmentList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Alignment.class, "_alignmentList", "Alignment", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Alignment();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\r
//-- _treeList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Tree.class, "_treeList", "Tree", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Tree();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Provenance();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
/**\r
* Field _source\r
*/\r
- private java.lang.Object _source;\r
+ private java.lang.String _source;\r
\r
/**\r
* Field _version\r
*/\r
- private java.lang.Object _version;\r
+ private java.lang.String _version;\r
\r
/**\r
* Field _accessionId\r
*/\r
- private java.lang.Object _accessionId;\r
+ private java.lang.String _accessionId;\r
\r
/**\r
* Field _id\r
//- Constructors -/\r
//----------------/\r
\r
- public DbRef() \r
- {\r
+ public DbRef() {\r
super();\r
} //-- org.vamsas.objects.core.DbRef()\r
\r
/**\r
* Returns the value of field 'accessionId'.\r
* \r
- * @return Object\r
+ * @return String\r
* @return the value of field 'accessionId'.\r
*/\r
- public java.lang.Object getAccessionId()\r
+ public java.lang.String getAccessionId()\r
{\r
return this._accessionId;\r
- } //-- java.lang.Object getAccessionId() \r
+ } //-- java.lang.String getAccessionId() \r
\r
/**\r
* Returns the value of field 'id'.\r
/**\r
* Returns the value of field 'source'.\r
* \r
- * @return Object\r
+ * @return String\r
* @return the value of field 'source'.\r
*/\r
- public java.lang.Object getSource()\r
+ public java.lang.String getSource()\r
{\r
return this._source;\r
- } //-- java.lang.Object getSource() \r
+ } //-- java.lang.String getSource() \r
\r
/**\r
* Returns the value of field 'version'.\r
* \r
- * @return Object\r
+ * @return String\r
* @return the value of field 'version'.\r
*/\r
- public java.lang.Object getVersion()\r
+ public java.lang.String getVersion()\r
{\r
return this._version;\r
- } //-- java.lang.Object getVersion() \r
+ } //-- java.lang.String getVersion() \r
\r
/**\r
* Method isValid\r
* \r
* @param accessionId the value of field 'accessionId'.\r
*/\r
- public void setAccessionId(java.lang.Object accessionId)\r
+ public void setAccessionId(java.lang.String accessionId)\r
{\r
this._accessionId = accessionId;\r
- } //-- void setAccessionId(java.lang.Object) \r
+ } //-- void setAccessionId(java.lang.String) \r
\r
/**\r
* Sets the value of field 'id'.\r
* \r
* @param source the value of field 'source'.\r
*/\r
- public void setSource(java.lang.Object source)\r
+ public void setSource(java.lang.String source)\r
{\r
this._source = source;\r
- } //-- void setSource(java.lang.Object) \r
+ } //-- void setSource(java.lang.String) \r
\r
/**\r
* Sets the value of field 'version'.\r
* \r
* @param version the value of field 'version'.\r
*/\r
- public void setVersion(java.lang.Object version)\r
+ public void setVersion(java.lang.String version)\r
{\r
this._version = version;\r
- } //-- void setVersion(java.lang.Object) \r
+ } //-- void setVersion(java.lang.String) \r
\r
/**\r
* Method unmarshal\r
* \r
* \r
* @param reader\r
- * @return DbRef\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.DbRef unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.DbRef) Unmarshaller.unmarshal(org.vamsas.objects.core.DbRef.class, reader);\r
- } //-- org.vamsas.objects.core.DbRef unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public DbRefDescriptor() \r
- {\r
+ public DbRefDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "dbRef";\r
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
- org.exolab.castor.mapping.FieldHandler handler = null;\r
+ org.exolab.castor.xml.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
//-- _source\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_source", "source", org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_source", "source", 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
{\r
try {\r
DbRef target = (DbRef) object;\r
- target.setSource( (java.lang.Object) value);\r
+ target.setSource( (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.Object();\r
+ return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _source\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
//-- _version\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_version", "version", org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_version", "version", 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
{\r
try {\r
DbRef target = (DbRef) object;\r
- target.setVersion( (java.lang.Object) value);\r
+ target.setVersion( (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.Object();\r
+ return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _version\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
//-- _accessionId\r
- desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.Object.class, "_accessionId", "accessionId", org.exolab.castor.xml.NodeType.Attribute);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_accessionId", "accessionId", 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
{\r
try {\r
DbRef target = (DbRef) object;\r
- target.setAccessionId( (java.lang.Object) value);\r
+ target.setAccessionId( (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.Object();\r
+ return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _accessionId\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
//-- _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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Entry() \r
- {\r
+ public Entry() {\r
super();\r
} //-- org.vamsas.objects.core.Entry()\r
\r
* \r
* \r
* @param reader\r
- * @return Entry\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.Entry unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Entry) Unmarshaller.unmarshal(org.vamsas.objects.core.Entry.class, reader);\r
- } //-- org.vamsas.objects.core.Entry unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public EntryDescriptor() \r
- {\r
+ public EntryDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "entry";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
//-- _user\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_user", "User", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
//-- _action\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_action", "Action", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
desc.setValidator(fieldValidator);\r
//-- _date\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.exolab.castor.types.Date.class, "_date", "Date", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.exolab.castor.types.Date();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Newick() \r
- {\r
+ public Newick() {\r
super();\r
setContent("");\r
} //-- org.vamsas.objects.core.Newick()\r
* \r
* \r
* @param reader\r
- * @return Newick\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.Newick unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Newick) Unmarshaller.unmarshal(org.vamsas.objects.core.Newick.class, reader);\r
- } //-- org.vamsas.objects.core.Newick unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public NewickDescriptor() \r
- {\r
+ public NewickDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "newick";\r
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
- org.exolab.castor.mapping.FieldHandler handler = null;\r
+ org.exolab.castor.xml.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
addFieldDescriptor(desc);\r
\r
//-- _title\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_title", "title", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _title\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Provenance() \r
- {\r
+ public Provenance() {\r
super();\r
_entryList = new Vector();\r
} //-- org.vamsas.objects.core.Provenance()\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _entryList.size())) {\r
- throw new IndexOutOfBoundsException("getEntry: Index value '"+index+"' not in range [0.."+_entryList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Entry) _entryList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _entryList.size())) {\r
- throw new IndexOutOfBoundsException("setEntry: Index value '"+index+"' not in range [0.."+_entryList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_entryList.setElementAt(vEntry, index);\r
} //-- void setEntry(int, org.vamsas.objects.core.Entry) \r
* \r
* \r
* @param reader\r
- * @return Provenance\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.Provenance unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Provenance) Unmarshaller.unmarshal(org.vamsas.objects.core.Provenance.class, reader);\r
- } //-- org.vamsas.objects.core.Provenance unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public ProvenanceDescriptor() \r
- {\r
+ public ProvenanceDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "Provenance";\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.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
\r
//-- _entryList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Entry.class, "_entryList", "entry", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Entry();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Sequence() \r
- {\r
+ public Sequence() {\r
super();\r
_dbRefList = new Vector();\r
} //-- org.vamsas.objects.core.Sequence()\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _dbRefList.size())) {\r
- throw new IndexOutOfBoundsException("getDbRef: Index value '"+index+"' not in range [0.."+_dbRefList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.DbRef) _dbRefList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _dbRefList.size())) {\r
- throw new IndexOutOfBoundsException("setDbRef: Index value '"+index+"' not in range [0.."+_dbRefList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_dbRefList.setElementAt(vDbRef, index);\r
} //-- void setDbRef(int, org.vamsas.objects.core.DbRef) \r
* \r
* \r
* @param reader\r
- * @return SequenceType\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Sequence) Unmarshaller.unmarshal(org.vamsas.objects.core.Sequence.class, reader);\r
- } //-- org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public SequenceDescriptor() \r
- {\r
+ public SequenceDescriptor() {\r
super();\r
setExtendsWithoutFlatten(new org.vamsas.objects.core.SequenceTypeDescriptor());\r
nsURI = "http://www.vamsas.org";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setRequired(true);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
//-- _dictionary\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_dictionary", "dictionary", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _dictionary\r
\r
//-- _dbRefList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.DbRef.class, "_dbRefList", "dbRef", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.DbRef();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public SequenceType() \r
- {\r
+ public SequenceType() {\r
super();\r
} //-- org.vamsas.objects.core.SequenceType()\r
\r
* \r
* \r
* @param reader\r
- * @return SequenceType\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.SequenceType) Unmarshaller.unmarshal(org.vamsas.objects.core.SequenceType.class, reader);\r
- } //-- org.vamsas.objects.core.SequenceType unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public SequenceTypeDescriptor() \r
- {\r
+ public SequenceTypeDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "SequenceType";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\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
+ 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\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
+ IntegerValidator typeValidator = new IntegerValidator();\r
fieldValidator.setValidator(typeValidator);\r
}\r
desc.setValidator(fieldValidator);\r
//-- _sequence\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_sequence", "sequence", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
//-- _name\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_name", "name", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public Tree() \r
- {\r
+ public Tree() {\r
super();\r
_newickList = new Vector();\r
} //-- org.vamsas.objects.core.Tree()\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _newickList.size())) {\r
- throw new IndexOutOfBoundsException("getNewick: Index value '"+index+"' not in range [0.."+_newickList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Newick) _newickList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _newickList.size())) {\r
- throw new IndexOutOfBoundsException("setNewick: Index value '"+index+"' not in range [0.."+_newickList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_newickList.setElementAt(vNewick, index);\r
} //-- void setNewick(int, org.vamsas.objects.core.Newick) \r
* \r
* \r
* @param reader\r
- * @return Tree\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.Tree unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.Tree) Unmarshaller.unmarshal(org.vamsas.objects.core.Tree.class, reader);\r
- } //-- org.vamsas.objects.core.Tree unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public TreeDescriptor() \r
- {\r
+ public TreeDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "Tree";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
//-- _title\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_title", "title", org.exolab.castor.xml.NodeType.Element);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(false);\r
desc.setValidator(fieldValidator);\r
//-- _newickList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Newick.class, "_newickList", "newick", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Newick();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
desc.setValidator(fieldValidator);\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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Provenance();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setRequired(true);\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public User() \r
- {\r
+ public User() {\r
super();\r
} //-- org.vamsas.objects.core.User()\r
\r
* \r
* \r
* @param reader\r
- * @return User\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.User unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.User) Unmarshaller.unmarshal(org.vamsas.objects.core.User.class, reader);\r
- } //-- org.vamsas.objects.core.User unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public UserDescriptor() \r
- {\r
+ public UserDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "User";\r
org.exolab.castor.xml.util.XMLFieldDescriptorImpl desc = null;\r
- org.exolab.castor.mapping.FieldHandler handler = null;\r
+ org.exolab.castor.xml.XMLFieldHandler handler = null;\r
org.exolab.castor.xml.FieldValidator fieldValidator = null;\r
//-- initialize attribute descriptors\r
\r
//-- _fullname\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_fullname", "fullname", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _fullname\r
//-- _organization\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_organization", "organization", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _organization\r
//-- _data\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_data", "data", org.exolab.castor.xml.NodeType.Attribute);\r
desc.setImmutable(true);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return null;\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _data\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public VAMSAS() \r
- {\r
+ public VAMSAS() {\r
super();\r
_treeList = new Vector();\r
_dataSetList = new Vector();\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _dataSetList.size())) {\r
- throw new IndexOutOfBoundsException("getDataSet: Index value '"+index+"' not in range [0.."+_dataSetList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.DataSet) _dataSetList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _treeList.size())) {\r
- throw new IndexOutOfBoundsException("getTree: Index value '"+index+"' not in range [0.."+_treeList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
\r
return (org.vamsas.objects.core.Tree) _treeList.elementAt(index);\r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _dataSetList.size())) {\r
- throw new IndexOutOfBoundsException("setDataSet: Index value '"+index+"' not in range [0.."+_dataSetList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_dataSetList.setElementAt(vDataSet, index);\r
} //-- void setDataSet(int, org.vamsas.objects.core.DataSet) \r
{\r
//-- check bounds for index\r
if ((index < 0) || (index > _treeList.size())) {\r
- throw new IndexOutOfBoundsException("setTree: Index value '"+index+"' not in range [0.."+_treeList.size()+ "]");\r
+ throw new IndexOutOfBoundsException();\r
}\r
_treeList.setElementAt(vTree, index);\r
} //-- void setTree(int, org.vamsas.objects.core.Tree) \r
* \r
* \r
* @param reader\r
- * @return VAMSAS\r
+ * @return Object\r
*/\r
- public static org.vamsas.objects.core.VAMSAS unmarshal(java.io.Reader reader)\r
+ public static java.lang.Object unmarshal(java.io.Reader reader)\r
throws org.exolab.castor.xml.MarshalException, org.exolab.castor.xml.ValidationException\r
{\r
return (org.vamsas.objects.core.VAMSAS) Unmarshaller.unmarshal(org.vamsas.objects.core.VAMSAS.class, reader);\r
- } //-- org.vamsas.objects.core.VAMSAS unmarshal(java.io.Reader) \r
+ } //-- java.lang.Object unmarshal(java.io.Reader) \r
\r
/**\r
* Method validate\r
/*\r
* This class was automatically generated with \r
- * <a href="http://www.castor.org">Castor 0.9.9M2</a>, using an XML\r
+ * <a href="http://www.castor.org">Castor 0.9.6</a>, using an XML\r
* Schema.\r
* $Id$\r
*/\r
//- Constructors -/\r
//----------------/\r
\r
- public VAMSASDescriptor() \r
- {\r
+ public VAMSASDescriptor() {\r
super();\r
nsURI = "http://www.vamsas.org";\r
xmlName = "VAMSAS";\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.XMLFieldHandler 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
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new java.lang.String();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
- desc.setMultivalued(false);\r
addFieldDescriptor(desc);\r
\r
//-- validation code for: _id\r
\r
//-- _treeList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.Tree.class, "_treeList", "Tree", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.Tree();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r
desc.setValidator(fieldValidator);\r
//-- _dataSetList\r
desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.vamsas.objects.core.DataSet.class, "_dataSetList", "DataSet", org.exolab.castor.xml.NodeType.Element);\r
- handler = new org.exolab.castor.xml.XMLFieldHandler() {\r
+ handler = (new org.exolab.castor.xml.XMLFieldHandler() {\r
public java.lang.Object getValue( java.lang.Object object ) \r
throws IllegalStateException\r
{\r
public java.lang.Object newInstance( java.lang.Object parent ) {\r
return new org.vamsas.objects.core.DataSet();\r
}\r
- };\r
+ } );\r
desc.setHandler(handler);\r
desc.setNameSpaceURI("http://www.vamsas.org");\r
desc.setMultivalued(true);\r