Class PDBRecognizer


  • @PublicAPI
    @Deprecated
    public class PDBRecognizer
    extends Recognizer
    Deprecated.
    as of Marvin 2014.07.21.0 intended for internal use only
    PDB format recognizer.
    Since:
    Marvin 5.0, 06/08/2007
    • Field Detail

      • NO

        public static final int NO
        Deprecated.
        Line is not in the given format. Return value for testLine methods.
        See Also:
        Constant Field Values
      • CAN_BE

        public static final int CAN_BE
        Deprecated.
        Line can be in the given format. Return value for testLine methods.
        See Also:
        Constant Field Values
      • SURE

        public static final int SURE
        Deprecated.
        Line is surely in the given format. Return value for testLine methods.
        See Also:
        Constant Field Values
    • Constructor Detail

      • PDBRecognizer

        public PDBRecognizer()
        Deprecated.
    • Method Detail

      • tryToRecognize

        public chemaxon.common.util.Pair<Boolean,​Collection<String>> tryToRecognize​(String line,
                                                                                          int lineNumber)
        Deprecated.
        Description copied from class: Recognizer
        Checks whether the parameter line can be part of a valid (format specified) file on the given file position.
        Overrides:
        tryToRecognize in class Recognizer
        Parameters:
        line - the line string
        lineNumber - the position of the line
        Returns:
        a Pair of which second parameter gives the format name collection that is:
        • Recognized to be excluded if the first parameter is false
        • Positively recognized if the first parameter is true
      • testLine

        public static int testLine​(String line)
        Deprecated.
        Checks if the given parameter is a PDB record name.
        Parameters:
        line - the line
        Returns:
        SURE if it is surely a PDB line, CAN_BE if it can be a PDB line, NO otherwise
      • testRecord

        public static int testRecord​(String recName)
        Deprecated.
        Checks if the given parameter is a PDB record name.
        Parameters:
        recName - a potential PDB record name
        Returns:
        SURE if it is surely a PDB line, CAN_BE if it can be a PDB line, NO otherwise