added id for RangeAnnotation types.
authorjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 12 Sep 2006 10:04:04 +0000 (10:04 +0000)
committerjprocter <jprocter@compbio.dundee.ac.uk>
Tue, 12 Sep 2006 10:04:04 +0000 (10:04 +0000)
git-svn-id: https://svn.lifesci.dundee.ac.uk/svn/repository/trunk@238 be28352e-c001-0410-b1a7-c7978e42abec

schemas/document.xml
schemas/vamsas.xsd
src/org/vamsas/objects/core/AlignmentSequenceAnnotationDescriptor.java

index 7113ae1..b2c3ed1 100644 (file)
                 <name>Q87N22</name>
             </Sequence>
             <Alignment gapChar="-">
+                <AlignmentAnnotation type="recombinationbreakpoint" graph="false">
+                    <seg start="1" end="163" inclusive="false"/>
+                    <annotationElement position="50" after="true">
+                        <description>Topali Breakpoint</description>
+                        <glyph dict="utf8">?</glyph>
+                    </annotationElement>
+                    <Provenance>
+                        <entry>
+                            <User>Jim</User>
+                            <App>topali</App>
+                            <Action>added-by hand</Action>
+                            <Date>2006-09-11</Date>
+                        </entry>
+                    </Provenance>
+                </AlignmentAnnotation>
                 <alignmentSequence start="1" end="167" refid="a1127235554296">
                     <sequence>KTAIITGGSRGIGKSIAIKLGKLGASIVLNYRNNTDALKNTIRELEDLN--INVIAVQGDISNYKECEKIIKAALDKFNG--IDILVNNAGITADNLILRMKEEEFDKVIETNLKGTFNCVKHCIPMIKRRYGKIINISSVVGVAGNVGQCNYAAAKAGVIGFTKSLAKEL</sequence>
                     <name>Q899P0</name>
index 996c187..f83f12c 100644 (file)
                                                                                                                                        <xs:element
                                                                                                                                                ref="vamsas:Provenance" minOccurs="1" maxOccurs="1" />
                                                                                                                                </xs:sequence>
+                                                                                                                               <xs:attribute name="id"
+                                                                                                                                       type="xs:ID" use="optional">
+                                                                                                                                       <xs:annotation>
+                                                                                                                                               <xs:documentation>
+                                                                                                                                                       Primary Key for
+                                                                                                                                                       vamsas object
+                                                                                                                                                       referencing
+                                                                                                                                               </xs:documentation>
+                                                                                                                                       </xs:annotation>
+                                                                                                                               </xs:attribute>
                                                                                                                                <xs:attribute
                                                                                                                                        name="graph" type="xs:boolean" use="required">
                                                                                                                                        <xs:annotation>
index a4aa126..9b8fbdc 100644 (file)
@@ -67,6 +67,12 @@ public class AlignmentSequenceAnnotationDescriptor extends org.vamsas.objects.co
         org.exolab.castor.xml.FieldValidator               fieldValidator = null;\r
         //-- initialize attribute descriptors\r
         \r
+        desc = (org.exolab.castor.xml.util.XMLFieldDescriptorImpl) getFieldDescriptor("id", nsURI, org.exolab.castor.xml.NodeType.Attribute);\r
+        //-- validation code for: _id\r
+        fieldValidator = new org.exolab.castor.xml.FieldValidator();\r
+        { //-- local scope\r
+        }\r
+        desc.setValidator(fieldValidator);\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