import jalview.util.jarInputStreamProvider;
import jalview.util.matcher.Condition;
import jalview.viewmodel.AlignmentViewport;
+import jalview.viewmodel.AlignmentViewport.AutoAnnotation;
import jalview.viewmodel.PCAModel;
import jalview.viewmodel.ViewportRanges;
import jalview.viewmodel.seqfeatures.FeatureRendererSettings;
*/
public class Jalview2XML
{
+ private static final String TRUE = "true";
+
+ private static final String FALSE = "false";
+
private static final String VIEWER_PREFIX = "viewer_";
private static final String RNA_PREFIX = "rna_";
* test if annotation is automatically calculated for this view only
*/
boolean autoForView = false;
- if (annotation.getLabel().equals("Quality")
- || annotation.getLabel().equals("Conservation")
- || annotation.getLabel().equals("Consensus"))
+ if (annotation.getLabel().equals(AutoAnnotation.QUALITY.label)
+ || annotation.getLabel()
+ .equals(AutoAnnotation.CONSERVATION.label)
+ || annotation.getLabel()
+ .equals(AutoAnnotation.CONSENSUS.label))
{
// Kludge for pre 2.5 projects which lacked the autocalculated flag
autoForView = true;
- // JAXB has no has() test; schema defaults value to false
- // if (!annotation.hasAutoCalculated())
- // {
- // annotation.setAutoCalculated(true);
- // }
}
if (autoForView || annotation.isAutoCalculated())
{
{
if (val.contains("e")) // eh? what can it be?
{
- if (val.trim().equals("true"))
+ if (val.trim().equals(TRUE))
{
val = "1";
}