Class PdbModresLine

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

@Immutable public abstract class PdbModresLine extends Object implements ChainNumberICode, Serializable
A representation of MODRES line in PDB format.
See Also:
  • Constructor Details

    • PdbModresLine

      public PdbModresLine()
  • Method Details

    • parse

      public static PdbModresLine parse(String line)
      Parses text with MODRES line in PDB format.
      Parameters:
      line - A text with MODRES line in PDB format.
      Returns:
      An instance of this class with fields set to parsed values.
    • idCode

      @Parameter(order=1) public abstract String idCode()
      Returns:
      The value of the idCode 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
    • standardResidueName

      @Parameter(order=6) public abstract String standardResidueName()
      Returns:
      The value of the standardResidueName attribute
    • comment

      @Parameter(order=7) public abstract String comment()
      Returns:
      The value of the comment attribute
    • toString

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

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