Class UniProtLocationParser


  • public class UniProtLocationParser
    extends java.lang.Object
    Parses UniProt location strings into RichLocation objects.
    Since:
    1.5
    Author:
    Richard Holland
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static RichLocation parseLocation​(java.lang.String loc)
      Parses a location.
      static java.lang.String writeLocation​(RichLocation l)
      Writes a location in UniProt format.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • parseLocation

        public static RichLocation parseLocation​(java.lang.String loc)
                                          throws ParseException
        Parses a location.
        Parameters:
        loc - the UniProt location string.
        Returns:
        RichLocation the equivalent RichLocation object.
        Throws:
        ParseException - if the parsing failed.
      • writeLocation

        public static java.lang.String writeLocation​(RichLocation l)
        Writes a location in UniProt format.
        Parameters:
        l - the location to write
        Returns:
        the formatted string representing the location.