X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=src%2Fjalview%2Fdatamodel%2FSequenceI.java;h=92f797ff7757f726e7681a3f3a18ce339fe52809;hb=c437fc72420baf7b045d417fb6cabcebe87987c5;hp=a29e2ba81c2f34491c2e806cda561242c42efd93;hpb=1c5971e6df15c0d5c774a2cb7dbdac286a72a9b2;p=jalview.git diff --git a/src/jalview/datamodel/SequenceI.java b/src/jalview/datamodel/SequenceI.java index a29e2ba..92f797f 100755 --- a/src/jalview/datamodel/SequenceI.java +++ b/src/jalview/datamodel/SequenceI.java @@ -217,8 +217,11 @@ public interface SequenceI extends ASequenceI public int[] findPositionMap(); /** + * Answers true if the sequence is composed of amino acid characters. Note + * that implementations may use heuristic methods which are not guaranteed to + * give the biologically 'right' answer. * - * @return true if sequence is composed of amino acid characters + * @return */ public boolean isProtein(); @@ -334,7 +337,14 @@ public interface SequenceI extends ASequenceI */ public void addDBRef(DBRefEntry entry); - public void addSequenceFeature(SequenceFeature sf); + /** + * Adds the given sequence feature and returns true, or returns false if it is + * already present on the sequence + * + * @param sf + * @return + */ + public boolean addSequenceFeature(SequenceFeature sf); public void deleteFeature(SequenceFeature sf); @@ -456,7 +466,6 @@ public interface SequenceI extends ASequenceI */ public PDBEntry getPDBEntry(String pdbId); - /** * Get all primary database/accessions for this sequence's data. These * DBRefEntry are expected to resolve to a valid record in the associated