</field>
<field name="position">
<bind-xml name="position" node="attribute" location="location/position"/>
- </field>
+ </field>
<field name="begin">
<bind-xml name="position" node="attribute" location="location/begin"/>
- </field>
- <field name="end">
- <bind-xml name="position" node="attribute" location="location/end"/>
- </field>
+ </field>
+ <field name="end">
+ <bind-xml name="position" node="attribute" location="location/end"/>
+ </field>
+ <field name="variation">
+ <bind-xml name="variation"/>
+ </field>
+ <field name="original">
+ <bind-xml name="original"/>
+ </field>
</class>
<class name="jalview.datamodel.xdb.uniprot.UniprotSequence">
{
private String type;
- private String description;
+ private String description = null;
+
+ private String original = null;
+
+ private String variation = null;
private String status;
public String getDescription()
{
- return description;
+ return (description == null && variation == null && original == null)
+ ? null
+ : (description == null ? "" : description)
+ + ((variation != null)
+ ? "Variation: '" + variation + "' "
+ : "")
+ + ((original != null) ? "Original: '" + original + "'" : "");
}
public void setDescription(String d)
this.begin = p;
this.end = p;
}
+
+ public String getOriginal()
+ {
+ return original;
+ }
+
+ public void setOriginal(String original)
+ {
+ this.original = original;
+ }
+
+ public String getVariation()
+ {
+ return variation;
+ }
+
+ public void setVariation(String variant)
+ {
+ this.variation = variant;
+ }
}