Class PdbRemark465Line

java.lang.Object
pl.poznan.put.pdb.PdbRemark465Line
All Implemented Interfaces:
Serializable, Comparable<ChainNumberICode>, ChainNumberICode
Direct Known Subclasses:
ImmutablePdbRemark465Line

@Immutable public abstract class PdbRemark465Line extends Object implements ChainNumberICode
A representation of REMARK 465 in PDB format which describes missing residues.
See Also:
  • Field Details

  • Constructor Details

    • PdbRemark465Line

      public PdbRemark465Line()
  • Method Details

    • isCommentLine

      public static boolean isCommentLine(String line)
      Checks if line is just a comment or a line with actual information.
      Parameters:
      line - A line of text.
      Returns:
      True if line contains a comment only.
    • parse

      public static PdbRemark465Line parse(String line)
      Parses a line of text to create an instance of this class.
      Parameters:
      line - A line of text starting with REMARK 465.
      Returns:
      An instance of this class
    • modelNumber

      @Parameter(order=1) public abstract int modelNumber()
      Returns:
      The value of the modelNumber attribute
    • residueName

      @Parameter(order=2) public abstract String residueName()
      Returns:
      The value of the residueName attribute
    • chainIdentifier

      @Parameter(order=3) public abstract String chainIdentifier()
      Specified by:
      chainIdentifier in interface ChainNumberICode
      Returns:
      The value of the chainIdentifier attribute
    • residueNumber

      @Parameter(order=4) public abstract int residueNumber()
      Specified by:
      residueNumber in interface ChainNumberICode
      Returns:
      The value of the residueNumber attribute
    • insertionCode

      @Parameter(order=5) public abstract Optional<String> insertionCode()
      Specified by:
      insertionCode in interface ChainNumberICode
      Returns:
      The value of the insertionCode attribute
    • toString

      public final String toString()
      Overrides:
      toString in class Object
    • toPdb

      public final String toPdb()
      Returns:
      A line in PDB format.
    • toResidue

      public final PdbResidue toResidue()
      Creates an instance of DefaultPdbResidue marked as missing and without atoms.
      Returns:
      An instance of a missing residue.