public static class ProteinModificationImpl.Builder extends Object
Constructor and Description |
---|
Builder(ProteinModification copyFrom)
Create a Builder from an existing ProteinModification.
|
Builder(String id,
ModificationCategory cat,
ModificationOccurrenceType occType,
ModificationCondition condition) |
public Builder(String id, ModificationCategory cat, ModificationOccurrenceType occType, ModificationCondition condition)
id
- cat
- occType
- condition
- public Builder(ProteinModification copyFrom)
copyFrom
- the ProteinModification to be copied from.public ProteinModificationImpl.Builder setCategory(ModificationCategory cat)
public ProteinModificationImpl.Builder setOccurrenceType(ModificationOccurrenceType occType)
public ProteinModificationImpl.Builder setCondition(ModificationCondition condition)
public ProteinModificationImpl.Builder setPdbccId(String pdbccId)
pdbccId
- Protein Data Bank Chemical Component ID.public ProteinModificationImpl.Builder setPdbccName(String pdbccName)
pdbccName
- Protein Data Bank Chemical Component name.public ProteinModificationImpl.Builder setResidId(String residId)
residId
- RESID ID.public ProteinModificationImpl.Builder setResidName(String residName)
residName
- RESID name.public ProteinModificationImpl.Builder setPsimodId(String psimodId)
psimodId
- PSI-MOD ID.public ProteinModificationImpl.Builder setPsimodName(String psimodName)
psimodName
- PSI-MOD name.public ProteinModificationImpl.Builder setSystematicName(String sysName)
sysName
- systematic name.public ProteinModificationImpl.Builder setDescription(String description)
description
- description of the modification.public ProteinModificationImpl.Builder addKeyword(String keyword)
keyword
- a keyword.IllegalArgumentException
- if the keyword is null.public ProteinModificationImpl.Builder addKeywords(Collection<String> keywords)
public ProteinModificationImpl.Builder setFormula(String formula)
formula
- residue formula.public ProteinModificationImpl build()
Copyright © 2000–2018 BioJava. All rights reserved.