X-Git-Url: http://source.jalview.org/gitweb/?a=blobdiff_plain;f=forester%2Fjava%2Fsrc%2Forg%2Fforester%2Fws%2Funiprot%2FEbiDbEntry.java;h=8adda2230ebd807848b68fcbc4e1b790a65358de;hb=e4f95087154c70d569fe54d8f08af7d4f218df0c;hp=4f7b779a387a970d3db9384d2974b41a073e589e;hpb=e47fb4d682262076a44ebb802276ae237ed4cf96;p=jalview.git diff --git a/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java b/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java index 4f7b779..8adda22 100644 --- a/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java +++ b/forester/java/src/org/forester/ws/uniprot/EbiDbEntry.java @@ -30,9 +30,8 @@ import java.util.List; import sun.reflect.generics.reflectiveObjects.NotImplementedException; public final class EbiDbEntry implements SequenceDatabaseEntry { -//http://www.ebi.ac.uk/Tools/dbfetch/dbfetch/emb/AAR37336/ - - + + //http://www.ebi.ac.uk/Tools/dbfetch/dbfetch/emb/AAR37336/ private String _pa; private String _de; private String _os; @@ -42,11 +41,11 @@ public final class EbiDbEntry implements SequenceDatabaseEntry { private EbiDbEntry() { } - + @Override public Object clone() { throw new NotImplementedException(); } - + public static SequenceDatabaseEntry createInstanceFromPlainText( final List lines ) { final EbiDbEntry e = new EbiDbEntry(); for( final String line : lines ) { @@ -54,15 +53,15 @@ public final class EbiDbEntry implements SequenceDatabaseEntry { e.setPA( DatabaseTools.extract( line, "PA", ";" ) ); } else if ( line.startsWith( "DE" ) ) { - // if ( ( line.indexOf( "RecName:" ) > 0 ) && ( line.indexOf( "Full=" ) > 0 ) ) { - e.setDe( DatabaseTools.extract( line, "DE" ) ); + // if ( ( line.indexOf( "RecName:" ) > 0 ) && ( line.indexOf( "Full=" ) > 0 ) ) { + e.setDe( DatabaseTools.extract( line, "DE" ) ); //} } - // else if ( line.startsWith( "GN" ) ) { - // if ( ( line.indexOf( "Name=" ) > 0 ) ) { - // e.setSymbol( extract( line, "Name=", ";" ) ); - // } - // } + // else if ( line.startsWith( "GN" ) ) { + // if ( ( line.indexOf( "Name=" ) > 0 ) ) { + // e.setSymbol( extract( line, "Name=", ";" ) ); + // } + // } else if ( line.startsWith( "OS" ) ) { if ( line.indexOf( "(" ) > 0 ) { e.setOs( DatabaseTools.extract( line, "OS", "(" ) ); @@ -87,7 +86,7 @@ public final class EbiDbEntry implements SequenceDatabaseEntry { private void setPA( final String pa ) { if ( _pa == null ) { - _pa= pa; + _pa = pa; } } @@ -108,7 +107,7 @@ public final class EbiDbEntry implements SequenceDatabaseEntry { } private void setOs( final String os ) { - if ( _os== null ) { + if ( _os == null ) { _os = os; } }