JAL-1807 Bob's JalviewJS prototype first commit
[jalviewjs.git] / src / jalview / datamodel / SequenceDummy.java
1 package jalview.datamodel;
2
3 public class SequenceDummy extends Sequence implements SequenceI
4 {
5   public SequenceDummy(String sequenceId)
6   {
7     super(sequenceId, "THISAPLACEHOLDER");
8   }
9
10   private boolean dummy = true;
11   /**
12    * become a proxy for mseq, merging any existing annotation on this sequence
13    * 
14    * @param mseq
15    */
16   public void become(SequenceI mseq)
17   {
18     initSeqFrom(mseq, null);
19     dummy=false;
20   }
21
22   /**
23    * Test if the SequenceDummy has been promoted to a real sequence via
24    * SequenceDummy.become
25    * 
26    * @return true if this is a placeholder and contains no actual sequence data
27    */
28   public boolean isDummy()
29   {
30     return dummy;
31   }
32 }