Class ProteinModificationImpl.Builder

  • Enclosing class:
    ProteinModificationImpl

    public static class ProteinModificationImpl.Builder
    extends java.lang.Object
    Uses Builder pattern to build a ProteinModification.
    • Method Detail

      • setPdbccId

        public ProteinModificationImpl.Builder setPdbccId​(java.lang.String pdbccId)
        Set the Protein Data Bank Chemical Component ID.
        Parameters:
        pdbccId - Protein Data Bank Chemical Component ID.
        Returns:
        the same Builder object so you can chain setters.
      • setPdbccName

        public ProteinModificationImpl.Builder setPdbccName​(java.lang.String pdbccName)
        Set the Protein Data Bank Chemical Component name.
        Parameters:
        pdbccName - Protein Data Bank Chemical Component name.
        Returns:
        the same Builder object so you can chain setters.
      • setResidId

        public ProteinModificationImpl.Builder setResidId​(java.lang.String residId)
        Set the RESID ID.
        Parameters:
        residId - RESID ID.
        Returns:
        the same Builder object so you can chain setters.
      • setResidName

        public ProteinModificationImpl.Builder setResidName​(java.lang.String residName)
        Set the RESID name.
        Parameters:
        residName - RESID name.
        Returns:
        the same Builder object so you can chain setters.
      • setPsimodId

        public ProteinModificationImpl.Builder setPsimodId​(java.lang.String psimodId)
        Set the PSI-MOD ID.
        Parameters:
        psimodId - PSI-MOD ID.
        Returns:
        the same Builder object so you can chain setters.
      • setPsimodName

        public ProteinModificationImpl.Builder setPsimodName​(java.lang.String psimodName)
        Set the PSI-MOD name.
        Parameters:
        psimodName - PSI-MOD name.
        Returns:
        the same Builder object so you can chain setters.
      • setSystematicName

        public ProteinModificationImpl.Builder setSystematicName​(java.lang.String sysName)
        Set the systematic name.
        Parameters:
        sysName - systematic name.
        Returns:
        the same Builder object so you can chain setters.
      • setDescription

        public ProteinModificationImpl.Builder setDescription​(java.lang.String description)
        Parameters:
        description - description of the modification.
        Returns:
        the same Builder object so you can chain setters.
      • addKeyword

        public ProteinModificationImpl.Builder addKeyword​(java.lang.String keyword)
        Add a keyword associate with the PTM.
        Parameters:
        keyword - a keyword.
        Returns:
        the same Builder object so you can chain setters.
        Throws:
        java.lang.IllegalArgumentException - if the keyword is null.
      • setFormula

        public ProteinModificationImpl.Builder setFormula​(java.lang.String formula)
        Set the residue formula.
        Parameters:
        formula - residue formula.
        Returns:
        the same Builder object so you can chain setters.