Class ResidueCollection.PdbBuilder

java.lang.Object
pl.poznan.put.pdb.analysis.ResidueCollection.PdbBuilder
Enclosing interface:
ResidueCollection

public static final class ResidueCollection.PdbBuilder extends Object
A builder that can merge many residue collections in one PDB file.
  • Constructor Details

    • PdbBuilder

      public PdbBuilder()
  • Method Details

    • add

      public ResidueCollection.PdbBuilder add(ResidueCollection residueCollection)
      Add a new residue collection to the builder.
      Parameters:
      residueCollection - The residue collection to build.
      Returns:
      This builder instance.
    • add

      public ResidueCollection.PdbBuilder add(ResidueCollection residueCollection, String name)
      Add a new named residue collection to the builder. A line with name of the collection is prepended to the ATOM lines.
      Parameters:
      residueCollection - The residue collection to build.
      name - Name of the collection, which will be prepended to ATOM lines if not empty.
      Returns:
      This builder instance.
    • build

      public String build()
      Returns:
      The string content in PDB format.